KateAutoIndent Class Reference
#include <kateautoindent.h>
Inheritance diagram for KateAutoIndent:

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 70 of file kateautoindent.h.
Public Member Functions | |
KateAutoIndent (KateDocument *doc) | |
virtual | ~KateAutoIndent () |
virtual void | updateConfig () |
virtual bool | canProcessNewLine () const |
virtual void | processNewline (KateDocCursor &cur, bool needContinue) |
virtual void | processChar (QChar c) |
virtual void | processLine (KateDocCursor &) |
virtual void | processSection (const KateDocCursor &, const 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) |
static bool | hasConfigPage (uint mode) |
static IndenterConfigPage * | configPage (QWidget *parent, uint mode) |
Protected Attributes | |
KateDocument * | doc |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 148 of file kateautoindent.cpp. |
|
Virtual Destructor for the baseclass.
Definition at line 152 of file kateautoindent.cpp. |
Member Function Documentation
|
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 175 of file kateautoindent.h. |
|
does this indenter support processNewLine
Reimplemented in KateNormalIndent. Definition at line 145 of file kateautoindent.h. |
|
Support for a config page.
Definition at line 140 of file kateautoindent.cpp. |
|
Create an indenter.
Definition at line 36 of file kateautoindent.cpp. |
|
Config page support.
Definition at line 132 of file kateautoindent.cpp. |
|
List all possible modes by name.
Definition at line 56 of file kateautoindent.cpp. |
|
Return the mode description.
Definition at line 92 of file kateautoindent.cpp. |
|
Return the mode name given the mode.
Definition at line 72 of file kateautoindent.cpp. |
|
Mode index of this mode.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 181 of file kateautoindent.h. |
|
Maps name -> index.
Definition at line 112 of file kateautoindent.cpp. |
|
Called every time a character is inserted into the document.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 159 of file kateautoindent.h. |
|
Aligns/indents the given line to the proper indent position.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 164 of file kateautoindent.h. |
|
Called every time a newline character is inserted in the document.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 153 of file kateautoindent.h. |
|
Processes a section of text, indenting each line in between.
Reimplemented in KateNormalIndent, and KateVarIndent. Definition at line 169 of file kateautoindent.h. |
|
Update indenter's configuration (indention width, attributes etc. ) Reimplemented in KateNormalIndent. Definition at line 139 of file kateautoindent.h. |
The documentation for this class was generated from the following files: