]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
fix #9826: Outline disclosure of subsection content disappears one second after
[lyx.git] / src / Cursor.h
index 94d8f1a310a06e9b4bd8ee38b1a5f72ca0db45ee..de2405692a9f70065dcadcaf04ef3ed50e1dd2b1 100644 (file)
@@ -95,8 +95,6 @@ public:
 protected:
        /// the anchor position
        DocIterator anchor_;
-       ///
-       mutable DispatchResult disp_;
        /// do we have a selection?
        bool selection_;
        /// are we on the way to get one?
@@ -218,6 +216,9 @@ public:
        bool macromode() const { return macromode_; }
        /// are we entering a macro name?
        bool & macromode() { return macromode_; }
+
+       /// returns true when all insets in cursor stack are in cache
+       bool inCoordCache() const;
        /// returns x,y position
        void getPos(int & x, int & y) const;
        /// return logical positions between which the cursor is situated
@@ -226,8 +227,6 @@ public:
         * edge" will be returned as -1.
         */
        void getSurroundingPos(pos_type & left_pos, pos_type & right_pos) const;
-       void getSurroundingPosNew(pos_type & left_pos, pos_type & right_pos) const;
-       void getSurroundingPosOrig(pos_type & left_pos, pos_type & right_pos) const;
        /// the row in the paragraph we're in
        Row const & textRow() const;
 
@@ -298,10 +297,9 @@ public:
 
        /// access to normalized selection anchor
        CursorSlice normalAnchor() const;
-       // FIXME: this can't be a const & and a const function because
-       // LFUN_TAB_* wants to move the real anchor.
        /// access to real selection anchor
-       DocIterator & realAnchor();
+       DocIterator const & realAnchor() const { return anchor_; }
+       DocIterator & realAnchor() { return anchor_; }
        /// sets anchor to cursor position
        void resetAnchor();
        /// access to owning BufferView