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
11 * Full author contact details are available in file CREDITS.
17 #include "support/types.h"
37 int replace(BufferView * bv,
38 std::string const &, std::string const &,
39 bool, bool = true, bool = false,
40 bool = false, bool = false);
43 * This function is called as a general interface to find some
44 * text from the actual cursor position in whatever direction
45 * we want to go. This does also update the screen.
47 bool find(BufferView *,
48 std::string const & searchstr, bool forward,
49 bool casesens = true, bool matchwrd = false);
52 * This function does search from the cursor position inside the
53 * passed LyXText parameter and regards this LyXText as the root
54 * LyXText. It will NOT update any screen stuff. It will however
55 * set the cursor to the new position inside LyXText, before
56 * returning to the calling function.
59 SearchResult find(BufferView *, LyXText * text,
60 std::string const & searchstr, bool forward,
61 bool casesens = true, bool matchwrd = false);
63 /// find the next change in the buffer
64 bool findNextChange(BufferView * bv);
66 SearchResult findNextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);
68 SearchResult nextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);