]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSearch.h
Controller-view split of Graphics and Index popups.
[lyx.git] / src / frontends / controllers / ControlSearch.h
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file ControlSearch.h
11  * \author Angus Leeming <a.leeming@ic.ac.uk>
12  */
13
14 #ifndef CONTROLSEARCH_H
15 #define CONTROLSEARCH_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlDialogs.h"
22
23 /** A controller for Search dialogs.
24  */
25 class ControlSearch : public ControlDialog<ControlConnectBD> {
26 public:
27         ///
28         ControlSearch(LyXView &, Dialogs &);
29    
30         /// Searches occurence of string
31         void find(string const & search,
32                   bool casesensitive, bool matchword, bool forward) const;
33
34         /// Replaces occurence of string
35         void replace(string const & search, string const & replace,
36                      bool casesensitive, bool matchword, bool all) const;
37
38 private:
39         /// not needed.
40         virtual void apply() {}
41 };
42
43 #endif // CONTROLSEARCH_H