10 #include "support/types.h"
27 int LyXReplace(BufferView * bv,
28 string const &, string const &,
29 bool, bool = true, bool = false,
30 bool = false, bool = false);
33 * This function is called as a general interface to find some
34 * text from the actual cursor position in whatever direction
35 * we want to go. This does also update the screen.
37 bool LyXFind(BufferView *,
38 string const & searchstr, bool forward,
39 bool casesens = true, bool matchwrd = false);
42 * This function does search from the cursor position inside the
43 * passed LyXText parameter and regards this LyXText as the root
44 * LyXText. It will NOT update any screen stuff. It will however
45 * set the cursor to the new position inside LyXText, before
46 * returning to the calling function.
49 SearchResult LyXFind(BufferView *, LyXText * text,
50 string const & searchstr, bool forward,
51 bool casesens = true, bool matchwrd = false);
53 /// find the next change in the buffer
54 bool findNextChange(BufferView * bv);
56 SearchResult findNextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);
58 SearchResult nextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);
60 } // end namespace LyXFind