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"
35 int replace(BufferView * bv,
36 std::string const &, std::string const &,
37 bool, bool = true, bool = false,
38 bool = false, bool = false);
41 * This function is called as a general interface to find some
42 * text from the actual cursor position in whatever direction
43 * we want to go. This does also update the screen.
45 bool find(BufferView *,
46 std::string const & searchstr, bool forward,
47 bool casesens = true, bool matchwrd = false);
50 * This function does search from the cursor position inside the
51 * passed LyXText parameter and regards this LyXText as the root
52 * LyXText. It will NOT update any screen stuff. It will however
53 * set the cursor to the new position inside LyXText, before
54 * returning to the calling function.
57 SearchResult find(BufferView *, LyXText * text,
58 std::string const & searchstr, bool forward,
59 bool casesens = true, bool matchwrd = false);
61 /// find the next change in the buffer
62 bool findNextChange(BufferView * bv);
64 SearchResult findNextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);
66 SearchResult nextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);