* Licence details can be found in the file COPYING.
*
* \author John Levon
+ * \author Angus Leeming
*
* Full author contact details are available in file CREDITS.
*/
#define GUISEARCH_H
#include "GuiDialog.h"
-#include "ControlSearch.h"
#include "ui_SearchUi.h"
namespace lyx {
namespace frontend {
-class ControlSearch;
-
-class GuiSearchDialog : public GuiDialog, public Ui::SearchUi
+class GuiSearch : public GuiDialog, public Ui::SearchUi
{
Q_OBJECT
public:
- GuiSearchDialog(LyXView & lv);
+ GuiSearch(GuiView & lv);
private Q_SLOTS:
void findChanged();
void replaceallClicked();
private:
- void showView();
- void closeEvent(QCloseEvent * e);
- /// parent controller
- ControlSearch & controller() const;
- ///
- void find(docstring const & str, bool casesens,
- bool words, bool backwards);
+ void showEvent(QShowEvent * e);
///
- void replace(docstring const & findstr,
- docstring const & replacestr,
- bool casesens, bool words, bool backwards, bool all);
+ bool initialiseParams(std::string const &) { return true; }
+ void clearParams() {}
+ void dispatchParams() {}
+ bool isBufferDependent() const { return true; }
+
+ /// Dispatches repeatedly func with wrap around question
+ void wrap_dispatch(const FuncRequest & func, bool forward);
+
+ /// Searches occurence of string
+ void find(docstring const & search,
+ bool casesensitive, bool matchword, bool forward);
+
+ /// Replaces occurence of string
+ void replace(docstring const & search, docstring const & replace,
+ bool casesensitive, bool matchword,
+ bool forward, bool all);
};
} // namespace frontend