KTextEditor
kateautoindent.h
146 void scriptIndent(KTextEditor::ViewPrivate *view, const KTextEditor::Cursor position, QChar typedChar);
188 * \param change level of indents to add or remove, zero will still trigger cleaning of indentation
211 void userTypedChar(KTextEditor::ViewPrivate *view, const KTextEditor::Cursor position, QChar typedChar);
238 KateViewIndentationAction(KTextEditor::DocumentPrivate *_doc, const QString &text, QObject *parent);
Backend of KTextEditor::Document related public KTextEditor interfaces.
Definition katedocument.h:68
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
void indent(KTextEditor::ViewPrivate *view, KTextEditor::Range range)
The document requests the indenter to indent the given range of existing text.
Definition kateautoindent.cpp:394
KateAutoIndent(KTextEditor::DocumentPrivate *doc)
Constructor, creates dummy indenter "None".
Definition kateautoindent.cpp:118
bool changeIndent(KTextEditor::Range range, int change)
Function to provide the common indent/unindent/clean indent functionality to the document This should...
Definition kateautoindent.cpp:364
void checkRequiredStyle()
Check if the current highlighting mode provides the style required by the current indenter.
Definition kateautoindent.cpp:343
void updateConfig()
Update indenter's configuration (indention width, etc.) Is called in the updateConfig() of the docume...
Definition kateautoindent.cpp:354
void setMode(const QString &name)
Switch indenter Nop if already set to given mode Otherwise switch to given indenter or to "None" if n...
Definition kateautoindent.cpp:303
static QString modeRequiredStyle(int mode)
Return the syntax highlighting style required to use this mode.
Definition kateautoindent.cpp:98
void userTypedChar(KTextEditor::ViewPrivate *view, const KTextEditor::Cursor position, QChar typedChar)
The user typed some char, the indenter can react on this ' ' will be send as char if the user wraps a...
Definition kateautoindent.cpp:417
static QString modeDescription(int mode)
Return the mode description.
Definition kateautoindent.cpp:84
A specialized class for scripts that are of type ScriptType::Indentation.
Definition kateindentscript.h:102
This action provides a list of available indenters and gets plugged into the KTextEditor::ViewPrivate...
Definition kateautoindent.h:234
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
text
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.