X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftextcursor.h;h=a7187eb3d9476a6903711a029a7bf0e16ade4399;hb=09e01879979643949f1f2c7216023f1f35d5ada2;hp=dad6348cb9e35601a28c9f967f3138f8e54333e9;hpb=cc19a4ff582238cb6e7de5608f169f72dd7f5cd7;p=lyx.git diff --git a/src/textcursor.h b/src/textcursor.h index dad6348cb9..a7187eb3d9 100644 --- a/src/textcursor.h +++ b/src/textcursor.h @@ -16,6 +16,9 @@ #ifndef TEXTCURSOR_H #define TEXTCURSOR_H +// Do not even think of forward declaring LyXText/BufferView etc here! +// If you need Paragraph proper, go to text_func.h + /** The cursor. Later this variable has to be removed. There should be now internal cursor in a text (and thus not in a buffer). By keeping this it is @@ -56,19 +59,19 @@ private: }; struct TextCursor { + /// + void setSelection(); + /// + void clearSelection(); + /// + string const selectionAsString(Buffer const * buffer, bool label) const; + // actual cursor position LyXCursor cursor; Selection selection; // this is used to handle XSelection events in the right manner Selection xsel_cache; - - /// needed for the toggling (cursor position on last selection made) - LyXCursor last_sel_cursor; - /// needed for toggling the selection in screen.C - LyXCursor toggle_cursor; - /// needed for toggling the selection in screen.C - LyXCursor toggle_end_cursor; }; #endif