KateCSAndSIndent Class Reference

Inheritance diagram for KateCSAndSIndent:

KateNormalIndent KateAutoIndent List of all members.

Detailed Description

Definition at line 409 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

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 421 of file kateautoindent.h.

virtual uint KateCSAndSIndent::modeNumber (  )  const [inline, virtual]

Mode index of this mode.

Returns:
modeNumber

Reimplemented from KateNormalIndent.

Definition at line 423 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 1940 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 1383 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 1519 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 1410 of file kateautoindent.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys