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_(), pos_(0), boundary_(false),
21 x_(0), ix_(0), x_fix_(0), y_(0), iy_(0)
25 void LyXCursor::par(ParagraphList::iterator pit)
31 ParagraphList::iterator LyXCursor::par() const
37 void LyXCursor::pos(lyx::pos_type p)
43 lyx::pos_type LyXCursor::pos() const
49 void LyXCursor::boundary(bool b)
55 bool LyXCursor::boundary() const
61 void LyXCursor::x(int n)
66 int LyXCursor::x() const
72 void LyXCursor::ix(int n)
77 int LyXCursor::ix() const
83 void LyXCursor::x_fix(int i)
89 int LyXCursor::x_fix() const
95 void LyXCursor::y(int i)
101 int LyXCursor::y() const
107 void LyXCursor::iy(int i)
113 int LyXCursor::iy() const
119 bool operator==(LyXCursor const & a, LyXCursor const & b)
121 return a.par() == b.par()
122 && a.pos() == b.pos()
123 && a.boundary() == b.boundary();
127 bool operator!=(LyXCursor const & a, LyXCursor const & b)