]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSearch.h
small fix
[lyx.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
18 /** A controller for Search dialogs.
19  */
20 class ControlSearch : public ControlDialogBD {
21 public:
22         ///
23         ControlSearch(LyXView &, Dialogs &);
24
25         /// Searches occurence of string
26         void find(std::string const & search,
27                   bool casesensitive, bool matchword, bool forward);
28
29         /// Replaces occurence of string
30         void replace(std::string const & search, std::string const & replace,
31                      bool casesensitive, bool matchword, bool all);
32 private:
33         /// not needed.
34         virtual void apply() {}
35 };
36
37 #endif // CONTROLSEARCH_H