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
20 /** A controller for Search dialogs.
22 class ControlSearch : public Dialog::Controller {
24 ControlSearch(Dialog &);
26 virtual bool initialiseParams(std::string const &) { return true; }
27 virtual void clearParams() {}
28 virtual void dispatchParams() {}
29 virtual bool isBufferDependent() const { return true; }
31 /// Searches occurence of string
32 void find(docstring const & search,
33 bool casesensitive, bool matchword, bool forward);
35 /// Replaces occurence of string
36 void replace(docstring const & search, docstring const & replace,
37 bool casesensitive, bool matchword,
38 bool forward, bool all);
41 } // namespace frontend
44 #endif // CONTROLSEARCH_H