|
LibreOffice Module sc (master) 1
|
Think of this as a mini-ScColumn like storage that only stores cell values in a column. More...
#include <cellvalues.hxx>
Public Member Functions | |
| CellValues () | |
| ~CellValues () | |
| void | transferFrom (ScColumn &rCol, SCROW nRow, size_t nLen) |
| Transfer values from specified column. More... | |
| void | copyTo (ScColumn &rCol, SCROW nRow) const |
| void | swapNonEmpty (ScColumn &rCol) |
| void | assign (const std::vector< double > &rVals) |
| void | assign (const std::vector< ScFormulaCell * > &rVals) |
| size_t | size () const |
| void | reset (size_t nSize) |
| void | setValue (size_t nRow, double fVal) |
| void | setValue (size_t nRow, const svl::SharedString &rStr) |
| void | setValue (size_t nRow, std::unique_ptr< EditTextObject > pEditText) |
| Takes ownership of pEditText. More... | |
| void | swap (CellValues &r) |
| std::vector< CellValueSpan > | getNonEmptySpans () const |
Private Member Functions | |
| CellValues (const CellValues &)=delete | |
| CellValues & | operator= (const CellValues &)=delete |
| void | copyCellsTo (ScColumn &rCol, SCROW nRow) const |
| void | copyCellTextAttrsTo (ScColumn &rCol, SCROW nRow) const |
Private Attributes | |
| std::unique_ptr< CellValuesImpl > | mpImpl |
Think of this as a mini-ScColumn like storage that only stores cell values in a column.
Definition at line 41 of file cellvalues.hxx.
|
privatedelete |
| sc::CellValues::CellValues | ( | ) |
Definition at line 46 of file cellvalues.cxx.
| sc::CellValues::~CellValues | ( | ) |
Definition at line 49 of file cellvalues.cxx.
| void sc::CellValues::assign | ( | const std::vector< double > & | rVals | ) |
Definition at line 92 of file cellvalues.cxx.
References mpImpl.
Referenced by sc::UndoSetCells::SetNewValues().
| void sc::CellValues::assign | ( | const std::vector< ScFormulaCell * > & | rVals | ) |
Definition at line 103 of file cellvalues.cxx.
References mpImpl.
Definition at line 178 of file cellvalues.cxx.
References sc::element_type_edittext, sc::element_type_formula, sc::element_type_numeric, sc::element_type_string, ScColumn::maCells, mpImpl, and p.
Referenced by copyTo().
Definition at line 243 of file cellvalues.cxx.
References sc::element_type_celltextattr, ScColumn::maCellTextAttrs, and mpImpl.
Referenced by copyTo().
Definition at line 62 of file cellvalues.cxx.
References copyCellsTo(), and copyCellTextAttrsTo().
Referenced by ScColumn::CopyCellValuesFrom().
| std::vector< CellValueSpan > sc::CellValues::getNonEmptySpans | ( | ) | const |
Definition at line 162 of file cellvalues.cxx.
References sc::element_type_empty, and mpImpl.
Referenced by sc::TableValues::getNonEmptySpans().
|
privatedelete |
| void sc::CellValues::reset | ( | size_t | nSize | ) |
Definition at line 128 of file cellvalues.cxx.
References mpImpl.
| void sc::CellValues::setValue | ( | size_t | nRow, |
| const svl::SharedString & | rStr | ||
| ) |
Definition at line 145 of file cellvalues.cxx.
References mpImpl.
| void sc::CellValues::setValue | ( | size_t | nRow, |
| double | fVal | ||
| ) |
Definition at line 139 of file cellvalues.cxx.
References mpImpl.
| void sc::CellValues::setValue | ( | size_t | nRow, |
| std::unique_ptr< EditTextObject > | pEditText | ||
| ) |
| size_t sc::CellValues::size | ( | ) | const |
Definition at line 122 of file cellvalues.cxx.
References mpImpl.
Referenced by ScColumn::CopyCellValuesFrom(), and sc::UndoSetCells::DoChange().
| void sc::CellValues::swap | ( | CellValues & | r | ) |
Definition at line 157 of file cellvalues.cxx.
References mpImpl.
Referenced by sc::TableValues::swap().
| void sc::CellValues::swapNonEmpty | ( | ScColumn & | rCol | ) |
Definition at line 68 of file cellvalues.cxx.
References sc::element_type_empty, ScColumn::maCells, ScColumn::maCellTextAttrs, and mpImpl.
Referenced by ScColumn::ConvertFormulaToValue(), and sc::TableValues::swapNonEmpty().
Transfer values from specified column.
The transferred segment in the source column becomes empty after this call.
| rCol | source column to transfer values from. |
| nRow | top row position in the source column. |
| nLen | length of the segment to transfer. |
Definition at line 53 of file cellvalues.cxx.
References ScColumn::maCells, ScColumn::maCellTextAttrs, and mpImpl.
Referenced by ScColumn::TransferCellValuesTo().
|
private |
Definition at line 43 of file cellvalues.hxx.
Referenced by assign(), copyCellsTo(), copyCellTextAttrsTo(), getNonEmptySpans(), reset(), setValue(), size(), swap(), swapNonEmpty(), and transferFrom().