3 * \file ControlSearch.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef CONTROLSEARCH_H
13 #define CONTROLSEARCH_H
18 /** A controller for Search dialogs.
20 class ControlSearch : public Dialog::Controller {
22 ControlSearch(Dialog &);
24 virtual bool initialiseParams(std::string const &) { return true; }
25 virtual void clearParams() {}
26 virtual void dispatchParams() {}
27 virtual bool isBufferDependent() const { return true; }
29 /// Searches occurence of string
30 void find(std::string const & search,
31 bool casesensitive, bool matchword, bool forward);
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);
39 #endif // CONTROLSEARCH_H