void TXsheet::insertCells(int row, int col, int rowCount) { TXshColumnP column = m_imp->m_columnSet.getColumn(col); if (!column || column->isLocked()) return; TXshCellColumn *xshColumn = column->getCellColumn(); if (!xshColumn) return; xshColumn->insertEmptyCells(row, rowCount); // aggiorno il frame count int fc = xshColumn->getMaxFrame() + 1; if (fc > m_imp->m_frameCount) m_imp->m_frameCount = fc; }
void TXsheet::removeCells(int row, int col, int rowCount) { TXshColumnP column = m_imp->m_columnSet.getColumn(col); if (!column || column->isLocked()) return; TXshCellColumn *xshCellColumn = column->getCellColumn(); if (!xshCellColumn) return; int oldColRowCount = xshCellColumn->getMaxFrame() + 1; xshCellColumn->removeCells(row, rowCount); // aggiornamento framecount if (oldColRowCount == m_imp->m_frameCount) updateFrameCount(); TNotifier::instance()->notify(TXsheetChange()); }