]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.h
the spellcheck cleanup
[lyx.git] / src / lyxcursor.h
index e75ce1591c740857dde293603e3895448025051f..dd9497e2974b5a17fcd04491eae6c06bd4dd24bf 100644 (file)
@@ -17,7 +17,6 @@
 #ifndef LYXCURSOR_H
 #define LYXCURSOR_H
 
-#include "ParagraphList.h"
 #include "support/types.h"
 
 /**
@@ -31,9 +30,9 @@ class LyXCursor {
 public:
        LyXCursor();
        /// set the paragraph that contains this cursor
-       void par(ParagraphList::iterator pit);
+       void par(lyx::paroffset_type pit);
        /// return the paragraph this cursor is in
-       ParagraphList::iterator par() const;
+       lyx::paroffset_type par() const;
        /// set the position within the paragraph
        void pos(lyx::pos_type p);
        /// return the position within the paragraph
@@ -46,21 +45,6 @@ public:
        void x(int i);
        /// return the x position in pixels
        int x() const;
-       /// set the cached x position
-       void x_fix(int i);
-       /**
-        * Return the cached x position of the cursor. This is used for when
-        * we have text like :
-        *
-        * blah blah blah blah| blah blah blah
-        * blah blah blah
-        * blah blah blah blah blah blah
-        *
-        * When we move onto row 3, we would like to be vertically aligned
-        * with where we were in row 1, despite the fact that row 2 is
-        * shorter than x()
-        */
-       int x_fix() const;
        /// set the y position in pixels
        void y(int i);
        /// return the y position in pixels
@@ -68,7 +52,7 @@ public:
 
 private:
        /// The paragraph the cursor is in.
-       ParagraphList::iterator par_;
+       lyx::paroffset_type par_;
        /// The position inside the paragraph
        lyx::pos_type pos_;
        /**
@@ -89,8 +73,6 @@ private:
        bool boundary_;
        /// the pixel x position
        int x_;
-       /// the cached x position
-       int x_fix_;
        /// the pixel y position
        int y_;
 };