]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
Remove unneeded std::.
[lyx.git] / src / lyxfind.h
index f8a77494f05dc608ecd1ca769af763d5325b690c..ff68b8ee643852295bb7d5ad2d4b415873ad318e 100644 (file)
@@ -78,6 +78,12 @@ bool findChange(BufferView * bv, bool next);
 
 class FindAndReplaceOptions {
 public:
+       typedef enum {
+               S_BUFFER,
+               S_DOCUMENT,
+               S_OPEN_BUFFERS,
+               /*S_ALL_MANUALS*/
+       } SearchScope;
        FindAndReplaceOptions(
                docstring const & search,
                bool casesensitive,
@@ -87,7 +93,8 @@ public:
                bool ignoreformat,
                bool regexp,
                docstring const & replace,
-               bool keep_case
+               bool keep_case,
+               SearchScope scope = S_BUFFER
        );
        FindAndReplaceOptions() {  }
        docstring search;
@@ -99,6 +106,7 @@ public:
        bool regexp;
        docstring replace;
        bool keep_case;
+       SearchScope scope;
 };
 
 /// Write a FindAdvOptions instance to a stringstream