summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-28 12:12:31 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-28 12:13:52 -0500
commit67cab8548356109d52317c797649ab31585db5ae (patch)
tree7d3b2bcd44d8394e4a1548b3fd13395d4fd930b1
parentd7a10b9c999fe3df7095f1f1ccc2acc185077927 (diff)
fdo#74014: Better fix, to re-use existing method.
Change-Id: Ib62270f695d90190be03aed694a4d2cf395b35b5
-rw-r--r--sc/inc/document.hxx5
-rw-r--r--sc/source/core/data/document10.cxx20
-rw-r--r--sc/source/ui/undo/undoblk.cxx2
3 files changed, 1 insertions, 26 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 3b106d75a1b7..6a980ab298f2 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 805fb3cc826e..ee3e35d543a6 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 9d8330901356..ffbda7a84f57 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
{