*
* LyX, The Document Processor
*
- * Copyright (C) 1995 Matthias Ettrich
- * Copyright (C) 1995-1999 The LyX Team.
+ * Copyright 1995 Matthias Ettrich
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
void TexRow::newline()
{
RowItem tmp;
- tmp.pos = lastpos;
+ tmp.pos(lastpos);
if (lastpar)
- tmp.id = lastpar->id();
+ tmp.id(lastpar->id());
else
- tmp.id = -1;
- tmp.rownumber = ++count;
+ tmp.id(-1);
+ tmp.rownumber(++count);
rowlist.push_back(tmp);
}
{
RowList::const_iterator cit = rowlist.begin();
for (; cit != rowlist.end(); ++cit) {
- if ((*cit).rownumber == row) break;
+ if ((*cit).rownumber() == row) break;
}
if (cit != rowlist.end()) {
RowList::iterator kit = rowlist.begin();
// same pos.
for(; kit != rowlist.end(); ++kit) {
if (&(*kit) != &(*cit)
- && (*kit).id == (*cit).id
- && (*kit).pos >= (*cit).pos)
- (*kit).pos++;
+ && (*kit).id() == (*cit).id()
+ && (*kit).pos() >= (*cit).pos())
+ (*kit).pos((*kit).pos() + 1);
}
- id = (*cit).id;
- pos = (*cit).pos;
+ id = (*cit).id();
+ pos = (*cit).pos();
} else {
id = -1;
pos = 0;