X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.h;h=94efba865e43e6575dfc5943a42e3f424afc37f6;hb=044933b0d929e759d0c7badf55eafc471623cc0c;hp=6b53da5474829d2a8be41b042b058d84df32aff4;hpb=b93f2c20d34b713e0b47cd573f2699e50e797d83;p=lyx.git diff --git a/src/lyxfind.h b/src/lyxfind.h index 6b53da5474..94efba865e 100644 --- a/src/lyxfind.h +++ b/src/lyxfind.h @@ -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,7 @@ public: SearchScope scope = S_BUFFER, SearchRestriction restr = R_EVERYTHING ); - FindAndReplaceOptions() { } + FindAndReplaceOptions() {} docstring find_buf_name; bool casesensitive; bool matchword;