- GuiSearch(GuiDialog &);
- /// parent controller
- ControlSearch & controller()
- { return static_cast<ControlSearch &>(this->getController()); }
- /// parent controller
- ControlSearch const & controller() const
- { return static_cast<ControlSearch const &>(this->getController()); }
-private:
- /// Apply changes
- virtual void applyView() {}
- /// update
- virtual void update_contents() {}
- /// build the dialog
- virtual void build_dialog();
-
- void find(docstring const & str, bool casesens,
- bool words, bool backwards);
-
- 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; }
+
+ /// 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);