KTextEditor
document.cpp
108QList<KTextEditor::Range> Document::searchText(KTextEditor::Range range, const QString &pattern, const SearchOptions options) const
static constexpr Cursor start() noexcept
Returns a cursor representing the start of any document - i.e., line 0, column 0.
Definition cursor.h:120
Backend of KTextEditor::Document related public KTextEditor interfaces.
Definition katedocument.h:68
bool editStart()
Enclose editor actions with editStart() and editEnd() to group them.
Definition katedocument.cpp:971
~EditingTransaction()
Destructs the object and, if needed, finishes a running editing transaction by calling finish().
Definition document.cpp:71
void start()
By calling start(), the editing transaction can be started again.
Definition document.cpp:55
void finish()
By calling finish(), the editing transaction can be finished already before destruction of this insta...
Definition document.cpp:63
EditingTransaction(Document *document)
Constructs the object and starts an editing transaction by calling start().
Definition document.cpp:41
bool openingError() const
True, eg if the file for opening could not be read This doesn't have to handle the KPart job canceled...
Definition document.cpp:80
virtual bool removeText(Range range, bool block=false)=0
Remove the text specified in range.
QList< KTextEditor::Range > searchText(KTextEditor::Range range, const QString &pattern, const SearchOptions options=Default) const
Searches the given input range for a text pattern.
Definition document.cpp:108
virtual bool insertText(KTextEditor::Cursor position, const QString &text, bool block=false)=0
Insert text at position.
virtual Cursor documentEnd() const =0
End position of the document.
virtual bool replaceText(Range range, const QString &text, bool block=false)
Replace text from range with specified text.
Definition document.cpp:85
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
constexpr Cursor start() const noexcept
Get the start position of this range.
Definition include/ktexteditor/range.h:153
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.