4 * Copyright 1995-2002 the LyX Team
5 * Read the file COPYING
7 * \author Matthias Ettrich
18 /// Represents the correspondence between paragraphs and the generated LaTeX file
22 TexRow() : count(0), lastpar(0), lastpos(-1) {}
27 /// Define what paragraph and position the next row will represent
28 void start(Paragraph * par, int pos);
30 /// Insert node when line is completed
34 * getIdFromRow - find pid and position for a given row
35 * @param row row number to find
36 * @param id set to id if found
37 * @param pos set to paragraph position if found
38 * @return true if found, false otherwise
40 * If the row could not be found, pos is set to zero and
43 bool getIdFromRow(int row, int & id, int & pos) const;
45 TexRow & operator+= (TexRow const &);
47 /// Returns the number of rows contained
48 int rows() const { return count; }
50 /// an individual id/pos <=> row mapping
53 RowItem(int id, int pos, int row)
54 : id_(id), pos_(pos), rownumber_(row)
62 /// set paragraph position
67 /// paragraph position
73 int rownumber() const {
82 typedef std::list<RowItem> RowList;
83 /// increment position of all other RowItems
84 /// with same par id, to avoid placing error insets
85 /// at the same position
86 void increasePos(int id, int pos);
90 /// container of id/pos <=> row mapping