]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSearch.h
Add support for the jurabib package (www.jurabib.org), a package for elegant BibTeX...
[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 #include "Dialog.h"
16
17
18 /** A controller for Search dialogs.
19  */
20 class ControlSearch : public Dialog::Controller {
21 public:
22         ControlSearch(Dialog &);
23
24         virtual bool initialiseParams(std::string const &) { return true; }
25         virtual void clearParams() {}
26         virtual void dispatchParams() {}
27         virtual bool isBufferDependent() const { return true; }
28
29         /// Searches occurence of string
30         void find(std::string const & search,
31                   bool casesensitive, bool matchword, bool forward);
32
33         /// Replaces occurence of string
34         void replace(std::string const & search, std::string const & replace,
35                      bool casesensitive, bool matchword,
36                      bool forward, bool all);
37 };
38
39 #endif // CONTROLSEARCH_H