4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Matthias Ettrich
8 * \author Lars Gullik Bjønnes
11 * Full author contact details are available in file CREDITS.
23 /// Represents the correspondence between paragraphs and the generated LaTeX file
27 TexRow() : count(0), lastid(-1), lastpos(-1) {}
29 TexRow & operator+= (TexRow const &);
34 /// Define what paragraph and position the next row will represent
35 void start(int id, int pos);
37 /// Insert node when line is completed
41 * getIdFromRow - find pid and position for a given row
42 * @param row row number to find
43 * @param id set to id if found
44 * @param pos set to paragraph position if found
45 * @return true if found, false otherwise
47 * If the row could not be found, pos is set to zero and
50 bool getIdFromRow(int row, int & id, int & pos) const;
52 /// Returns the number of rows contained
53 int rows() const { return count; }
55 /// an individual id/pos <=> row mapping
58 RowItem(int id, int pos, int row)
59 : id_(id), pos_(pos), rownumber_(row)
67 /// set paragraph position
72 /// paragraph position
78 int rownumber() const {
88 typedef std::list<RowItem> RowList;
92 /// container of id/pos <=> row mapping