]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
Use QProxyStyle instead of QMacStyle. QMacStyle is not available anymore with At5...
[lyx.git] / src / lyxfind.h
index 589a5d01d5870177a2e9a42cdfe477d42f506192..31f81e8b71b56b8bf79e544b76c543f9d8f66e6c 100644 (file)
@@ -72,10 +72,6 @@ bool findNextChange(BufferView * bv);
 /// find the previous change in the buffer
 bool findPreviousChange(BufferView * bv);
 
-/// find the change in the buffer
-/// \param next true to find the next change, otherwise the previous
-bool findChange(BufferView * bv, bool next);
-
 class FindAndReplaceOptions {
 public:
        typedef enum {
@@ -84,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,
@@ -93,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;
@@ -106,6 +107,7 @@ public:
        docstring repl_buf_name;
        bool keep_case;
        SearchScope scope;
+       SearchRestriction restr;
 };
 
 /// Write a FindAdvOptions instance to a stringstream