// Set the numeric value.
CellStoreType& rCells = pTab->aCol[rPos.Col()].maCells;
pBlockPos->miCellPos = rCells.set(pBlockPos->miCellPos, rPos.Row(), fVal);
// Be sure to set the corresponding text attribute to the default value.
CellTextAttrStoreType& rAttrs = pTab->aCol[rPos.Col()].maCellTextAttrs;
pBlockPos->miCellTextAttrPos = rAttrs.set(pBlockPos->miCellTextAttrPos, rPos.Row(), CellTextAttr());
}
svl::SharedString aSS = mpImpl->mrDoc.GetSharedStringPool().intern(rStr); if (!aSS.getData()) return;
// Set the string.
CellStoreType& rCells = pTab->aCol[rPos.Col()].maCells;
pBlockPos->miCellPos = rCells.set(pBlockPos->miCellPos, rPos.Row(), aSS);
// Be sure to set the corresponding text attribute to the default value.
CellTextAttrStoreType& rAttrs = pTab->aCol[rPos.Col()].maCellTextAttrs;
pBlockPos->miCellTextAttrPos = rAttrs.set(pBlockPos->miCellTextAttrPos, rPos.Row(), CellTextAttr());
}
CellStoreType& rCells = pTab->aCol[nCol].maCells;
rCells.erase(nTopRow, nTopRow); // Erase the top, and shift the rest up.
pBlockPos->miCellPos = rCells.insert_empty(nLastRow, 1);
// Do the same for the text attribute storage.
CellTextAttrStoreType& rAttrs = pTab->aCol[nCol].maCellTextAttrs;
rAttrs.erase(nTopRow, nTopRow);
pBlockPos->miCellTextAttrPos = rAttrs.insert_empty(nLastRow, 1);
}
}
CellStoreType& rCells = pTab->aCol[nCol].maCells;
rCells.erase(nLastRow, nLastRow); // Erase the bottom.
pBlockPos->miCellPos = rCells.insert_empty(nTopRow, 1); // insert at the top and shift everything down.
// Do the same for the text attribute storage.
CellTextAttrStoreType& rAttrs = pTab->aCol[nCol].maCellTextAttrs;
rAttrs.erase(nLastRow, nLastRow);
pBlockPos->miCellTextAttrPos = rAttrs.insert_empty(nTopRow, 1);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.