]> git.lyx.org Git - lyx.git/blobdiff - src/texrow.h
Fixed various "missing features" in the tabular/textinset code.
[lyx.git] / src / texrow.h
index 2013ff1a2ca44a7b09dffa5c7e48ef5a80bacfce..9111eeb22af647d78fb1061dfdecd1f53185d599 100644 (file)
@@ -36,7 +36,7 @@ public:
        void newline();
 
        /// Returns paragraph id and position from a row number
-       void getIdFromRow(int row, int & id, int & pos);
+       bool getIdFromRow(int row, int & id, int & pos) const;
 
        /// Appends another TexRow
        TexRow & operator+= (TexRow const &);
@@ -44,7 +44,6 @@ public:
        /// Returns the number of rows in this texrow
        int rows() const { return count; }
 
-private:
        /// Linked list of items
        class RowItem {
        public:
@@ -83,11 +82,14 @@ private:
                int rownumber_;
        };
        ///
-       unsigned int count;
-       ///
        typedef std::list<RowItem> RowList;
        ///
-       RowList rowlist;
+       void increasePos(int id, int pos) const;
+private:
+       ///
+       unsigned int count;
+       ///
+       mutable RowList rowlist;
        /// Last paragraph
        LyXParagraph * lastpar;
        /// Last position