]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.h
Call an update before setting the_locking_inset = 0 as otherwise we
[lyx.git] / src / lyxcursor.h
index 9c37d0dff992c13ddd47cadc725814327b615475..d33515c44df339bc985778d887f2ad9aaf519846 100644 (file)
@@ -44,6 +44,10 @@ public:
        ///
        int x() const;
        ///
+       void ix(int i);
+       ///
+       int ix() const;
+       ///
        void x_fix(int i);
        ///
        int x_fix() const;
@@ -59,6 +63,10 @@ public:
        void row(Row * r);
        ///
        Row * row() const;
+       ///
+       void irow(Row * r);
+       ///
+       Row * irow() const;
 private:
        /// The paragraph the cursor is in.
        Paragraph * par_;
@@ -68,6 +76,9 @@ private:
        bool boundary_;
        ///
        int x_;
+       /// the x position of the position before the inset when we put
+       /// the cursor on the end of the row before, otherwise equal to x.
+       int ix_;
        ///
        int x_fix_;
        ///
@@ -77,6 +88,9 @@ private:
        int iy_;
        ///
        Row * row_;
+       /// the row of the position before the inset when we put
+       /// the cursor on the end of the row before, otherwise equal to row.
+       Row * irow_;
 };
 
 ///