4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Lars Gullik Bjønnes
11 * Full author contact details are available in file CREDITS
14 #include "lyxcursor.h"
20 Later this variable has to be removed. There should be now internal
21 cursor in a text (and thus not in a buffer). By keeping this it is
22 (I think) impossible to have several views with the same buffer, but
23 the cursor placed at different places.
25 Since the LyXText now has been moved from Buffer to BufferView
26 it should not be absolutely needed to move the cursor...
28 It should neverthe less to keep classes and intedependencies small
31 // The structure that keeps track of the selections set.
34 : set_(false), mark_(false)
48 LyXCursor cursor; // temporary cursor to hold a cursor position
49 // until setSelection is called!
50 LyXCursor start; // start of a REAL selection
51 LyXCursor end; // end of a REAL selection
53 bool set_; // former selection
54 bool mark_; // former mark_set
59 // actual cursor position
63 // this is used to handle XSelection events in the right manner
66 /// needed for the toggling (cursor position on last selection made)
67 LyXCursor last_sel_cursor;
68 /// needed for toggling the selection in screen.C
69 LyXCursor toggle_cursor;
70 /// needed for toggling the selection in screen.C
71 LyXCursor toggle_end_cursor;