summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-06-26 11:45:28 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-06-27 15:49:06 -0400
commit604b9e646e365c246aa3a28d497c15248da23d7d (patch)
tree9bf510a0673c595f0ecb911a25c86cba634fc866 /sc/inc
parent9241d3b4a7156fa2e236d761aced07dcce8b3bbe (diff)
Implement a way to set an array of formula results to formula cell group.
Change-Id: Ifdea531e963339607a5066f81af32ffedfd408aa
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/column.hxx1
-rw-r--r--sc/inc/document.hxx10
-rw-r--r--sc/inc/table.hxx2
3 files changed, 13 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 28c732165e54..8a938e955636 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -454,6 +454,7 @@ public:
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 SetFormulaResults( SCROW nRow, const double* pResults, size_t nLen );
void SetNumberFormat( SCROW nRow, sal_uInt32 nNumberFormat );
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 25483df15bbe..fd8f61ffb52a 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -1710,6 +1710,16 @@ public:
void FillMatrix( ScMatrix& rMat, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ) const;
+ /**
+ * Set an array of numerical formula results to a group of contiguous
+ * formula cells.
+ *
+ * @param rTopPos position of the top formula cell of a group.
+ * @param pResults array of numeric results.
+ * @param nLen length of numeric results.
+ */
+ void SetFormulaResults( const ScAddress& rTopPos, const double* pResults, size_t nLen );
+
private:
ScDocument(const ScDocument& r); // disabled with no definition
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 496b858f6fda..bae3818a7462 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -855,6 +855,8 @@ public:
void InterpretDirtyCells( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 );
+ void SetFormulaResults( SCCOL nCol, SCROW nRow, const double* pResults, size_t nLen );
+
/** Replace behaves differently to the Search; adjust the rCol and rRow accordingly.
'Replace' replaces at the 'current' position, but in order to achieve