]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSearch.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlSearch.h
1 // -*- C++ -*-
2 /**
3  * \file ControlSearch.h
4  * See the file COPYING.
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef CONTROLSEARCH_H
12 #define CONTROLSEARCH_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "ControlDialog_impl.h"
19 #include "LString.h"
20
21 /** A controller for Search dialogs.
22  */
23 class ControlSearch : public ControlDialogBD {
24 public:
25         ///
26         ControlSearch(LyXView &, Dialogs &);
27
28         /// Searches occurence of string
29         void find(string const & search,
30                   bool casesensitive, bool matchword, bool forward);
31
32         /// Replaces occurence of string
33         void replace(string const & search, string const & replace,
34                      bool casesensitive, bool matchword, bool all);
35
36 private:
37         /// not needed.
38         virtual void apply() {}
39 };
40
41 #endif // CONTROLSEARCH_H