KTextEditor
document.cpp
113 QVector<KTextEditor::Range> Document::searchText(const KTextEditor::Range &range, const QString &pattern, const SearchOptions options) const
QVector< KTextEditor::Range > searchText(const KTextEditor::Range &range, const QString &pattern, const SearchOptions options=Default) const
Searches the given input range for a text pattern.
QString openingErrorMessage() const
Error message if any problem occurred on last load.
Definition: document.cpp:85
~EditingTransaction()
Destructs the object and, if needed, finishes a running editing transaction by calling finish().
Definition: document.cpp:71
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
An object representing a section of text, from one Cursor to another.
Definition: include/ktexteditor/range.h:44
virtual bool insertText(const Cursor &position, const QString &text, bool block=false)=0
Insert text at position.
virtual Cursor documentEnd() const =0
End position of the document.
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
constexpr static Cursor start() Q_DECL_NOEXCEPT
Returns a cursor representing the start of any document - i.e., line 0, column 0.
Definition: cursor.h:117
virtual bool removeText(const Range &range, bool block=false)=0
Remove the text specified in range.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition: katetextblock.h:22
virtual bool replaceText(const Range &range, const QString &text, bool block=false)
Replace text from range with specified text.
Definition: document.cpp:90
constexpr Cursor start() const Q_DECL_NOEXCEPT
Get the start position of this range.
Definition: include/ktexteditor/range.h:171
void start()
By calling start(), the editing transaction can be started again.
Definition: document.cpp:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:48:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:48:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.