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);
virtual void processChar(TQChar c)
Called every time a character is inserted into the document.
Definition: kateautoindent.h:163
virtual bool canProcessNewLine() const
does this indenter support processNewLine
Definition: kateautoindent.h:244
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 canProcessLine() const
Set to true if an actual implementation of 'processLine' is present.
Definition: kateautoindent.h:516
This widget will be embedded into a modal dialog when clicking the "Configure..." button in the inden...
Definition: kateautoindent.h:44
virtual void processSection(const KateDocCursor &, const KateDocCursor &)
Processes a section of text, indenting each line in between.
Definition: kateautoindent.h:268
virtual bool canProcessNewLine() const
does this indenter support processNewLine
Definition: kateautoindent.h:149
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 void processNewline(KateDocCursor &cur, bool needContinue)
Called every time a newline character is inserted in the document.
Definition: kateautoindent.h:157
IndenterConfigPage(TQWidget *parent=0, const char *name=0)
Standard constructor.
Definition: kateautoindent.h:54
This action provides a list of available indenters and gets plugged into the KateView's KActionCollec...
Definition: kateautoindent.h:195
virtual void processLine(KateDocCursor &)
Aligns/indents the given line to the proper indent position.
Definition: kateautoindent.h:168
bool keepProfile
Always try to honor the leading whitespace of lines already in the file.
Definition: kateautoindent.h:345
bool mixedIndent
Optimize indent by mixing spaces and tabs, ala emacs.
Definition: kateautoindent.h:344
virtual bool canProcessLine() const
Set to true if an actual implementation of 'processLine' is present.
Definition: kateautoindent.h:274
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
virtual bool canProcessLine() const
Set to true if an actual implementation of 'processLine' is present.
Definition: kateautoindent.h:179