X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.h;h=6301ab5b7418340f59eec33e7072b22aa85a412f;hb=b7406da7f0326fbd895c700ad5ded4cc5112094f;hp=9ff26374b4d76ed0428ec0d683b878abf2c1dfc2;hpb=55f575c4dd64dfa0545d7ec044a3718e0e26d778;p=lyx.git diff --git a/src/lyxfind.h b/src/lyxfind.h index 9ff26374b4..6301ab5b74 100644 --- a/src/lyxfind.h +++ b/src/lyxfind.h @@ -15,13 +15,13 @@ #ifndef LYXFIND_H #define LYXFIND_H -#include "support/docstring.h" +#include "support/strfwd.h" namespace lyx { class BufferView; class FuncRequest; -class LyXText; +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. @@ -45,14 +45,15 @@ docstring const replace2string(docstring const & search, /** Parse the string encoding of the find request that is found in * \c ev.argument and act on it. * The string is encoded by \c find2string. + * \return true if the string was found. */ -void find(BufferView * bv, FuncRequest const & ev); +bool 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(BufferView * bv, FuncRequest const &); +void replace(BufferView * bv, FuncRequest const &, bool has_deleted = false); /// find the next change in the buffer bool findNextChange(BufferView * bv);