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);
31 void findClicked(bool const backwards = false);
32 void replaceClicked();
33 void replaceallClicked();
37 void keyPressEvent(QKeyEvent * e) override;
39 void showEvent(QShowEvent * e) override;
41 bool initialiseParams(std::string const &) override { return true; }
42 void clearParams() override {}
43 void dispatchParams() override {}
44 bool isBufferDependent() const override { return true; }
46 /// Searches occurrence of string
47 void find(docstring const & search,
48 bool casesensitive, bool matchword, bool forward);
50 /// Replaces occurrence of string
51 void replace(docstring const & search, docstring const & replace,
52 bool casesensitive, bool matchword,
53 bool forward, bool all);
56 } // namespace frontend