3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
7 * \author Matthias Ettrich
11 * Full author contact details are available in file CREDITS.
16 #include "lyxcursor.h"
19 LyXCursor::LyXCursor()
20 : par_(0), pos_(0), boundary_(false)
24 void LyXCursor::par(lyx::paroffset_type par)
30 lyx::paroffset_type LyXCursor::par() const
36 void LyXCursor::pos(lyx::pos_type pos)
42 lyx::pos_type LyXCursor::pos() const
48 void LyXCursor::boundary(bool boundary)
54 bool LyXCursor::boundary() const
60 bool operator==(LyXCursor const & a, LyXCursor const & b)
62 return a.par() == b.par()
64 && a.boundary() == b.boundary();
68 bool operator!=(LyXCursor const & a, LyXCursor const & b)
74 bool operator<(LyXCursor const & a, LyXCursor const & b)
76 return (a.par() < b.par() ||
77 (a.par() == b.par() && a.pos() < b.pos()));