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