4 * Copyright 1995-2002 the LyX Team
5 * Read the file COPYING
7 * \author Matthias Ettrich
22 /// Represents the correspondence between paragraphs and the generated LaTeX file
26 TexRow() : count(0), lastpar(0), lastpos(-1) {}
31 /// Define what paragraph and position the next row will represent
32 void start(Paragraph * par, int pos);
34 /// Insert node when line is completed
38 * getIdFromRow - find pid and position for a given row
39 * @param row row number to find
40 * @param id set to id if found
41 * @param pos set to paragraph position if found
42 * @return true if found, false otherwise
44 * If the row could not be found, pos is set to zero and
47 bool getIdFromRow(int row, int & id, int & pos) const;
49 TexRow & operator+= (TexRow const &);
51 /// Returns the number of rows contained
52 int rows() const { return count; }
54 /// an individual id/pos <=> row mapping
57 RowItem(int id, int pos, int row)
58 : id_(id), pos_(pos), rownumber_(row)
66 /// set paragraph position
71 /// paragraph position
77 int rownumber() const {
86 typedef std::list<RowItem> RowList;
87 /// increment position of all other RowItems
88 /// with same par id, to avoid placing error insets
89 /// at the same position
90 void increasePos(int id, int pos);
94 /// container of id/pos <=> row mapping