X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftexrow.h;h=9111eeb22af647d78fb1061dfdecd1f53185d599;hb=c90c5e6386ce69c34c99b3594d6fa452e6a13161;hp=30dbbf26b9094080eb61079d512d060ad34f9d27;hpb=f4b8943ebb264c92b86a9756f9ae02b76552b347;p=lyx.git diff --git a/src/texrow.h b/src/texrow.h index 30dbbf26b9..9111eeb22a 100644 --- a/src/texrow.h +++ b/src/texrow.h @@ -36,7 +36,7 @@ public: void newline(); /// Returns paragraph id and position from a row number - void getIdFromRow(int row, int & id, int & pos) const; + 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,10 +82,13 @@ private: int rownumber_; }; /// - unsigned int count; - /// typedef std::list RowList; /// + void increasePos(int id, int pos) const; +private: + /// + unsigned int count; + /// mutable RowList rowlist; /// Last paragraph LyXParagraph * lastpar;