Kate::Document Class Reference
This interface provides access to the Kate Document class. More...
#include <document.h>
Collaboration diagram for Kate::Document:

Public Types | |
enum | ConfigFlags { cfAutoIndent = 0x1, cfBackspaceIndents = 0x2, cfWordWrap = 0x4, cfReplaceTabs = 0x8, cfRemoveSpaces = 0x10, cfWrapCursor = 0x20, cfAutoBrackets = 0x40, cfPersistent = 0x80, cfKeepSelection = 0x100, cfDelOnInput = 0x400, cfXorSelect = 0x800, cfOvr = 0x1000, cfMark = 0x2000, cfKeepIndentProfile = 0x8000, cfKeepExtraSpaces = 0x10000, cfTabIndents = 0x80000, cfShowTabs = 0x200000, cfSpaceIndent = 0x400000, cfSmartHome = 0x800000 } |
Public Slots | |
virtual void | flush () |
virtual void | reloadFile ()=0 |
virtual void | spellcheck () |
virtual void | exportAs (const QString &)=0 |
virtual void | applyWordWrap ()=0 |
Signals | |
void | modifiedOnDisc (Kate::Document *doc, bool isModified, unsigned char reason) |
Public Member Functions | |
Document (QObject *parent, const char *name) | |
virtual void | isModOnHD (bool=false) |
virtual QString | docName () |
virtual void | setDocName (QString) |
virtual ActionMenu * | hlActionMenu (const QString &, QObject *=0, const char *=0)=0 |
virtual ActionMenu * | exportActionMenu (const QString &, QObject *=0, const char *=0)=0 |
virtual void | setWordWrap (bool)=0 |
virtual bool | wordWrap ()=0 |
virtual void | setWordWrapAt (uint)=0 |
virtual uint | wordWrapAt ()=0 |
virtual void | setEncoding (const QString &e)=0 |
virtual QString | encoding () const =0 |
virtual ConfigPage * | colorConfigPage (QWidget *)=0 |
virtual ConfigPage * | fontConfigPage (QWidget *)=0 |
virtual ConfigPage * | indentConfigPage (QWidget *)=0 |
virtual ConfigPage * | selectConfigPage (QWidget *)=0 |
virtual ConfigPage * | editConfigPage (QWidget *)=0 |
virtual ConfigPage * | keysConfigPage (QWidget *)=0 |
virtual ConfigPage * | kSpellConfigPage (QWidget *) |
virtual ConfigPage * | hlConfigPage (QWidget *)=0 |
virtual uint | configFlags ()=0 |
virtual void | setConfigFlags (uint flags)=0 |
Static Public Member Functions | |
bool | registerCommand (Command *cmd) |
bool | unregisterCommand (Command *cmd) |
Command * | queryCommand (const QString &cmd) |
void | setOpenErrorDialogsActivated (bool on) |
void | setFileChangedDialogsActivated (bool on) |
const QString & | defaultEncoding () |
Static Protected Attributes | |
bool | s_openErrorDialogsActivated = true |
bool | s_fileChangedDialogsActivated = false |
QString | s_defaultEncoding |
Detailed Description
This interface provides access to the Kate Document class.
Definition at line 115 of file document.h.
Member Function Documentation
|
Commands handling.
Definition at line 62 of file interfaces.cpp. |
|
deprecated for KDE 4.0, just does reloadFile, which will ask the normal "do you want it really" questions
Definition at line 144 of file document.h. |
|
Returns the document name.
Definition at line 149 of file document.h. |
|
Sets the document name. deprecated for KDE 4.0, is done internally, calling it won't hurt but changes nothing beside triggers signal Definition at line 156 of file document.h. |
|
Reloads the current document from disk if possible.
|
|
Spellchecking.
Definition at line 173 of file document.h. |
|
|
The documentation for this class was generated from the following files: