]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / lyxcursor.C
index 03ef3017562f6a85f6001c12f2e39e210d1ec362..fb298015452f491df3df0e8cc6a0b0e70641ac49 100644 (file)
@@ -13,7 +13,7 @@
 
 LyXCursor::LyXCursor()
        : par_(), pos_(0), boundary_(false),
-         x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0)
+         x_(0), ix_(0), x_fix_(0), y_(0), iy_(0)
 {}
 
 
@@ -111,25 +111,16 @@ int LyXCursor::iy() const
 }
 
 
-void LyXCursor::row(RowList::iterator r)
+bool operator==(LyXCursor const & a, LyXCursor const & b)
 {
-       row_ = r;
+       return a.par() == b.par()
+           && a.pos() == b.pos()
+           && a.boundary() == b.boundary();
 }
 
 
-RowList::iterator LyXCursor::row() const
+bool operator!=(LyXCursor const & a, LyXCursor const & b)
 {
-       return row_;
+       return !(a == b);
 }
 
-
-void LyXCursor::irow(RowList::iterator r)
-{
-       irow_ = r;
-}
-
-
-RowList::iterator LyXCursor::irow() const
-{
-       return irow_;
-}