KateCSmartIndent Class Reference
Inheritance diagram for KateCSmartIndent:

Detailed Description
Definition at line 335 of file kateautoindent.h.
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 (const KateDocCursor &begin, const KateDocCursor &end) |
virtual bool | canProcessLine () const |
virtual uint | modeNumber () const |
Member Function Documentation
virtual bool KateCSmartIndent::canProcessLine | ( | ) | const [inline, virtual] |
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 347 of file kateautoindent.h.
virtual uint KateCSmartIndent::modeNumber | ( | ) | const [inline, virtual] |
Mode index of this mode.
- Returns:
- modeNumber
Reimplemented from KateNormalIndent.
Definition at line 349 of file kateautoindent.h.
void KateCSmartIndent::processChar | ( | QChar | c | ) | [virtual] |
Called every time a character is inserted into the document.
- Parameters:
-
c character inserted
Reimplemented from KateNormalIndent.
Definition at line 623 of file kateautoindent.cpp.
void KateCSmartIndent::processLine | ( | KateDocCursor & | line | ) | [virtual] |
Aligns/indents the given line to the proper indent position.
Reimplemented from KateNormalIndent.
Definition at line 409 of file kateautoindent.cpp.
void KateCSmartIndent::processNewline | ( | KateDocCursor & | begin, | |
bool | needContinue | |||
) | [virtual] |
Called every time a newline character is inserted in the document.
- Parameters:
-
cur The position to start processing. Contains the new cursor position after the indention. needContinue Used to determine whether to calculate a continue indent or not.
Reimplemented from KateNormalIndent.
Definition at line 591 of file kateautoindent.cpp.
void KateCSmartIndent::processSection | ( | const KateDocCursor & | begin, | |
const KateDocCursor & | end | |||
) | [virtual] |
Processes a section of text, indenting each line in between.
Reimplemented from KateNormalIndent.
Definition at line 522 of file kateautoindent.cpp.
The documentation for this class was generated from the following files: