• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Kate

KateCSAndSIndent Class Reference

#include <kateautoindent.h>

Inheritance diagram for KateCSAndSIndent:

Inheritance graph
[legend]

List of all members.


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:
  • kateautoindent.h
  • kateautoindent.cpp

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal