X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.h;h=727b17f466a74051979e5311869b71c4380ecda4;hb=f7768c994dc6aa6c79c32a8eee77eaa41662f9a4;hp=31f81e8b71b56b8bf79e544b76c543f9d8f66e6c;hpb=065db6806771190d12d37d64c4c86f9c5ebaf225;p=lyx.git diff --git a/src/lyxfind.h b/src/lyxfind.h index 31f81e8b71..727b17f466 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,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;