Kate
KateCSAndSIndent Class Reference
#include <kateautoindent.h>
Public Member Functions | |
virtual bool | canProcessLine () const |
KateCSAndSIndent (KateDocument *doc) | |
virtual uint | modeNumber () const |
virtual void | processChar (QChar c) |
virtual void | processLine (KateDocCursor &line) |
virtual void | processNewline (KateDocCursor &begin, bool needContinue) |
virtual void | processSection (const KateDocCursor &begin, const KateDocCursor &end) |
~KateCSAndSIndent () |
Detailed Description
Definition at line 429 of file kateautoindent.h.
Constructor & Destructor Documentation
KateCSAndSIndent::KateCSAndSIndent | ( | KateDocument * | doc | ) |
Definition at line 1519 of file kateautoindent.cpp.
KateCSAndSIndent::~KateCSAndSIndent | ( | ) |
Definition at line 1532 of file kateautoindent.cpp.
Member Function Documentation
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.
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 & | ) | [virtual] |
Aligns/indents the given line to the proper indent position.
Reimplemented from KateNormalIndent.
Definition at line 1536 of file kateautoindent.cpp.
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::processSection | ( | const KateDocCursor & | , | |
const KateDocCursor & | ||||
) | [virtual] |
Processes a section of text, indenting each line in between.
Reimplemented from KateNormalIndent.
Definition at line 1563 of file kateautoindent.cpp.
The documentation for this class was generated from the following files: