]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.h
ws changes only
[lyx.git] / src / lyxcursor.h
index 7518ef0f4aa0b2e03205c162d83c2e44e7b0379c..471d6d8277d90e3018587684ef8090a3217748d5 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,16 +45,6 @@ public:
        void x(int i);
        /// return the x position in pixels
        int x() const;
-       /// set the stored next-line position when at the end of a row
-       void ix(int i);
-       /**
-        * Return the x position of the start of the next row, when this
-        * cursor is at the end of the previous row, for insets that take
-        * a full row.
-        *
-        * FIXME: explain why we need this ?
-        */
-       int ix() const;
        /// set the cached x position
        void x_fix(int i);
        /**
@@ -75,19 +64,10 @@ public:
        void y(int i);
        /// return the y position in pixels
        int y() const;
-       /// set the stored next-line y position when at the end of a row
-       void iy(int i);
-       /**
-        * Return the y position of the start of the next row, when this
-        * cursor is at the end of the previous row, for insets that take
-        * a full row.
-        *
-        * FIXME: explain why we need this ? especially for y...
-        */
-       int iy() const;
+
 private:
        /// The paragraph the cursor is in.
-       ParagraphList::iterator par_;
+       lyx::paroffset_type par_;
        /// The position inside the paragraph
        lyx::pos_type pos_;
        /**
@@ -108,17 +88,13 @@ private:
        bool boundary_;
        /// the pixel x position
        int x_;
-       /// the stored next-row x position
-       int ix_;
        /// the cached x position
        int x_fix_;
        /// the pixel y position
        int y_;
-       /// the stored next-row y position
-       int iy_;
 };
 
-/// 
+///
 bool operator==(LyXCursor const & a, LyXCursor const & b);
 ///
 bool operator!=(LyXCursor const & a, LyXCursor const & b);