]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearch.h
dont use pragma impementation and interface anymore
[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
16 #include "Qt2Base.h"
17
18 class ControlSearch;
19 class QSearchDialog;
20
21
22 ///
23 class QSearch
24         : public Qt2CB<ControlSearch, Qt2DB<QSearchDialog> >
25 {
26 public:
27         ///
28         friend class QSearchDialog;
29         ///
30         QSearch();
31 private:
32         /// Apply changes
33         virtual void apply() {}
34         /// update
35         virtual void update_contents() {}
36         /// build the dialog
37         virtual void build_dialog();
38
39         void find(string const & str, bool casesens,
40                   bool words, bool backwards);
41
42         void replace(string const & findstr, string const & replacestr,
43                 bool casesens, bool words, bool all);
44 };
45
46 #endif // QSEARCH_H