diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-29 14:14:43 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-30 13:10:41 -0400 |
commit | 20d4db0fe3444e76b23ecdb058554c95eb311548 (patch) | |
tree | 2e22cc4929c685260380c1d5816f33f211f1ba11 /sc/inc | |
parent | 7fb73a8475623de9c559f549fb8127993b62ba06 (diff) |
Add method to allow fetching of double array, and store it in token.
Change-Id: If094dbf139e18ad23c73d6cf5a78ac4844132b14
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/column.hxx | 9 | ||||
-rw-r--r-- | sc/inc/document.hxx | 2 | ||||
-rw-r--r-- | sc/inc/table.hxx | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 157bc173e98f..6b3202ae6f1c 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -106,6 +106,11 @@ struct ColDoubleEntry { SCROW mnStart; std::vector<double> maData; + + struct LessByPtr : std::binary_function<ColDoubleEntry*, ColDoubleEntry*, bool> + { + bool operator() (const ColDoubleEntry* p1, const ColDoubleEntry* p2) const; + }; }; class ScColumn @@ -155,6 +160,9 @@ friend class ScDocumentImport; static void SwapScriptTypes( ScriptType& rSrc, SCROW nSrcRow, ScriptType& rDest, SCROW nDestRow ); + std::vector<ColEntry>::iterator Search( SCROW nRow ); + std::vector<ColEntry>::const_iterator Search( SCROW nRow ) const; + public: ScColumn(); ~ScColumn(); @@ -452,6 +460,7 @@ public: ScFormulaVectorState GetFormulaVectorState( SCROW nRow ) const; formula::FormulaTokenRef ResolveStaticReference( SCROW nRow ); bool ResolveStaticReference( ScMatrix& rMat, SCCOL nMatCol, SCROW nRow1, SCROW nRow2 ); + const double* FetchDoubleArray( SCROW nRow1, SCROW nRow2 ) const; ScRefCellValue GetRefCellValue( SCROW ); diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index cdb80e041e95..876c9d764eb0 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1944,6 +1944,8 @@ public: formula::FormulaTokenRef ResolveStaticReference( const ScAddress& rPos ); formula::FormulaTokenRef ResolveStaticReference( const ScRange& rRange ); + const double* FetchDoubleArray( const ScAddress& rPos, SCROW nLength ) const; + private: // CLOOK-Impl-methods /** diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index c04b902135d1..7c45a578274c 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -822,6 +822,7 @@ public: ScFormulaVectorState GetFormulaVectorState( SCCOL nCol, SCROW nRow ) const; formula::FormulaTokenRef ResolveStaticReference( SCCOL nCol, SCROW nRow ); formula::FormulaTokenRef ResolveStaticReference( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); + const double* FetchDoubleArray( SCCOL nCol, SCROW nRow1, SCROW nRow2 ) const; ScRefCellValue GetRefCellValue( SCCOL nCol, SCROW nRow ); |