diff options
Diffstat (limited to 'sc/source/core/data/table3.cxx')
-rw-r--r-- | sc/source/core/data/table3.cxx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index b7661fe40afa..f7c61184fecd 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -1804,36 +1804,6 @@ bool ScTable::DoSubTotals( ScSubTotalParam& rParam ) return bSpaceLeft; } -void ScTable::MarkSubTotalCells( - sc::ColumnSpanSet& rSet, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bVal ) const -{ - if (!ValidCol(nCol1) || !ValidCol(nCol2)) - return; - - // Pick up all subtotal formula cells. - for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol) - aCol[nCol].MarkSubTotalCells(rSet, nRow1, nRow2, bVal); - - // Pick up all filtered rows. - ScFlatBoolRowSegments::RangeData aFilteredSpan; - SCROW nRow = nRow1; - while (nRow <= nRow2) - { - if (!mpFilteredRows->getRangeData(nRow, aFilteredSpan)) - // Failed for whatever reason. - return; - - if (aFilteredSpan.mbValue) - { - // Filtered span found. - for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol) - rSet.set(nTab, nCol, nRow, aFilteredSpan.mnRow2, bVal); - } - - nRow = aFilteredSpan.mnRow2 + 1; - } -} - namespace { class QueryEvaluator |