sc/inc/document.hxx | 5 ----- sc/source/core/data/document10.cxx | 20 -------------------- sc/source/ui/undo/undoblk.cxx | 2 +- 3 files changed, 1 insertion(+), 26 deletions(-)
New commits: commit 67cab8548356109d52317c797649ab31585db5ae Author: Kohei Yoshida <kohei.yosh...@collabora.com> Date: Tue Jan 28 12:12:31 2014 -0500 fdo#74014: Better fix, to re-use existing method. Change-Id: Ib62270f695d90190be03aed694a4d2cf395b35b5 diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 3b106d7..6a980ab 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1808,11 +1808,6 @@ public: */ void Broadcast( const ScHint& rHint ); - /** - * Cell broadcast in specified range. - */ - void BroadcastCells( const ScRange& rRange, sal_uLong nHint ); - /// only area, no cell broadcast void AreaBroadcast( const ScHint& rHint ); /// only areas in range, no cell broadcasts diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx index 805fb3c..ee3e35d 100644 --- a/sc/source/core/data/document10.cxx +++ b/sc/source/core/data/document10.cxx @@ -170,24 +170,4 @@ bool ScDocument::CopyOneCellFromClip( return true; } -void ScDocument::BroadcastCells( const ScRange& rRange, sal_uLong nHint ) -{ - ScHint aHint(nHint, ScAddress()); - ScAddress& rPos = aHint.GetAddress(); - - for (SCTAB nTab = rRange.aStart.Tab(); nTab <= rRange.aEnd.Tab(); ++nTab) - { - rPos.SetTab(nTab); - for (SCCOL nCol = rRange.aStart.Col(); nCol <= rRange.aEnd.Col(); ++nCol) - { - rPos.SetCol(nCol); - for (SCROW nRow = rRange.aStart.Row(); nRow <= rRange.aEnd.Row(); ++nRow) - { - rPos.SetRow(nRow); - Broadcast(aHint); - } - } - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx index 9d83309..ffbda7a 100644 --- a/sc/source/ui/undo/undoblk.cxx +++ b/sc/source/ui/undo/undoblk.cxx @@ -787,7 +787,7 @@ void ScUndoCut::DoChange( const sal_Bool bUndo ) if ( pChangeTrack ) pChangeTrack->Undo( nStartChangeAction, nEndChangeAction ); - pDoc->BroadcastCells(aCopyRange, SC_HINT_DATACHANGED); + BroadcastChanges(aCopyRange); } else // only for Redo { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits