]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
add the background image to distribution tarball
[lyx.git] / src / lyxfind.h
index 589a5d01d5870177a2e9a42cdfe477d42f506192..6b53da5474829d2a8be41b042b058d84df32aff4 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,7 +93,8 @@ public:
                bool ignoreformat,
                docstring const & repl_buf_name,
                bool keep_case,
-               SearchScope scope = S_BUFFER
+               SearchScope scope = S_BUFFER,
+               SearchRestriction restr = R_EVERYTHING
        );
        FindAndReplaceOptions() {  }
        docstring find_buf_name;
@@ -106,6 +107,7 @@ public:
        docstring repl_buf_name;
        bool keep_case;
        SearchScope scope;
+       SearchRestriction restr;
 };
 
 /// Write a FindAdvOptions instance to a stringstream