]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.C
last Friday's text*.C -> text_func shuffle
[lyx.git] / src / lyxcursor.C
index 46234269c24c20419bfd8ab1ee9a4b8085c2e6c4..1e16cba9bd7f68c0593c818bbaf979dcae8faa67 100644 (file)
@@ -12,8 +12,8 @@
 
 
 LyXCursor::LyXCursor()
-       : par_(0), pos_(0), boundary_(false),
-         x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0)
+       : par_(), pos_(0), boundary_(false),
+         x_(0), ix_(0), x_fix_(0), y_(0), iy_(0)
 {}
 
 
@@ -111,25 +111,28 @@ int LyXCursor::iy() const
 }
 
 
-void LyXCursor::row(RowList::iterator r)
+void LyXCursor::irow(RowList::iterator r)
 {
-       row_ = r;
+       irow_ = r;
 }
 
 
-RowList::iterator LyXCursor::row() const
+RowList::iterator LyXCursor::irow() const
 {
-       return row_;
+       return irow_;
 }
 
 
-void LyXCursor::irow(RowList::iterator r)
+bool operator==(LyXCursor const & a, LyXCursor const & b)
 {
-       irow_ = r;
+       return a.par() == b.par()
+           && a.pos() == b.pos()
+           && a.boundary() == b.boundary();
 }
 
 
-RowList::iterator LyXCursor::irow() const
+bool operator!=(LyXCursor const & a, LyXCursor const & b)
 {
-       return irow_;
+       return !(a == b);
 }
+