2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
19 #include "support/types.h"
24 /** All these variables should be explained. Matthias?
31 void par(Paragraph * p);
33 Paragraph * par() const;
35 void pos(lyx::pos_type p);
37 lyx::pos_type pos() const;
39 void boundary(bool b);
41 bool boundary() const;
59 /// The paragraph the cursor is in.
61 /// The position inside the paragraph
77 bool operator==(LyXCursor const & a, LyXCursor const & b)
79 return (a.par() == b.par())
80 && (a.pos() == b.pos())
81 && a.boundary() == b.boundary();
86 bool operator!=(LyXCursor const & a, LyXCursor const & b)
93 bool operator<(LyXCursor const & a, LyXCursor const & b)
95 // Can this be done in a nother way?
96 return (a.y() < b.y() && a.pos() < b.pos());
101 bool operator>(LyXCursor const & a, LyXCursor const & b)
108 bool operator>=(LyXCursor const & a, LyXCursor const & b)
116 bool operator<=(LyXCursor const & a, LyXCursor const & b)