]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearch.h
Lots and lots of little trivial bits.
[lyx.git] / src / frontends / qt2 / QSearch.h
1 // -*- C++ -*-
2 /**
3  * \file QSearch.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QSEARCH_H
13 #define QSEARCH_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "Qt2Base.h"
20
21 class ControlSearch;
22 class QSearchDialog;
23
24
25 ///
26 class QSearch
27         : public Qt2CB<ControlSearch, Qt2DB<QSearchDialog> >
28 {
29 public:
30         ///
31         friend class QSearchDialog;
32         ///
33         QSearch();
34
35 private:
36         /// Apply changes
37         virtual void apply() {};
38         /// update
39         virtual void update_contents() {};
40         /// build the dialog
41         virtual void build_dialog();
42
43
44         void find(string const & str, bool casesens, bool words, bool backwards);
45
46         void replace(string const & findstr, string const & replacestr,
47                 bool casesens, bool words, bool all);
48
49 };
50
51 #endif // QSEARCH_H