2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 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(LyXParagraph * par, int pos);
35 /// Insert node when line is completed
38 /// Returns paragraph id and position from a row number
39 void getIdFromRow(int row, int & id, int & pos);
41 /// Appends another TexRow
42 TexRow & operator+= (TexRow const &);
44 /// Returns the number of rows in this texrow
45 int rows() const { return count; }
48 /// Linked list of items
52 RowItem() : id_(-1), pos_(-1), rownumber_(0) {}
70 void rownumber(int r) {
74 int rownumber() const {
88 typedef std::list<RowItem> RowList;
92 LyXParagraph * lastpar;