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
27 GuiSearch(GuiView & lv);
32 void replaceClicked();
33 void replaceallClicked();
36 void showEvent(QShowEvent * e);
38 bool initialiseParams(std::string const &) { return true; }
40 void dispatchParams() {}
41 bool isBufferDependent() const { return true; }
43 /// Dispatches repeatedly func with wrap around question
44 void wrap_dispatch(const FuncRequest & func, bool forward);
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