X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxcursor.h;h=c36812befd3ac70d82f49f08ab19a6df233d88ab;hb=98c966c64594611e469313314abd1e59524adb4a;hp=43cbc0980cb8443f472834820c02c41e1500a042;hpb=cd6e293ed7c588748fe0cf5927f46dc5e9ae6e35;p=lyx.git diff --git a/src/lyxcursor.h b/src/lyxcursor.h index 43cbc0980c..c36812befd 100644 --- a/src/lyxcursor.h +++ b/src/lyxcursor.h @@ -1,9 +1,9 @@ // -*- C++ -*- /* This file is part of - * ====================================================== - * + * ====================================================== + * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich * Copyright 1995-2001 The LyX Team. * @@ -25,8 +25,6 @@ class Row; */ class LyXCursor { public: - /// position in a paragraph - typedef lyx::pos_type pos_type; /// LyXCursor(); /// @@ -34,9 +32,9 @@ public: /// 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); /// @@ -61,7 +59,7 @@ private: /// The paragraph the cursor is in. Paragraph * par_; /// The position inside the paragraph - pos_type pos_; + lyx::pos_type pos_; /// bool boundary_; /// @@ -92,7 +90,7 @@ bool operator!=(LyXCursor const & a, LyXCursor const & b) /// 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()); @@ -100,7 +98,7 @@ bool operator<(LyXCursor const & a, LyXCursor const & b) /// inline -bool operator>(LyXCursor const & a, LyXCursor const & b) +bool operator>(LyXCursor const & a, LyXCursor const & b) { return b < a; }