KateCSmartIndent Class Reference
Inheritance diagram for KateCSmartIndent:

Public Member Functions | |
KateCSmartIndent (KateDocument *doc) | |
~KateCSmartIndent () | |
virtual void | processNewline (KateDocCursor &begin, bool needContinue) |
virtual void | processChar (QChar c) |
virtual void | processLine (KateDocCursor &line) |
virtual void | processSection (KateDocCursor &begin, KateDocCursor &end) |
virtual bool | canProcessLine () const |
virtual uint | modeNumber () const |
Detailed Description
Definition at line 283 of file kateautoindent.h.
Member Function Documentation
|
Called every time a newline character is inserted in the document.
Reimplemented from KateNormalIndent. Definition at line 554 of file kateautoindent.cpp. References KateAutoIndent::doc, KateDocument::insertText(), QString::length(), KateDocument::plainKateTextLine(), processLine(), KateNormalIndent::processNewline(), and KateNormalIndent::tabString(). |
|
Called every time a character is inserted into the document.
Reimplemented from KateNormalIndent. Definition at line 586 of file kateautoindent.cpp. References KateDocument::activeView(), KateTextCursor::col(), KateView::cursorColumn(), KateView::cursorLine(), KateAutoIndent::doc, KateNormalIndent::doxyCommentAttrib, QString::find(), KateTextCursor::line(), KateDocument::plainKateTextLine(), processLine(), and KateDocument::removeText(). |
|
Aligns/indents the given line to the proper indent position.
Reimplemented from KateNormalIndent. Definition at line 379 of file kateautoindent.cpp. References KateAutoIndent::doc, KateNormalIndent::doxyCommentAttrib, endl(), KateNormalIndent::indentWidth, KateDocument::insertText(), kdDebug(), QString::length(), KateTextCursor::line(), KateNormalIndent::measureIndent(), KateDocument::plainKateTextLine(), KateNormalIndent::processNewline(), KateDocument::removeText(), KateTextCursor::setCol(), and KateNormalIndent::tabString(). Referenced by processChar(), processNewline(), and processSection(). |
|
Processes a section of text, indenting each line in between.
Reimplemented from KateNormalIndent. Definition at line 490 of file kateautoindent.cpp. References QTime::elapsed(), endl(), KateDocCursor::gotoNextLine(), kdDebug(), KateTextCursor::line(), processLine(), and QTime::start(). |
|
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 KateNormalIndent. Definition at line 295 of file kateautoindent.h. |
|
Mode index of this mode.
Reimplemented from KateNormalIndent. Definition at line 297 of file kateautoindent.h. |
The documentation for this class was generated from the following files: