]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSearch.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / 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 #include "QDialogView.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlSearch;
21 class QSearchDialog;
22
23 ///
24 class QSearch
25         : public QController<ControlSearch, QView<QSearchDialog> >
26 {
27 public:
28         ///
29         friend class QSearchDialog;
30         ///
31         QSearch(Dialog &);
32 private:
33         /// Apply changes
34         virtual void apply() {}
35         /// update
36         virtual void update_contents() {}
37         /// build the dialog
38         virtual void build_dialog();
39
40         void find(std::string const & str, bool casesens,
41                   bool words, bool backwards);
42
43         void replace(std::string const & findstr,
44                      std::string const & replacestr,
45                      bool casesens, bool words, bool backwards, bool all);
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // QSEARCH_H