// -*- C++ -*-
/* This file is part of
- * ======================================================
- *
+ * ======================================================
+ *
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
///
int x() const;
///
+ void ix(int i);
+ ///
+ int ix() const;
+ ///
void x_fix(int i);
///
int x_fix() const;
///
int y() const;
///
+ void iy(int i);
+ ///
+ int iy() const;
+ ///
void row(Row * r);
///
Row * row() const;
+ ///
+ void irow(Row * r);
+ ///
+ Row * irow() const;
private:
/// The paragraph the cursor is in.
Paragraph * par_;
bool boundary_;
///
int x_;
+ /// the x position of the position before the inset when we put
+ /// the cursor on the end of the row before, otherwise equal to x.
+ int ix_;
///
int x_fix_;
///
int y_;
+ /// the y position of the position before the inset when we put
+ /// the cursor on the end of the row before, otherwise equal to y.
+ int iy_;
///
Row * row_;
+ /// the row of the position before the inset when we put
+ /// the cursor on the end of the row before, otherwise equal to row.
+ Row * irow_;
};
///
///
inline
-bool operator<(LyXCursor const & a, LyXCursor const & b)
+bool operator<(LyXCursor const & a, LyXCursor const & b)
{
// Can this be done in a nother way?
return (a.y() < b.y() && a.pos() < b.pos());
///
inline
-bool operator>(LyXCursor const & a, LyXCursor const & b)
+bool operator>(LyXCursor const & a, LyXCursor const & b)
{
return b < a;
}