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.
20 /// Represents the correspondence between paragraphs and the generated LaTeX file
24 TexRow() : count(0), lastid(-1), lastpos(-1) {}
26 TexRow & operator+= (TexRow const &);
31 /// Define what paragraph and position the next row will represent
32 void start(int id, 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 /// Returns the number of rows contained
50 int rows() const { return count; }
52 /// an individual id/pos <=> row mapping
55 RowItem(int id, int pos, int row)
56 : id_(id), pos_(pos), rownumber_(row)
64 /// set paragraph position
69 /// paragraph position
75 int rownumber() const {
84 typedef std::list<RowItem> RowList;
88 /// container of id/pos <=> row mapping