]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSearch.h
0b45b09b2671087f3cc3d9ea2975d3a0fdcaea65
[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 "ControlDialog_impl.h"
23 #include "LString.h"
24
25 /** A controller for Search dialogs.
26  */
27 class ControlSearch : public ControlDialogBD {
28 public:
29         ///
30         ControlSearch(LyXView &, Dialogs &);
31
32         /// Searches occurence of string
33         void find(string const & search,
34                   bool casesensitive, bool matchword, bool forward);
35
36         /// Replaces occurence of string
37         void replace(string const & search, string const & replace,
38                      bool casesensitive, bool matchword, bool all);
39
40 private:
41         /// not needed.
42         virtual void apply() {}
43 };
44
45 #endif // CONTROLSEARCH_H