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