diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-25 00:03:11 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-27 15:47:53 -0400 |
commit | a8d277d0d90116d6f8788beb64d9bb563f159464 (patch) | |
tree | c6a9af33b96ac442a16f66a58b9ec4c030aff052 /sc/inc | |
parent | 884528f06abcec239a67e064092003f343c966c2 (diff) |
Use double and string arrays directly when creating matrix from cells.
Change-Id: Ib251075418baeb7d884696c54504b8851bc9f65e
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/column.hxx | 1 | ||||
-rw-r--r-- | sc/inc/document.hxx | 2 | ||||
-rw-r--r-- | sc/inc/table.hxx | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 23e3a1608c5f..858aef4aef35 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -449,6 +449,7 @@ public: ScFormulaVectorState GetFormulaVectorState( SCROW nRow ) const; formula::FormulaTokenRef ResolveStaticReference( SCROW nRow ); bool ResolveStaticReference( ScMatrix& rMat, SCCOL nMatCol, SCROW nRow1, SCROW nRow2 ); + void FillMatrix( ScMatrix& rMat, size_t nMatCol, SCROW nRow1, SCROW nRow2 ) const; const double* FetchDoubleArray( sc::FormulaGroupContext& rCxt, SCROW nRow1, SCROW nRow2 ) const; void SetNumberFormat( SCROW nRow, sal_uInt32 nNumberFormat ); diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 377c80eacba4..25483df15bbe 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1708,6 +1708,8 @@ public: */ bool IsEmptyData( SCTAB nTab, SCCOL nCol ) const; + void FillMatrix( ScMatrix& rMat, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ) const; + private: ScDocument(const ScDocument& r); // disabled with no definition diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 15f04e50c848..64bd829d8ab0 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -851,6 +851,8 @@ public: void DeleteBroadcasters( sc::ColumnBlockPosition& rBlockPos, SCCOL nCol, SCROW nRow1, SCROW nRow2 ); bool HasBroadcaster( SCCOL nCol ) const; + void FillMatrix( ScMatrix& rMat, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ) const; + /** Replace behaves differently to the Search; adjust the rCol and rRow accordingly. 'Replace' replaces at the 'current' position, but in order to achieve |