summaryrefslogtreecommitdiff
path: root/sc/inc/column.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/column.hxx')
-rw-r--r--sc/inc/column.hxx30
1 files changed, 1 insertions, 29 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 22e3ad1e284c..0c6be7ea0c6d 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -59,11 +59,9 @@ struct NoteEntry;
class DocumentStreamAccess;
class CellValues;
class TableValues;
-struct RowSpan;
class RowHeightContext;
class CompileFormulaContext;
struct SetFormulaDirtyContext;
-enum class MatrixEdge;
class ColumnIterator;
class Sparkline;
@@ -81,8 +79,6 @@ class SvxBoxItem;
class ScDocument;
class ScEditDataArray;
class ScFormulaCell;
-class ScMarkData;
-class ScPatternAttr;
class ScStyleSheet;
class SvtBroadcaster;
class ScTypedStrData;
@@ -93,7 +89,6 @@ struct ScSetStringParam;
struct ScColWidthParam;
struct ScRefCellValue;
struct ScCellValue;
-class ScHint;
enum class ScMF;
struct ScFilterEntries;
struct ScInterpreterContext;
@@ -175,11 +170,6 @@ public:
bool TestInsertRow( SCSIZE nSize ) const;
void InsertRow( SCROW nStartRow, SCSIZE nSize );
void DeleteRow( SCROW nStartRow, SCSIZE nSize );
-
- // Applies a function to the selected ranges.
- // The function looks like
- // ApplyDataFunc(ScColumnData& applyTo, SCROW nTop, SCROW nBottom)
- template <typename ApplyDataFunc> void Apply(const ScMarkData&, SCCOL, ApplyDataFunc);
};
// Use protected inheritance to prevent publishing some internal ScColumnData
@@ -241,7 +231,7 @@ friend class sc::CellStoreEvent;
SCROW nRow, SCTAB nTab, const OUString& rString, formula::FormulaGrammar::AddressConvention eConv,
const ScSetStringParam* pParam );
- void duplicateSparkline(sc::CopyFromClipContext& rContext, sc::ColumnBlockPosition* pBlockPos,
+ void duplicateSparkline(const sc::CopyFromClipContext& rContext, sc::ColumnBlockPosition* pBlockPos,
size_t nColOffset, size_t nDestSize, ScAddress aDestPosition);
public:
@@ -1070,22 +1060,4 @@ inline void ScColumnData::DeleteRow(SCROW nStartRow, SCSIZE nSize)
pAttrArray->DeleteRow( nStartRow, nSize );
}
-template <typename ApplyDataFunc>
-void ScColumnData::Apply(const ScMarkData& rMark, SCCOL nCol, ApplyDataFunc apply)
-{
- if (rMark.IsMultiMarked())
- {
- ScMultiSelIter aMultiIter(rMark.GetMultiSelData(), nCol);
- SCROW nTop, nBottom;
- while (aMultiIter.Next(nTop, nBottom))
- apply(*this, nTop, nBottom);
- }
- else if (rMark.IsMarked())
- {
- const ScRange& aRange = rMark.GetMarkArea();
- if (aRange.aStart.Col() <= nCol && nCol <= aRange.aEnd.Col())
- apply(*this, aRange.aStart.Row(), aRange.aEnd.Row());
- }
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */