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