diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-15 14:55:02 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-24 23:29:20 -0400 |
commit | 9e0040c7b7dc8d663d9fbdc2f451d6cedd04fb52 (patch) | |
tree | eb3d854a487274f23f7ea496c946c041fad2fa6e /sc/source/core/data/column3.cxx | |
parent | 0b0384d609a078f4337c8b4c89532e620220126c (diff) |
Try to consolidate broadcast calls originating from column or table.
Change-Id: Ia13f81ab9a2d27e03ced95e18e9f5e6af939f9a0
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r-- | sc/source/core/data/column3.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 5288cc5da687..83592fe1900d 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -67,6 +67,12 @@ using ::com::sun::star::i18n::LocaleDataItem; extern const ScFormulaCell* pLastFormulaTreeTop; // in cellform.cxx using namespace formula; +void ScColumn::Broadcast( SCROW nRow ) +{ + ScHint aHint(SC_HINT_DATACHANGED, ScAddress(nCol, nRow, nTab)); + pDocument->Broadcast(aHint); +} + void ScColumn::BroadcastCells( const std::vector<SCROW>& rRows ) { if (rRows.empty()) @@ -113,9 +119,7 @@ void ScColumn::Delete( SCROW nRow ) maCells.set_empty(nRow, nRow); maCellTextAttrs.set_empty(nRow, nRow); - pDocument->Broadcast( - ScHint(SC_HINT_DATACHANGED, ScAddress(nCol, nRow, nTab))); - + Broadcast(nRow); CellStorageModified(); } @@ -411,8 +415,7 @@ void ScColumn::BroadcastNewCell( SCROW nRow ) if (pDocument->IsClipOrUndo() || pDocument->IsInsertingFromOtherDoc() || pDocument->IsCalcingAfterLoad()) return; - ScHint aHint(SC_HINT_DATACHANGED, ScAddress(nCol, nRow, nTab)); - pDocument->Broadcast(aHint); + Broadcast(nRow); } bool ScColumn::UpdateScriptType( sc::CellTextAttr& rAttr, SCROW nRow ) |