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_