KateCSAndSIndent Class Reference
Inheritance diagram for KateCSAndSIndent:

Detailed Description
Definition at line 429 of file kateautoindent.h.
Public Member Functions | |
KateCSAndSIndent (KateDocument *doc) | |
~KateCSAndSIndent () | |
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
void KateCSAndSIndent::processNewline | ( | KateDocCursor & | begin, | |
bool | needContinue | |||
) | [virtual] |
User pressed enter.
Line has been split; begin is on the new line.
- Parameters:
-
begin Three unrelated variables: the new line number, where the first non-whitespace char was on the previous line, and the document. needContinue Something to do with indenting the current line; always true.
Reimplemented from KateNormalIndent.
Definition at line 1672 of file kateautoindent.cpp.
void KateCSAndSIndent::processChar | ( | QChar | c | ) | [virtual] |
Called every time a character is inserted into the document.
- Parameters:
-
c character inserted
Reimplemented from KateNormalIndent.
Definition at line 2111 of file kateautoindent.cpp.
void KateCSAndSIndent::processLine | ( | KateDocCursor & | line | ) | [virtual] |
Aligns/indents the given line to the proper indent position.
Reimplemented from KateNormalIndent.
Definition at line 1536 of file kateautoindent.cpp.
void KateCSAndSIndent::processSection | ( | const KateDocCursor & | begin, | |
const KateDocCursor & | end | |||
) | [virtual] |
Processes a section of text, indenting each line in between.
Reimplemented from KateNormalIndent.
Definition at line 1563 of file kateautoindent.cpp.
virtual bool KateCSAndSIndent::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 443 of file kateautoindent.h.
virtual uint KateCSAndSIndent::modeNumber | ( | ) | const [inline, virtual] |
Mode index of this mode.
- Returns:
- modeNumber
Reimplemented from KateNormalIndent.
Definition at line 445 of file kateautoindent.h.
The documentation for this class was generated from the following files: