3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Matthias Ettrich
7 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
25 /// function object returning true when row number is found
26 class same_rownumber {
28 same_rownumber(int row) : row_(row) {}
29 bool operator()(TexRow::RowList::value_type const & vt) const {
30 return vt.rownumber() == row_;
49 void TexRow::start(int id, int pos)
56 void TexRow::newline()
58 int const id = lastid;
59 RowList::value_type tmp(id, lastpos, ++count);
60 rowlist.push_back(tmp);
64 bool TexRow::getIdFromRow(int row, int & id, int & pos) const
66 RowList::const_iterator cit =
67 find_if(rowlist.begin(), rowlist.end(),
70 if (cit != rowlist.end()) {
81 TexRow & TexRow::operator+=(TexRow const & tr)
83 rowlist.insert(rowlist.end(), tr.rowlist.begin(), tr.rowlist.end());