]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
Add test-refstyle-references to cmake. Also added missing file test-refstyle-referenc...
[lyx.git] / src / Cursor.h
index 318c5d9a6d45e34e5f7a9343abf7ac496973ca9a..d84db92b409826f9f1508d1409d25e09014ac5b6 100644 (file)
@@ -52,8 +52,6 @@ public:
 protected:
        /// the anchor position
        DocIterator anchor_;
-       /// the start of the new born word
-       DocIterator new_word_;
        ///
        mutable DispatchResult disp_;
        /// do we have a selection?
@@ -306,6 +304,9 @@ public:
        /// fix cursor in circumstances that should never happen.
        /// \retval true if a fix occured.
        bool fixIfBroken();
+       /// Repopulate the slices insets from bottom to top. Useful
+       /// for stable iterators or Undo data.
+       void sanitize();
 
        /// output
        friend std::ostream & operator<<(std::ostream & os, Cursor const & cur);
@@ -391,6 +392,8 @@ private:
        int x_target_;
        /// if a x_target cannot be hit exactly in a text, put the difference here
        int textTargetOffset_;
+       /// the start of the new born word
+       DocIterator new_word_;
        /// position before dispatch started
        DocIterator beforeDispatchCursor_;
        /// cursor screen coordinates before dispatch started