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_(-1), pos_(0), boundary_(false), x_(0), x_fix_(0), y_(0)
24 void LyXCursor::par(lyx::paroffset_type par)
30 lyx::paroffset_type LyXCursor::par() const
36 void LyXCursor::pos(lyx::pos_type p)
42 lyx::pos_type LyXCursor::pos() const
48 void LyXCursor::boundary(bool b)
54 bool LyXCursor::boundary() const
60 void LyXCursor::x(int n)
65 int LyXCursor::x() const
71 void LyXCursor::x_fix(int i)
77 int LyXCursor::x_fix() const
83 void LyXCursor::y(int i)
89 int LyXCursor::y() const
95 bool operator==(LyXCursor const & a, LyXCursor const & b)
97 return a.par() == b.par()
99 && a.boundary() == b.boundary();
103 bool operator!=(LyXCursor const & a, LyXCursor const & b)