#ifndef LYXFIND_H
#define LYXFIND_H
-#include "support/types.h"
+#include "support/docstring.h"
-#include <string>
+namespace lyx {
class BufferView;
class FuncRequest;
-class LyXText;
-
-namespace lyx {
-namespace find {
+class Text;
/** Encode the parameters needed to find \c search as a string
* that can be dispatched to the LyX core in a FuncRequest wrapper.
*/
-std::string const find2string(std::string const & search,
+docstring const find2string(docstring const & search,
bool casesensitive,
bool matchword,
bool forward);
* as a string that can be dispatched to the LyX core in a FuncRequest
* wrapper.
*/
-std::string const replace2string(std::string const & search,
- std::string const & replace,
+docstring const replace2string(docstring const & search,
+ docstring const & replace,
bool casesensitive,
bool matchword,
bool all,
* \c ev.argument and act on it.
* The string is encoded by \c find2string.
*/
-void find(FuncRequest const & ev);
+void find(BufferView * bv, FuncRequest const & ev);
/** Parse the string encoding of the replace request that is found in
* \c ev.argument and act on it.
* The string is encoded by \c replace2string.
*/
-void replace(FuncRequest const &);
+void replace(BufferView * bv, FuncRequest const &, bool has_deleted = false);
/// find the next change in the buffer
bool findNextChange(BufferView * bv);
-} // namespace find
} // namespace lyx
#endif // LYXFIND_H