KateAutoIndent Class Reference
Provides Auto-Indent functionality for katepart. More...
#include <kateautoindent.h>
Inheritance diagram for KateAutoIndent:

Public Member Functions | |
KateAutoIndent (KateDocument *doc) | |
virtual | ~KateAutoIndent () |
virtual void | updateConfig () |
virtual bool | canProcessNewLine () const |
virtual void | processNewline (KateDocCursor &, bool) |
virtual void | processChar (QChar) |
virtual void | processLine (KateDocCursor &) |
virtual void | processSection (KateDocCursor &, KateDocCursor &) |
virtual bool | canProcessLine () const |
virtual uint | modeNumber () const |
Static Public Member Functions | |
static KateAutoIndent * | createIndenter (KateDocument *doc, uint mode) |
static QStringList | listModes () |
static QString | modeName (uint mode) |
static QString | modeDescription (uint mode) |
static uint | modeNumber (const QString &name) |
Protected Attributes | |
KateDocument * | doc |
Detailed Description
Provides Auto-Indent functionality for katepart.This baseclass is a real dummy, does nothing beside remembering the document it belongs too, only to have the object around
Definition at line 35 of file kateautoindent.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 120 of file kateautoindent.cpp. Referenced by createIndenter(). |
|
Virtual Destructor for the baseclass.
Definition at line 124 of file kateautoindent.cpp. |
Member Function Documentation
|
Create an indenter.
Definition at line 33 of file kateautoindent.cpp. References KateAutoIndent(). |
|
List all possible modes by name.
Definition at line 51 of file kateautoindent.cpp. References modeDescription(). |
|
Return the mode name given the mode.
Definition at line 66 of file kateautoindent.cpp. Referenced by modeNumber(). |
|
Return the mode description.
Definition at line 84 of file kateautoindent.cpp. Referenced by listModes(). |
|
Maps name -> index.
Definition at line 102 of file kateautoindent.cpp. References modeName(). |
|
Update indenter's configuration (indention width, attributes etc. ) Reimplemented in KateNormalIndent. Definition at line 91 of file kateautoindent.h. |
|
does this indenter support processNewLine
Reimplemented in KateNormalIndent. Definition at line 97 of file kateautoindent.h. |
|
Called every time a newline character is inserted in the document.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 105 of file kateautoindent.h. |
|
Called every time a character is inserted into the document.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 111 of file kateautoindent.h. |
|
Aligns/indents the given line to the proper indent position.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 116 of file kateautoindent.h. |
|
Processes a section of text, indenting each line in between.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 121 of file kateautoindent.h. |
|
Set to true if an actual implementation of 'processLine' is present. This is used to prevent a needless Undo action from being created. Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 127 of file kateautoindent.h. |
|
Mode index of this mode.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 133 of file kateautoindent.h. Referenced by KateBuffer::setHighlight(). |
The documentation for this class was generated from the following files: