]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearch.h
Compile fixes. Qt2 should now build (and fail immediately when you start it,
[lyx.git] / src / frontends / qt2 / QSearch.h
1 // -*- C++ -*-
2 /**
3  * \file QSearch.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  */
9
10 #ifndef QSEARCH_H
11 #define QSEARCH_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "Qt2Base.h"
18
19 class ControlSearch;
20 class QSearchDialog;
21 class Dialogs;
22
23 ///
24 class QSearch
25         : public Qt2CB<ControlSearch, Qt2DB<QSearchDialog> >
26 {
27 public:
28         ///
29         friend class QSearchDialog;
30         ///
31         QSearch(ControlSearch &, Dialogs &);
32
33 private:
34         /// Apply changes
35         virtual void apply() {};
36         /// update
37         virtual void update_contents() {};
38         /// build the dialog
39         virtual void build_dialog();
40
41
42         void find(string const & str, bool casesens, bool words, bool backwards);
43
44         void replace(string const & findstr, string const & replacestr,
45                 bool casesens, bool words, bool all);
46
47 };
48
49 #endif // QSEARCH_H