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"
28 /** Encode the parameters needed to find \c search as a string
29 * that can be dispatched to the LyX core in a FuncRequest wrapper.
31 std::string const find2string(std::string const & search,
36 /** Encode the parameters needed to replace \c search with \c replace
37 * as a string that can be dispatched to the LyX core in a FuncRequest
40 std::string const replace2string(std::string const & search,
41 std::string const & replace,
47 /** Parse the string encoding of the find request that is found in
48 * \c ev.argument and act on it.
49 * The string is encoded by \c find2string.
51 void find(BufferView * bv, FuncRequest const & ev);
53 /** Parse the string encoding of the replace request that is found in
54 * \c ev.argument and act on it.
55 * The string is encoded by \c replace2string.
57 void replace(BufferView * bv, FuncRequest const &);
59 /// find the next change in the buffer
60 bool findNextChange(BufferView * bv);