From ab24a2c25900948bb71acbedbdecd84bda3217f7 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 23 Jul 2013 16:02:37 -0400 Subject: 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 --- sc/inc/table.hxx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'sc/inc/table.hxx') 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); -- cgit v1.2.3