}
for (row_type row = 1; row < dat.size(); ++row)
- appendRow(0);
+ addRow(0);
for (col_type col = 1; col < dat[0].size(); ++col)
addCol(0);
for (row_type row = 0; row < dat.size(); ++row)
}
-void InsetMathGrid::appendRow(row_type row)
+void InsetMathGrid::addRow(row_type row)
{
rowinfo_.insert(rowinfo_.begin() + row + 1, RowInfo());
cells_.insert
void InsetMathGrid::copyRow(row_type row)
{
- appendRow(row);
+ addRow(row);
for (col_type col = 0; col < ncols(); ++col)
cells_[(row + 1) * ncols() + col] = cells_[row * ncols() + col];
}
case LFUN_BREAK_LINE: {
cur.recordUndoInset();
row_type const r = cur.row();
- appendRow(r);
+ addRow(r);
// split line
for (col_type c = col(cur.idx()) + 1; c < ncols(); ++c)
halign('c', cur.col());
else if (s == "append-row")
for (int i = 0, n = extractInt(is); i < n; ++i)
- appendRow(cur.row());
+ addRow(cur.row());
else if (s == "delete-row") {
cur.clearSelection(); // bug 4323
for (int i = 0, n = extractInt(is); i < n; ++i) {
void idxGlue(idx_type idx);
/// add a row, one row down
- virtual void appendRow(row_type r);
+ virtual void addRow(row_type r);
/// delete a row
virtual void delRow(row_type r);
/// copy a row
return;
nonum_.insert(nonum_.begin() + row + 1, !numberedType());
label_.insert(label_.begin() + row + 1, docstring());
- InsetMathGrid::appendRow(row);
+ InsetMathGrid::addRow(row);
}
MathData ar = cur.cell();
lyxerr << "use cell: " << ar << endl;
// FIXME: temporarily disabled
- appendRow(cur.row());
+ addRow(cur.row());
++cur.idx();
++cur.idx();
cur.cell() = eq;
++cellrow;
if (cellrow == grid.nrows()) {
//lyxerr << "adding row " << cellrow << endl;
- grid.appendRow(cellrow - 1);
+ grid.addRow(cellrow - 1);
if (cellrow == grid.nrows()) {
// We can't add a row to this grid, so let's
// append the content of this cell to the previous