]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
add config.h
[lyx.git] / src / lyxfind.h
index 8a82caac878c06251190ea40caf07f6f871aa56f..9ff26374b4d76ed0428ec0d683b878abf2c1dfc2 100644 (file)
 #ifndef LYXFIND_H
 #define LYXFIND_H
 
-#include "support/types.h"
+#include "support/docstring.h"
 
-#include <string>
+namespace lyx {
 
 class BufferView;
 class FuncRequest;
 class LyXText;
 
-namespace lyx {
-namespace find {
-
 /** Encode the parameters needed to find \c search as a string
  *  that can be dispatched to the LyX core in a FuncRequest wrapper.
  */
-std::string const find2string(std::string const & search,
+docstring const find2string(docstring const & search,
                              bool casesensitive,
                              bool matchword,
                              bool forward);
@@ -38,8 +35,8 @@ std::string const find2string(std::string const & search,
  *  as a string that can be dispatched to the LyX core in a FuncRequest
  *  wrapper.
  */
-std::string const replace2string(std::string const & search,
-                                std::string const & replace,
+docstring const replace2string(docstring const & search,
+                                docstring const & replace,
                                 bool casesensitive,
                                 bool matchword,
                                 bool all,
@@ -60,7 +57,6 @@ void replace(BufferView * bv, FuncRequest const &);
 /// find the next change in the buffer
 bool findNextChange(BufferView * bv);
 
-} // namespace find
 } // namespace lyx
 
 #endif // LYXFIND_H