]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearch.h
ws change
[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
22 ///
23 class QSearch
24         : public Qt2CB<ControlSearch, Qt2DB<QSearchDialog> >
25 {
26 public:
27         ///
28         friend class QSearchDialog;
29         ///
30         QSearch(ControlSearch &);
31
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
41         void find(string const & str, bool casesens, bool words, bool backwards);
42
43         void replace(string const & findstr, string const & replacestr,
44                 bool casesens, bool words, bool all);
45
46 };
47
48 #endif // QSEARCH_H