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