]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
Use context-sensitive command termination
[lyx.git] / src / Cursor.h
index acec12772fcc0dd8b8ef40c4fdccc4bff07efcf0..cc5e46e83b5315ca5114e28b161b721b6044c169 100644 (file)
@@ -149,7 +149,10 @@ public:
        /// set the cursor data
        void setCursorData(CursorData const & data);
        /// sets cursor part
+       /// this (intentionally) does neither touch anchor nor selection status
        void setCursor(DocIterator const & it);
+       /// set the cursor to dit normalised against the anchor, and set selection.
+       void setCursorSelectionTo(DocIterator dit);
        /// sets the cursor to the normalized selection anchor
        void setCursorToAnchor();
 
@@ -161,8 +164,8 @@ public:
        //
        /// selection active?
        bool selection() const { return selection_; }
-       /// set selection;
-       void setSelection(bool sel) { selection_ = sel; }
+       /// set selection; this is lower level than (set|clear)Selection
+       void selection(bool sel) { selection_ = sel; }
        /// do we have a multicell selection?
        bool selIsMultiCell() const 
                { return selection_ && selBegin().idx() != selEnd().idx(); }