X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftexrow.h;h=c4db08d08eb193c7c11929887a60c9413b8ff118;hb=c544107e324090c6eafb4c56749da2624b9b1122;hp=2ee432f6af84aac3d18de945518016e00c4bf3d6;hpb=99d1627a471b92f403598d03dfc861ddc3c11be0;p=lyx.git diff --git a/src/texrow.h b/src/texrow.h index 2ee432f6af..c4db08d08e 100644 --- a/src/texrow.h +++ b/src/texrow.h @@ -13,19 +13,20 @@ #include -class Paragraph; /// Represents the correspondence between paragraphs and the generated LaTeX file class TexRow { public: /// - TexRow() : count(0), lastpar(0), lastpos(-1) {} + TexRow() : count(0), lastid(-1), lastpos(-1) {} + + TexRow & operator+= (TexRow const &); /// Clears structure void reset(); /// Define what paragraph and position the next row will represent - void start(Paragraph * par, int pos); + void start(int id, int pos); /// Insert node when line is completed void newline(); @@ -42,8 +43,6 @@ public: */ bool getIdFromRow(int row, int & id, int & pos) const; - TexRow & operator+= (TexRow const &); - /// Returns the number of rows contained int rows() const { return count; } @@ -80,17 +79,13 @@ public: }; /// typedef std::list RowList; - /// increment position of all other RowItems - /// with same par id, to avoid placing error insets - /// at the same position - void increasePos(int id, int pos); private: /// number of lines unsigned int count; /// container of id/pos <=> row mapping RowList rowlist; /// Last paragraph - Paragraph * lastpar; + int lastid; /// Last position int lastpos; };