2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
15 #include "lyxparagraph.h"
19 /** All these variables should be explained. Matthias?
24 void par(LyXParagraph * p);
28 LyXParagraph * par() const;
30 void pos(LyXParagraph::size_type p);
32 LyXParagraph::size_type pos() const;
34 void boundary(bool b);
36 bool boundary() const;
46 void y(unsigned long i);
48 unsigned long y() const;
56 /// The paragraph the cursor is in.
58 /// The position inside the paragraph
59 LyXParagraph::size_type pos_;
74 bool operator==(LyXCursor const & a, LyXCursor const & b)
76 return (a.par() == b.par())
77 && (a.pos() == b.pos())
78 && a.boundary() == b.boundary();
83 bool operator!=(LyXCursor const & a, LyXCursor const & b)