]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
HTML for math sizes.
[lyx.git] / src / Cursor.h
index b19a12a9ae80e2acc95b53ef8b8850246340437f..f1a859662020c8953889b418e9b832adda2837d1 100644 (file)
@@ -292,10 +292,12 @@ public:
        DocIterator anchor_;
        
        ///
-       DispatchResult disp_;
+       mutable DispatchResult disp_;
        ///
-       DocIterator const & beforeDispatchCursor() { return beforeDispatchCursor_; }
-       
+       DocIterator const & beforeDispatchCursor() const { return beforeDispatchCursor_; }
+       ///
+       void saveBeforeDispatchPosXY();
+
 private:
        /**
         * The target x position of the cursor. This is used for when
@@ -325,6 +327,10 @@ private:
        bool logicalpos_;
        /// position before dispatch started
        DocIterator beforeDispatchCursor_;
+       /// cursor screen coordinates before dispatch started
+       int beforeDispatchPosX_;
+       int beforeDispatchPosY_;
+
 
 // FIXME: make them private.
 public: