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;
67 /// The paragraph the cursor is in.
69 /// The position inside the paragraph
75 /// the x position of the position before the inset when we put
76 /// the cursor on the end of the row before, otherwise equal to x.
82 /// the y position of the position before the inset when we put
83 /// the cursor on the end of the row before, otherwise equal to y.
91 bool operator==(LyXCursor const & a, LyXCursor const & b)
93 return (a.par() == b.par())
94 && (a.pos() == b.pos())
95 && a.boundary() == b.boundary();
100 bool operator!=(LyXCursor const & a, LyXCursor const & b)
107 bool operator<(LyXCursor const & a, LyXCursor const & b)
109 // Can this be done in a nother way?
110 return (a.y() < b.y() && a.pos() < b.pos());
115 bool operator>(LyXCursor const & a, LyXCursor const & b)
122 bool operator>=(LyXCursor const & a, LyXCursor const & b)
130 bool operator<=(LyXCursor const & a, LyXCursor const & b)