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

Detailed Description
Provides Auto-Indent functionality for katepart.
Definition at line 217 of file kateautoindent.h.
Public Slots | |
| virtual void | updateConfig () |
Public Member Functions | |
| KateNormalIndent (KateDocument *doc) | |
| virtual | ~KateNormalIndent () |
| 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 |
Public Attributes | |
| uchar | commentAttrib |
| uchar | doxyCommentAttrib |
| uchar | regionAttrib |
| uchar | symbolAttrib |
| uchar | alertAttrib |
| uchar | tagAttrib |
| uchar | wordAttrib |
| uchar | keywordAttrib |
| uchar | normalAttrib |
| uchar | extensionAttrib |
| uchar | preprocessorAttrib |
| uchar | stringAttrib |
| uchar | charAttrib |
Protected Member Functions | |
| bool | isBalanced (KateDocCursor &begin, const KateDocCursor &end, QChar open, QChar close, uint &pos) const |
| bool | skipBlanks (KateDocCursor &cur, KateDocCursor &max, bool newline) const |
| uint | measureIndent (KateDocCursor &cur) const |
| QString | tabString (uint length) const |
Protected Attributes | |
| uint | tabWidth |
| uint | indentWidth |
| bool | useSpaces |
| bool | mixedIndent |
| bool | keepProfile |
Constructor & Destructor Documentation
|
|
Constructor.
Definition at line 186 of file kateautoindent.cpp. |
|
|
Virtual Destructor for the baseclass.
Definition at line 193 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 from KateAutoIndent. Reimplemented in KateCSmartIndent, KateXmlIndent, KateCSAndSIndent, KateVarIndent, and KateScriptIndent. Definition at line 274 of file kateautoindent.h. |
|
|
does this indenter support processNewLine
Reimplemented from KateAutoIndent. Definition at line 244 of file kateautoindent.h. |
|
||||||||||||||||||||||||
|
Determines if the characters open and close are balanced between
Definition at line 282 of file kateautoindent.cpp. |
|
|
Measures the indention of the current textline marked by cur.
Definition at line 370 of file kateautoindent.cpp. |
|
|
Mode index of this mode.
Reimplemented from KateAutoIndent. Reimplemented in KateCSmartIndent, KatePythonIndent, KateXmlIndent, KateCSAndSIndent, KateVarIndent, and KateScriptIndent. Definition at line 280 of file kateautoindent.h. |
|
|
Called every time a character is inserted into the document.
Reimplemented from KateAutoIndent. Reimplemented in KateCSmartIndent, KateXmlIndent, KateCSAndSIndent, KateVarIndent, and KateScriptIndent. Definition at line 258 of file kateautoindent.h. |
|
|
Aligns/indents the given line to the proper indent position.
Reimplemented from KateAutoIndent. Reimplemented in KateCSmartIndent, KateXmlIndent, KateCSAndSIndent, KateVarIndent, and KateScriptIndent. Definition at line 263 of file kateautoindent.h. |
|
||||||||||||
|
Called every time a newline character is inserted in the document.
Reimplemented from KateAutoIndent. Reimplemented in KateCSmartIndent, KatePythonIndent, KateXmlIndent, KateCSAndSIndent, KateVarIndent, and KateScriptIndent. Definition at line 399 of file kateautoindent.cpp. |
|
||||||||||||
|
Processes a section of text, indenting each line in between.
Reimplemented from KateAutoIndent. Reimplemented in KateCSmartIndent, KateXmlIndent, KateCSAndSIndent, and KateVarIndent. Definition at line 268 of file kateautoindent.h. |
|
||||||||||||||||
|
Skip all whitespace starting at
Spans lines if
Definition at line 328 of file kateautoindent.cpp. |
|
|
Produces a string with the proper indentation characters for its length.
Definition at line 378 of file kateautoindent.cpp. |
|
|
Update indenter's configuration (indention width, attributes etc. ) Reimplemented from KateAutoIndent. Definition at line 197 of file kateautoindent.cpp. |
Member Data Documentation
|
|
The number of characters used when tabs are replaced by spaces.
Definition at line 324 of file kateautoindent.h. |
|
|
Always try to honor the leading whitespace of lines already in the file.
Definition at line 345 of file kateautoindent.h. |
|
|
Optimize indent by mixing spaces and tabs, ala emacs.
Definition at line 344 of file kateautoindent.h. |
|
|
The number of characters simulated for a tab.
Definition at line 323 of file kateautoindent.h. |
|
|
Should we use spaces or tabs to indent.
Definition at line 343 of file kateautoindent.h. |
The documentation for this class was generated from the following files:

