Kaydet (Commit) 12a0bf11 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

We don't need these yet.

Change-Id: Iff875a690f319eb92ccfb8010853714ac60dcc9a
üst d5452cef
...@@ -1818,9 +1818,6 @@ public: ...@@ -1818,9 +1818,6 @@ public:
*/ */
void Broadcast( const ScHint& rHint ); void Broadcast( const ScHint& rHint );
void BroadcastCells( const ScRange& rRange, sal_uLong nHint );
void BroadcastCells( const ScRangeList& rRanges, sal_uLong nHint );
/// only area, no cell broadcast /// only area, no cell broadcast
void AreaBroadcast( const ScHint& rHint ); void AreaBroadcast( const ScHint& rHint );
/// only areas in range, no cell broadcasts /// only areas in range, no cell broadcasts
......
...@@ -104,34 +104,6 @@ void ScDocument::Broadcast( const ScHint& rHint ) ...@@ -104,34 +104,6 @@ void ScDocument::Broadcast( const ScHint& rHint )
} }
} }
void ScDocument::BroadcastCells( const ScRange& rRange, sal_uLong nHint )
{
// TODO : For now, this simply makes multiple Broadcast() calls one cell
// at a time. In the future, we should add a more efficient way to
// make a range of cell broadcasts.
ScHint aHint(nHint, rRange.aStart);
for (SCCOL nCol = rRange.aStart.Col(); nCol <= rRange.aEnd.Col(); ++nCol)
{
for (SCROW nRow = rRange.aStart.Row(); nRow <= rRange.aEnd.Row(); ++nRow)
{
aHint.GetAddress().SetCol(nCol);
aHint.GetAddress().SetRow(nRow);
Broadcast(aHint);
}
}
}
void ScDocument::BroadcastCells( const ScRangeList& rRanges, sal_uLong nHint )
{
for (size_t i = 0, n = rRanges.size(); i < n; ++i)
{
const ScRange* p = rRanges[i];
BroadcastCells(*p, nHint);
}
}
void ScDocument::AreaBroadcast( const ScHint& rHint ) void ScDocument::AreaBroadcast( const ScHint& rHint )
{ {
if ( !pBASM ) if ( !pBASM )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment