]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.h
fix bug with relative paths in insetgraphics
[lyx.git] / src / lyxcursor.h
index cc7cb9ef90b91f22d5755a4db3353a2b323314ca..9c37d0dff992c13ddd47cadc725814327b615475 100644 (file)
@@ -1,9 +1,9 @@
 // -*- C++ -*-
 /* This file is part of
- * ====================================================== 
- * 
+ * ======================================================
+ *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 1995 Matthias Ettrich
  *           Copyright 1995-2001 The LyX Team.
  *
@@ -52,6 +52,10 @@ public:
        ///
        int y() const;
        ///
+       void iy(int i);
+       ///
+       int iy() const;
+       ///
        void row(Row * r);
        ///
        Row * row() const;
@@ -68,6 +72,9 @@ private:
        int x_fix_;
        ///
        int y_;
+       /// the y position of the position before the inset when we put
+       /// the cursor on the end of the row before, otherwise equal to y.
+       int iy_;
        ///
        Row * row_;
 };
@@ -90,7 +97,7 @@ bool operator!=(LyXCursor const & a, LyXCursor const & b)
 
 ///
 inline
-bool operator<(LyXCursor const & a, LyXCursor const & b) 
+bool operator<(LyXCursor const & a, LyXCursor const & b)
 {
        // Can this be done in a nother way?
        return (a.y() < b.y() && a.pos() < b.pos());
@@ -98,7 +105,7 @@ bool operator<(LyXCursor const & a, LyXCursor const & b)
 
 ///
 inline
-bool operator>(LyXCursor const & a, LyXCursor const & b) 
+bool operator>(LyXCursor const & a, LyXCursor const & b)
 {
        return b < a;
 }