diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-23 16:02:37 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-24 23:29:39 -0400 |
commit | ab24a2c25900948bb71acbedbdecd84bda3217f7 (patch) | |
tree | 229230be711f168dae64b984f915dab4c903cb66 /sc/inc/table.hxx | |
parent | a6b0568eca2b025f556fa4d0b702b67a01262618 (diff) |
Broadcast on formula cells containing COLUMN functions on column insertion.
To ensure that the change gets propagated properly. This fixes
testFuncCOLUMN() cppunit test.
Change-Id: Ia1ffc2880b7dae530ceb11c617c3963f7bfaeb00
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r-- | sc/inc/table.hxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 0e4305ad3424..00cc7e52e4df 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -862,6 +862,24 @@ public: void SetFormulaResults( SCCOL nCol, SCROW nRow, const double* pResults, size_t nLen ); + /** + * Have formula cells with NeedsListening() == true start listening to the + * document. + */ + void StartNeededListeners(); + + /** + * Mark dirty those formula cells that has named ranges with relative + * references. + */ + void SetRelNameDirty(); + + /** + * Broadcast dirty formula cells that contain functions such as CELL(), + * COLUMN() or ROW() which may change its value on move. + */ + void BroadcastRecalcOnRefMove(); + #if DEBUG_COLUMN_STORAGE void DumpFormulaGroups( SCCOL nCol ) const; #endif @@ -968,8 +986,6 @@ private: void StartListening( sc::StartListeningContext& rCxt, SCCOL nCol, SCROW nRow, SvtListener& rListener ); void EndListening( sc::EndListeningContext& rCxt, SCCOL nCol, SCROW nRow, SvtListener& rListener ); void StartAllListeners(); - void StartNeededListeners(); // only for cells where NeedsListening()==TRUE - void SetRelNameDirty(); void SetLoadingMedium(bool bLoading); |