kateautoindent.h
157 virtual void processNewline (KateDocCursor &cur, bool needContinue) { Q_UNUSED(cur); Q_UNUSED(needContinue); }
200 KateViewIndentationAction(KateDocument *_doc, const TQString& text, TQObject* parent = 0, const char* name = 0);
295 bool isBalanced (KateDocCursor &begin, const KateDocCursor &end, TQChar open, TQChar close, uint &pos) const;
457 TQString calcIndentAfterKeyword(const KateDocCursor &indentCursor, const KateDocCursor &keywordCursor, int keywordPos, bool blockKeyword);
458 TQString calcIndentInBracket(const KateDocCursor &indentCursor, const KateDocCursor &bracketCursor, int bracketPos);
459 TQString calcIndentInBrace(const KateDocCursor &indentCursor, const KateDocCursor &braceCursor, int bracePos);
bool skipBlanks(KateDocCursor &cur, KateDocCursor &max, bool newline) const
Skip all whitespace starting at cur and ending at max.
Definition: kateautoindent.cpp:328
virtual void updateConfig()
Update indenter's configuration (indention width, attributes etc.)
Definition: kateautoindent.cpp:197
uint measureIndent(KateDocCursor &cur) const
Measures the indention of the current textline marked by cur.
Definition: kateautoindent.cpp:370
virtual void processChar(TQChar c)
Called every time a character is inserted into the document.
Definition: kateautoindent.h:163
virtual bool canProcessLine() const
Set to true if an actual implementation of 'processLine' is present.
Definition: kateautoindent.h:516
virtual void processNewline(KateDocCursor &cur, bool needContinue)
Called every time a newline character is inserted in the document.
Definition: kateautoindent.cpp:2186
virtual void updateConfig()
Update indenter's configuration (indention width, attributes etc.)
Definition: kateautoindent.h:142
This indenter uses document variables to determine when to add/remove indents.
Definition: kateautoindent.h:492
virtual bool canProcessNewLine() const
does this indenter support processNewLine
Definition: kateautoindent.h:244
This widget will be embedded into a modal dialog when clicking the "Configure..." button in the inden...
Definition: kateautoindent.h:44
virtual void processLine(KateDocCursor &line)
Aligns/indents the given line to the proper indent position.
Definition: kateautoindent.cpp:2210
virtual void processSection(const KateDocCursor &, const KateDocCursor &)
Processes a section of text, indenting each line in between.
Definition: kateautoindent.h:268
virtual void processSection(const KateDocCursor &begin, const KateDocCursor &end)
Processes a section of text, indenting each line in between.
Definition: kateautoindent.cpp:2347
TQString tabString(uint length) const
Produces a string with the proper indentation characters for its length.
Definition: kateautoindent.cpp:378
virtual bool canProcessLine() const
Set to true if an actual implementation of 'processLine' is present.
Definition: kateautoindent.h:179
virtual void processChar(TQChar c)
Called every time a character is inserted into the document.
Definition: kateautoindent.h:258
virtual void processLine(KateDocCursor &)
Aligns/indents the given line to the proper indent position.
Definition: kateautoindent.h:263
virtual bool canProcessLine() const
Set to true if an actual implementation of 'processLine' is present.
Definition: kateautoindent.h:274
virtual void processNewline(KateDocCursor &cur, bool needContinue)
Called every time a newline character is inserted in the document.
Definition: kateautoindent.h:157
virtual bool canProcessNewLine() const
does this indenter support processNewLine
Definition: kateautoindent.h:149
IndenterConfigPage(TQWidget *parent=0, const char *name=0)
Standard constructor.
Definition: kateautoindent.h:54
static KateAutoIndent * createIndenter(KateDocument *doc, uint mode)
Static methods to create and list indention modes.
Definition: kateautoindent.cpp:38
static TQString modeName(uint mode)
Return the mode name given the mode.
Definition: kateautoindent.cpp:74
This action provides a list of available indenters and gets plugged into the KateView's TDEActionColl...
Definition: kateautoindent.h:195
virtual void processLine(KateDocCursor &)
Aligns/indents the given line to the proper indent position.
Definition: kateautoindent.h:168
static IndenterConfigPage * configPage(TQWidget *parent, uint mode)
Support for a config page.
Definition: kateautoindent.cpp:142
bool keepProfile
Always try to honor the leading whitespace of lines already in the file.
Definition: kateautoindent.h:345
bool isBalanced(KateDocCursor &begin, const KateDocCursor &end, TQChar open, TQChar close, uint &pos) const
Determines if the characters open and close are balanced between begin and end Fills in pos with the ...
Definition: kateautoindent.cpp:282
virtual void processChar(TQChar c)
Called every time a character is inserted into the document.
Definition: kateautoindent.cpp:2194
bool mixedIndent
Optimize indent by mixing spaces and tabs, ala emacs.
Definition: kateautoindent.h:344
virtual void processNewline(KateDocCursor &cur, bool needContinue)
Called every time a newline character is inserted in the document.
Definition: kateautoindent.cpp:399
static TQString modeDescription(uint mode)
Return the mode description.
Definition: kateautoindent.cpp:94
uint indentWidth
The number of characters used when tabs are replaced by spaces.
Definition: kateautoindent.h:324
virtual void processSection(const KateDocCursor &, const KateDocCursor &)
Processes a section of text, indenting each line in between.
Definition: kateautoindent.h:173