]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.h
Fix up 'Reduce metrics updates from 4 to 1 when loading file'
[lyx.git] / src / CursorSlice.h
index f44c92e0c29b3c5bc9f5795153fe965435ab9a7c..eb865de9482013ec8f742b9689d946fb2b525965 100644 (file)
@@ -24,7 +24,7 @@
 
 namespace lyx {
 
-class Inset;
+class InsetMath;
 class MathData;
 class Text;
 class Paragraph;
@@ -44,13 +44,6 @@ public:
        friend class StableDocIterator;
        //@}
 
-       /// type for cell number in inset
-       typedef size_t idx_type;
-       /// type for row indices
-       typedef size_t row_type;
-       /// type for col indices
-       typedef size_t col_type;
-
        ///
        CursorSlice();
        ///
@@ -119,6 +112,8 @@ public:
        Text * text() const { return inset_->getText(idx_); }
        /// paragraph in this cell
        Paragraph & paragraph() const;
+       ///
+       void setPitPos(pit_type pit, pos_type pos);
 
        ///
        /// mathed specific stuff
@@ -146,7 +141,7 @@ public:
        bool at_end() const;
        /// are we at the start of this slice
        bool at_begin() const;
-       
+
 private:
 
        /// pointer to 'owning' inset. This is some kind of cache.