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 "paragraph.h"
23 /** All these variables should be explained. Matthias?
29 void par(Paragraph * p);
31 Paragraph * par() const;
33 void pos(Paragraph::size_type p);
35 Paragraph::size_type pos() const;
37 void boundary(bool b);
39 bool boundary() const;
57 /// The paragraph the cursor is in.
59 /// The position inside the paragraph
60 Paragraph::size_type pos_;
75 bool operator==(LyXCursor const & a, LyXCursor const & b)
77 return (a.par() == b.par())
78 && (a.pos() == b.pos())
79 && a.boundary() == b.boundary();
84 bool operator!=(LyXCursor const & a, LyXCursor const & b)
91 bool operator<(LyXCursor const & a, LyXCursor const & b)
93 // Can this be done in a nother way?
94 return (a.y() < b.y() && a.pos() < b.pos());
99 bool operator>(LyXCursor const & a, LyXCursor const & b)
106 bool operator>=(LyXCursor const & a, LyXCursor const & b)
114 bool operator<=(LyXCursor const & a, LyXCursor const & b)