X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftexrow.h;h=9111eeb22af647d78fb1061dfdecd1f53185d599;hb=82ce6a82ef2c1f1e52616e603914d4184a30e507;hp=2013ff1a2ca44a7b09dffa5c7e48ef5a80bacfce;hpb=2889b5fd3e8987d0c265ff4726a7fb6c6cb6c034;p=lyx.git diff --git a/src/texrow.h b/src/texrow.h index 2013ff1a2c..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); + 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 RowList; /// - RowList rowlist; + void increasePos(int id, int pos) const; +private: + /// + unsigned int count; + /// + mutable RowList rowlist; /// Last paragraph LyXParagraph * lastpar; /// Last position