]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
Revert "Objective-C compililation support with cmake and C++11"
[lyx.git] / src / lyxfind.h
index 9adcae968d9c0faf26f729df98b67a7c28f1836a..31f81e8b71b56b8bf79e544b76c543f9d8f66e6c 100644 (file)
@@ -80,6 +80,10 @@ public:
                S_OPEN_BUFFERS,
                S_ALL_MANUALS
        } SearchScope;
+       typedef enum {
+               R_EVERYTHING,
+               R_ONLY_MATHS
+       } SearchRestriction;
        FindAndReplaceOptions(
                docstring const & find_buf_name,
                bool casesensitive,
@@ -89,9 +93,10 @@ public:
                bool ignoreformat,
                docstring const & repl_buf_name,
                bool keep_case,
-               SearchScope scope = S_BUFFER
+               SearchScope scope = S_BUFFER,
+               SearchRestriction restr = R_EVERYTHING
        );
-       FindAndReplaceOptions() {  }
+       FindAndReplaceOptions() {}
        docstring find_buf_name;
        bool casesensitive;
        bool matchword;
@@ -102,6 +107,7 @@ public:
        docstring repl_buf_name;
        bool keep_case;
        SearchScope scope;
+       SearchRestriction restr;
 };
 
 /// Write a FindAdvOptions instance to a stringstream