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/types.h"
29 /** Encode the parameters needed to find \c search as a string
30 * that can be dispatched to the LyX core in a FuncRequest wrapper.
32 std::string const find2string(std::string const & search,
37 /** Encode the parameters needed to replace \c search with \c replace
38 * as a string that can be dispatched to the LyX core in a FuncRequest
41 std::string const replace2string(std::string const & search,
42 std::string const & replace,
48 /** Parse the string encoding of the find request that is found in
49 * \c ev.argument and act on it.
50 * The string is encoded by \c find2string.
52 void find(BufferView * bv, FuncRequest const & ev);
54 /** Parse the string encoding of the replace request that is found in
55 * \c ev.argument and act on it.
56 * The string is encoded by \c replace2string.
58 void replace(BufferView * bv, FuncRequest const &);
60 /// find the next change in the buffer
61 bool findNextChange(BufferView * bv);