4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "GuiDialogView.h"
16 #include "ControlSearch.h"
17 #include "ui_SearchUi.h"
28 class GuiSearchDialog : public QDialog, public Ui::SearchUi {
31 GuiSearchDialog(GuiSearch * form);
37 void replaceClicked();
38 void replaceallClicked();
40 virtual void closeEvent(QCloseEvent * e);
47 class GuiSearch : public GuiView<GuiSearchDialog>
51 friend class GuiSearchDialog;
53 GuiSearch(GuiDialog &);
55 ControlSearch & controller()
56 { return static_cast<ControlSearch &>(this->getController()); }
58 ControlSearch const & controller() const
59 { return static_cast<ControlSearch const &>(this->getController()); }
62 virtual void apply() {}
64 virtual void update_contents() {}
66 virtual void build_dialog();
68 void find(docstring const & str, bool casesens,
69 bool words, bool backwards);
71 void replace(docstring const & findstr,
72 docstring const & replacestr,
73 bool casesens, bool words, bool backwards, bool all);
76 } // namespace frontend