]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.h
Account for old versions of Pygments
[lyx.git] / src / lyxfind.h
index 6b53da5474829d2a8be41b042b058d84df32aff4..727b17f466a74051979e5311869b71c4380ecda4 100644 (file)
@@ -26,6 +26,7 @@ namespace lyx {
 
 
 class Buffer;
+class Cursor;
 class BufferView;
 class DocIterator;
 class FuncRequest;
@@ -72,6 +73,10 @@ bool findNextChange(BufferView * bv);
 /// find the previous change in the buffer
 bool findPreviousChange(BufferView * bv);
 
+/// select change under the cursor
+bool selectChange(Cursor & cur, bool forward = true);
+
+
 class FindAndReplaceOptions {
 public:
        typedef enum {
@@ -96,7 +101,9 @@ public:
                SearchScope scope = S_BUFFER,
                SearchRestriction restr = R_EVERYTHING
        );
-       FindAndReplaceOptions() {  }
+       FindAndReplaceOptions() : casesensitive(false), matchword(false), forward(false),
+                                 expandmacros(false), ignoreformat(false),
+                                                         keep_case(false), scope(S_BUFFER), restr(R_EVERYTHING) {}
        docstring find_buf_name;
        bool casesensitive;
        bool matchword;