document.h
67 ConfigPage ( TQWidget *parent=0, const char *name=0 ) : KTextEditor::ConfigPage (parent, name) { ; };
157 virtual TDECompletion *completionObject( const TQString & cmdname, Kate::View * /*view*/ ) { Q_UNUSED(cmdname); return 0L; }
177 virtual void processText( Kate::View *view, const TQString &text ) { Q_UNUSED(view); Q_UNUSED(text); }
182 class KATEPARTINTERFACES_EXPORT Document : public KTextEditor::Document, public KTextEditor::EditInterface,
360 Unmodified = 0,
361 Modified = 1,
362 Created = 2,
364 };
403 KATEPARTINTERFACES_EXPORT Document *createDocument ( TQObject *parent = 0, const char *name = 0 );
Extension to the Command interface, allowing to interact with commands during typing.
Definition: document.h:130
virtual void flagCompletions(TQStringList &)
Fill in a list of flags to complete from.
Definition: document.h:146
virtual bool wantsToProcessText(const TQString &cmdname)
Definition: document.h:169
virtual void processText(Kate::View *view, const TQString &text)
This is called by the commandline each time the argument text for the command changes,...
Definition: document.h:177
virtual TDECompletion * completionObject(const TQString &cmdname, Kate::View *)
Definition: document.h:157
virtual TQStringList cmds()=0
Pure text start part of the commands which can be handled by this object which means i....
virtual bool help(View *view, const TQString &cmd, TQString &msg)=0
Shows help for the given view and cmd string, return a bool about success, msg for status.
virtual bool exec(View *view, const TQString &cmd, TQString &msg)=0
Execute this command for the given view and cmd string, return a bool about success,...
virtual void setModifiedOnDisk(int reason)=0
For client apps that want to deal with files modified on disk, it is nessecary to reset this property...
virtual void slotModifiedOnDisk(View *v=0)=0
These stuff is implemented as slots in the real document.
virtual ConfigPage * selectConfigPage(TQWidget *)=0
virtual ConfigPage * hlConfigPage(TQWidget *)=0
virtual ConfigPage * fontConfigPage(TQWidget *)=0
virtual ConfigPage * editConfigPage(TQWidget *)=0
virtual void isModOnHD(bool=false)
deprecated for KDE 4.0, just does reloadFile, which will ask the normal "do you want it really" quest...
Definition: document.h:212
virtual ConfigPage * kSpellConfigPage(TQWidget *)
Definition: document.h:276
virtual ConfigPage * keysConfigPage(TQWidget *)=0
virtual ConfigPage * indentConfigPage(TQWidget *)=0
void modifiedOnDisc(Kate::Document *doc, bool isModified, unsigned char reason)
Indicate this file is modified on disk.
virtual ConfigPage * colorConfigPage(TQWidget *)=0
virtual void reloadFile()=0
Reloads the current document from disk if possible.
kndbgstream & flush(kndbgstream &s)
Kate namespace All classes in this namespace must stay BC during one major release series (e....
Definition: document.h:51
KATEPARTINTERFACES_EXPORT Document * createDocument(TQObject *parent=0, const char *name=0)
Creates a new Kate::Document object.
Definition: interfaces.cpp:114
KATEPARTINTERFACES_EXPORT DocumentExt * documentExt(KTextEditor::Document *doc)
Check if given document is a Kate::DocumentExt.
Definition: interfaces.cpp:106
KATEPARTINTERFACES_EXPORT Document * document(KTextEditor::Document *doc)
Check if given document is a Kate::Document.
Definition: interfaces.cpp:98