4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS.
16 #include "GuiDialog.h"
17 #include "ui_SearchUi.h"
22 class GuiSearch : public GuiDialog, public Ui::SearchUi, public Controller
27 GuiSearch(LyXView & lv);
32 void replaceClicked();
33 void replaceallClicked();
37 void closeEvent(QCloseEvent * e);
39 Controller & controller() { return *this; }
41 bool initialiseParams(std::string const &) { return true; }
43 void dispatchParams() {}
44 bool isBufferDependent() const { return true; }
46 /// Searches occurence of string
47 void find(docstring const & search,
48 bool casesensitive, bool matchword, bool forward);
50 /// Replaces occurence of string
51 void replace(docstring const & search, docstring const & replace,
52 bool casesensitive, bool matchword,
53 bool forward, bool all);
56 } // namespace frontend