diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-29 23:35:34 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-30 11:57:00 -0500 |
commit | a0bd814fb5c2ed1d8a1583eb59c783290c7c3dc9 (patch) | |
tree | de2c5088bfedd77def56342bb8de53053fba9e78 /sc/inc/column.hxx | |
parent | a28dc1dbedb32d18f8be4ef7eebff2281454e12b (diff) |
Speed up filling of random number generation over entire column.
Because nobody wants to wait forever...
Change-Id: Ie52bff944893b7e3fe9e7908be19d27c692fc1ea
Diffstat (limited to 'sc/inc/column.hxx')
-rw-r--r-- | sc/inc/column.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 1ac1e3fc4da3..69ba1afa2de0 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -56,6 +56,7 @@ struct RefUpdateMoveTabContext; class EditTextIterator; struct NoteEntry; class DocumentStreamAccess; +class CellValues; } @@ -143,6 +144,7 @@ friend class sc::DocumentStreamAccess; friend class sc::SingleColumnSpanSet; friend class sc::ColumnSpanSet; friend class sc::EditTextIterator; +friend class sc::CellValues; ScColumn(const ScColumn&); // disabled ScColumn& operator= (const ScColumn&); // disabled @@ -294,6 +296,7 @@ public: void SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const OUString& rStr, bool bBroadcast = true ); void SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true ); void SetValue( SCROW nRow, double fVal ); + void SetValues( SCROW nRow, const std::vector<double>& rVals ); void SetValue( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, double fVal, bool bBroadcast = true ); void SetError( SCROW nRow, const sal_uInt16 nError); @@ -539,6 +542,9 @@ public: */ void RegroupFormulaCells(); + void TransferCellValuesTo( SCROW nRow, size_t nLen, sc::CellValues& rDest ); + void CopyCellValuesFrom( SCROW nRow, const sc::CellValues& rSrc ); + #if DEBUG_COLUMN_STORAGE void DumpFormulaGroups() const; #endif |