]> git.lyx.org Git - lyx.git/blob - src/lyxfind.h
Applied Angus patch to compile on DEC C++ and to avoid name clashes
[lyx.git] / src / lyxfind.h
1 #ifndef LYXFIND_H
2 #define LYXFIND_H
3
4 #ifdef __GNUG__
5 #pragma interface
6 #endif
7
8 #include "LString.h"
9 #include "lyxparagraph.h"
10
11 class BufferView;
12
13 int LyXReplace(BufferView * bv, string const &, string const &,
14                bool const &, bool const &, bool const &, bool const & = false);
15
16 bool LyXFind(BufferView * bv, string const &, bool const &, bool const &,
17              bool const &);
18
19 /// returns true if the specified string is at the specified  position
20 bool IsStringInText(LyXParagraph * par, LyXParagraph::size_type pos,
21                     string const & str, bool const & = true,
22                     bool const & = false);
23
24 /// if the string is found: return true and set the cursor to the new position
25 bool SearchForward(BufferView *, string const & str, bool const & = true, 
26                    bool const & = false);
27 ///
28 bool SearchBackward(BufferView *, string const & str, bool const & = true, 
29                     bool const & = false);
30
31
32 #endif