Kate
KateScriptIndent Class Reference
#include <kateautoindent.h>
Public Member Functions | |
virtual bool | canProcessLine () const |
KateScriptIndent (KateDocument *doc) | |
virtual uint | modeNumber () const |
virtual void | processChar (QChar c) |
virtual void | processLine (KateDocCursor &line) |
virtual void | processNewline (KateDocCursor &cur, bool needContinue) |
~KateScriptIndent () |
Detailed Description
Definition at line 543 of file kateautoindent.h.
Constructor & Destructor Documentation
KateScriptIndent::KateScriptIndent | ( | KateDocument * | doc | ) |
Definition at line 2453 of file kateautoindent.cpp.
KateScriptIndent::~KateScriptIndent | ( | ) |
Definition at line 2459 of file kateautoindent.cpp.
Member Function Documentation
virtual bool KateScriptIndent::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 557 of file kateautoindent.h.
virtual uint KateScriptIndent::modeNumber | ( | ) | const [inline, virtual] |
Mode index of this mode.
- Returns:
- modeNumber
Reimplemented from KateNormalIndent.
Definition at line 559 of file kateautoindent.h.
void KateScriptIndent::processChar | ( | QChar | c | ) | [virtual] |
Called every time a character is inserted into the document.
- Parameters:
-
c character inserted
Reimplemented from KateNormalIndent.
Definition at line 2483 of file kateautoindent.cpp.
void KateScriptIndent::processLine | ( | KateDocCursor & | ) | [virtual] |
Aligns/indents the given line to the proper indent position.
Reimplemented from KateNormalIndent.
Definition at line 2503 of file kateautoindent.cpp.
void KateScriptIndent::processNewline | ( | KateDocCursor & | cur, | |
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 2463 of file kateautoindent.cpp.
The documentation for this class was generated from the following files: