diff options
author | Eike Rathke <erack@redhat.com> | 2016-04-19 11:03:15 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-04-19 11:08:01 +0200 |
commit | 35abb3aacb4072171e8c580e1306e3c44e368646 (patch) | |
tree | 9ab5451d329633596b8bf10df4644d74eb2504b0 /sc/inc/document.hxx | |
parent | 97dee1df42dc2933d1350eb1e67361674614417a (diff) |
call StartNeededListeners() only on affected columns, tdf#99322 follow-up
Iterating over the entire document is an unnecessary performancce
penalty if the set of affected columns is already known.
Change-Id: I84598066f878ca4615d6a5e1d6c70ebaa686e446
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r-- | sc/inc/document.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 9a52748557db..203996fabfd7 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -79,6 +79,7 @@ class RefMovedHint; struct SortUndoParam; struct ReorderParam; class FormulaGroupAreaListener; +class ColumnSet; } @@ -1980,6 +1981,7 @@ public: void SetHardRecalcState( HardRecalcState eVal ) { eHardRecalcState = eVal; } void StartAllListeners(); void StartNeededListeners(); + void StartNeededListeners( std::shared_ptr<const sc::ColumnSet>& rpColSet ); void StartAllListeners( const ScRange& rRange ); void SetForcedFormulas( bool bVal ) { bHasForcedFormulas = bVal; } |