3 * \file FindAndReplace.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Tommaso Cucinotta
9 * Full author contact details are available in file CREDITS.
15 #include "GuiWorkArea.h"
18 #include "ui_FindAndReplaceUi.h"
20 #include "BufferView.h"
33 class FindAndReplace : public DockView, public Ui::FindAndReplaceUi
37 FindAndReplace(GuiView & parent);
39 bool initialiseParams(std::string const &);
41 void dispatchParams() {}
42 bool isBufferDependent() const { return true; }
47 //virtual void update_contents() {}
50 void on_findNextPB_clicked();
51 void on_findPrevPB_clicked();
52 void on_replacePB_clicked();
53 void on_replaceallPB_clicked();
54 void on_closePB_clicked();
55 void on_regexpInsertCombo_currentIndexChanged(int index);
58 void find(bool backwards);
59 virtual bool wantInitialFocus() const { return true; }
62 // add a string to the combo if needed
63 void remember(std::string const & find, QComboBox & combo);
64 void findAdv(bool casesensitive,
65 bool matchword, bool backwards,
66 bool expandmacros, bool ignoreformat);
70 virtual void apply() {}
72 void find(docstring const & str, int len, bool casesens,
73 bool words, bool backwards, bool expandmacros);
75 void replace(docstring const & findstr,
76 docstring const & replacestr,
77 bool casesens, bool words, bool backwards, bool expandmacros, bool all);
78 bool eventFilter(QObject *obj, QEvent *event);
82 } // namespace frontend
85 #endif // QSEARCHADV_H