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