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/docstring.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.
49 void find(BufferView * bv, FuncRequest const & ev);
51 /** Parse the string encoding of the replace request that is found in
52 * \c ev.argument and act on it.
53 * The string is encoded by \c replace2string.
55 void replace(BufferView * bv, FuncRequest const &);
57 /// find the next change in the buffer
58 bool findNextChange(BufferView * bv);