]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.h
fix typo that put too many include paths for most people
[lyx.git] / src / lyxcursor.h
index 43cbc0980cb8443f472834820c02c41e1500a042..c36812befd3ac70d82f49f08ab19a6df233d88ab 100644 (file)
@@ -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;
 }