]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
fix typo that put too many include paths for most people
[lyx.git] / src / lyxfind.h
index 37509ef0a2ca4503ddc22742bad3087f03387a2c..2e74dc3361a9667c866d389fcac4dba7511e31d4 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 #ifndef LYXFIND_H
 #define LYXFIND_H
 
@@ -6,27 +7,17 @@
 #endif
 
 #include "LString.h"
-#include "lyxparagraph.h"
+#include "paragraph.h"
 
 class BufferView;
 
 int LyXReplace(BufferView * bv, string const &, string const &,
-              bool const &, bool const &, bool const &, bool const & = false);
-
-bool LyXFind(BufferView * bv, string const &, bool const &, bool const &,
-            bool const &);
-
-/// returns true if the specified string is at the specified  position
-bool IsStringInText(LyXParagraph * par, LyXParagraph::size_type pos,
-                   string const & str, bool const & = true,
-                   bool const & = false);
-
-/// if the string is found: return true and set the cursor to the new position
-bool SearchForward(BufferView *, string const & str, bool const & = true, 
-                  bool const & = false);
-///
-bool SearchBackward(BufferView *, string const & str, bool const & = true, 
-                   bool const & = false);
+              bool, bool = true, bool = false,
+              bool = false, bool = false);
 
+bool LyXFind(BufferView *,
+            string const & searchstr, bool forward,
+            bool frominset = false, bool casesens = true,
+            bool matchwrd = false);
 
 #endif