X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxcursor.h;h=c36812befd3ac70d82f49f08ab19a6df233d88ab;hb=98c966c64594611e469313314abd1e59524adb4a;hp=8110839903358e9a731b4638ec68a65b8881efe4;hpb=e952d33e0b702265cdac14de9871ecbfcf34863d;p=lyx.git diff --git a/src/lyxcursor.h b/src/lyxcursor.h index 8110839903..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. * @@ -16,25 +16,25 @@ #pragma interface #endif -#include "paragraph.h" +#include "support/types.h" -struct Row; +class Paragraph; +class Row; /** All these variables should be explained. Matthias? */ class LyXCursor { public: + /// LyXCursor(); /// void par(Paragraph * p); /// - //Paragraph * par(); - /// Paragraph * par() const; /// - void pos(Paragraph::size_type p); + void pos(lyx::pos_type p); /// - Paragraph::size_type pos() const; + lyx::pos_type pos() const; /// void boundary(bool b); /// @@ -54,14 +54,12 @@ public: /// void row(Row * r); /// - //Row * row(); - /// Row * row() const; private: /// The paragraph the cursor is in. Paragraph * par_; /// The position inside the paragraph - Paragraph::size_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; }