// -*- C++ -*-
/* This file is part of
- * ======================================================
- *
+ * ======================================================
+ *
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
*/
class LyXCursor {
public:
- /// position in a paragraph
- typedef lyx::pos_type pos_type;
///
LyXCursor();
///
///
Paragraph * par() const;
///
- void pos(pos_type p);
+ void pos(lyx::pos_type p);
///
- pos_type pos() const;
+ lyx::pos_type pos() const;
///
void boundary(bool b);
///
/// The paragraph the cursor is in.
Paragraph * par_;
/// The position inside the paragraph
- pos_type pos_;
+ lyx::pos_type pos_;
///
bool boundary_;
///
///
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;
}