]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSearch.h
Overhaul the branches code.
[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,
32                      bool forward, bool all);
33 private:
34         /// not needed.
35         virtual void apply() {}
36 };
37
38 #endif // CONTROLSEARCH_H