16 #ifndef _QDOCUMENT_SEARCH_H_ 17 #define _QDOCUMENT_SEARCH_H_ 29 #include <QCoreApplication> 51 Q_DECLARE_FLAGS(Options, Option);
56 int currentMatchIndex()
const;
57 int indexedMatchCount()
const;
60 QString searchText()
const;
61 void setSearchText(
const QString& f);
63 Options options()
const;
64 bool hasOption(Option opt)
const;
65 void setOption(Option opt,
bool on);
67 QString replaceText()
const;
68 void setReplaceText(
const QString& r);
79 void next(
bool backward,
bool all =
false);
82 bool end(
bool backward)
const;
91 QPointer<QEditor> m_editor;
96 Q_DECLARE_OPERATORS_FOR_FLAGS(QDocumentSearch::Options)
98 #endif // !_QDOCUMENT_SEARCH_H_ #define QCE_EXPORT
Macro needed for cross-platform shared libraries creation.
Definition: qce-config.h:40
Utility file for shared library creation.
A text editing widget.
Definition: qeditor.h:55
Definition of the QDocumentCursor class.
An helper class to perform search in document.
Definition: qdocumentsearch.h:35
A cursor to navigate within documents and edit them.
Definition: qdocumentcursor.h:36