3 * Copyright 1995-2001 the LyX Team
4 * Read the file COPYING
6 * \author Matthias Ettrich
11 #include "lyxcursor.h"
14 LyXCursor::LyXCursor()
15 : par_(), pos_(0), boundary_(false),
16 x_(0), ix_(0), x_fix_(0), y_(0), iy_(0)
20 void LyXCursor::par(ParagraphList::iterator pit)
26 ParagraphList::iterator LyXCursor::par() const
32 void LyXCursor::pos(lyx::pos_type p)
38 lyx::pos_type LyXCursor::pos() const
44 void LyXCursor::boundary(bool b)
50 bool LyXCursor::boundary() const
56 void LyXCursor::x(int n)
61 int LyXCursor::x() const
67 void LyXCursor::ix(int n)
72 int LyXCursor::ix() const
78 void LyXCursor::x_fix(int i)
84 int LyXCursor::x_fix() const
90 void LyXCursor::y(int i)
96 int LyXCursor::y() const
102 void LyXCursor::iy(int i)
108 int LyXCursor::iy() const
114 void LyXCursor::irow(RowList::iterator r)
120 RowList::iterator LyXCursor::irow() const
126 bool operator==(LyXCursor const & a, LyXCursor const & b)
128 return a.par() == b.par()
129 && a.pos() == b.pos()
130 && a.boundary() == b.boundary();
134 bool operator!=(LyXCursor const & a, LyXCursor const & b)