2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team
10 * ====================================================== */
23 // Controls correspondance between paragraphs and the generated LaTeX file
27 TexRow() : count(0), lastpar(0), lastpos(-1) {}
32 /// Define what paragraph and position the next row will represent
33 void start(Paragraph * par, int pos);
35 /// Insert node when line is completed
38 /// Returns paragraph id and position from a row number
39 bool getIdFromRow(int row, int & id, int & pos) const;
41 /// Appends another TexRow
42 TexRow & operator+= (TexRow const &);
44 /// Returns the number of rows in this texrow
45 int rows() const { return count; }
47 /// Linked list of items
51 RowItem() : id_(-1), pos_(-1), rownumber_(0) {}
69 void rownumber(int r) {
73 int rownumber() const {
85 typedef std::list<RowItem> RowList;
87 void increasePos(int id, int pos) const;
92 mutable RowList rowlist;