]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
Point fix, earlier forgotten
[lyx.git] / src / lyxfind.h
index 03a70e3408ed4bae71047edb583e266bafbfb646..04a242f235ac92dca90e7adb78bb0d2be6a5b377 100644 (file)
@@ -1,4 +1,16 @@
 // -*- C++ -*-
+/**
+ * \file lyxfind.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author John Levon
+ * \author Jürgen Vigna
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef LYXFIND_H
 #define LYXFIND_H
 
@@ -8,7 +20,8 @@
 class BufferView;
 class LyXText;
 
-namespace lyxfind {
+namespace lyx {
+namespace find {
 
 enum SearchResult {
        //
@@ -20,7 +33,7 @@ enum SearchResult {
 };
 
 
-int LyXReplace(BufferView * bv,
+int replace(BufferView * bv,
               string const &, string const &,
               bool, bool = true, bool = false,
               bool = false, bool = false);
@@ -30,7 +43,7 @@ int LyXReplace(BufferView * bv,
  * text from the actual cursor position in whatever direction
  * we want to go. This does also update the screen.
  */
-bool LyXFind(BufferView *,
+bool find(BufferView *,
             string const & searchstr, bool forward,
             bool casesens = true, bool matchwrd = false);
 
@@ -42,17 +55,18 @@ bool LyXFind(BufferView *,
  * returning to the calling function.
  */
 
-SearchResult LyXFind(BufferView *, LyXText * text,
+SearchResult find(BufferView *, LyXText * text,
                     string const & searchstr, bool forward,
                     bool casesens = true, bool matchwrd = false);
 
 /// find the next change in the buffer
 bool findNextChange(BufferView * bv);
+
 SearchResult findNextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);
+
 SearchResult nextChange(BufferView * bv, LyXText * text, lyx::pos_type & length);
-} // end namespace LyXFind
+
+} // namespace find
+} // namespace lyx
+
 #endif // LYXFIND_H