4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
10 * \author Alfredo Braunstein
12 * Full author contact details are available in file CREDITS.
18 #include "support/strfwd.h"
26 /** Encode the parameters needed to find \c search as a string
27 * that can be dispatched to the LyX core in a FuncRequest wrapper.
29 docstring const find2string(docstring const & search,
34 /** Encode the parameters needed to replace \c search with \c replace
35 * as a string that can be dispatched to the LyX core in a FuncRequest
38 docstring const replace2string(docstring const & search,
39 docstring const & replace,
45 /** Parse the string encoding of the find request that is found in
46 * \c ev.argument and act on it.
47 * The string is encoded by \c find2string.
48 * \return true if the string was found.
50 bool find(BufferView * bv, FuncRequest const & ev);
52 /** Parse the string encoding of the replace request that is found in
53 * \c ev.argument and act on it.
54 * The string is encoded by \c replace2string.
56 void replace(BufferView * bv, FuncRequest const &, bool has_deleted = false);
58 /// find the next change in the buffer
59 bool findNextChange(BufferView * bv);