summaryrefslogtreecommitdiffstats
path: root/sc/inc/rangelst.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-31 03:59:51 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-31 15:50:14 +0200
commit7222a571d0d458810c1b23871f8b91491db4462d (patch)
treed813be741f320ac76aef8f0ee37ca950946f92eb /sc/inc/rangelst.hxx
parentalso handle the cond format code for xlsb the new way, fdo#53424 (diff)
downloadcore-7222a571d0d458810c1b23871f8b91491db4462d.tar.gz
core-7222a571d0d458810c1b23871f8b91491db4462d.zip
add ScRangeList::DeleteArea
DeleteArea can handle ranges that are deleting parts of an existing range Currently this code only supports a 2D deletion Change-Id: I1c514437fdd09fea99f5c4dcf97b8375dcc53b40
Diffstat (limited to 'sc/inc/rangelst.hxx')
-rw-r--r--sc/inc/rangelst.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/inc/rangelst.hxx b/sc/inc/rangelst.hxx
index 0c51506ab2ce..74bb7be1d99a 100644
--- a/sc/inc/rangelst.hxx
+++ b/sc/inc/rangelst.hxx
@@ -68,6 +68,12 @@ public:
SCsTAB nDz
);
+ /** For now this method assumes that nTab1 == nTab2
+ * The algorithm will be much more complicated if nTab1 != nTab2
+ */
+ void DeleteArea( SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2,
+ SCROW nRow2, SCTAB nTab2 );
+
const ScRange* Find( const ScAddress& ) const;
ScRange* Find( const ScAddress& );
bool operator==( const ScRangeList& ) const;
@@ -93,6 +99,8 @@ public:
private:
::std::vector<ScRange*> maRanges;
+ typedef std::vector<ScRange*>::iterator iterator;
+ typedef std::vector<ScRange*>::const_iterator const_iterator;
};
SV_DECL_IMPL_REF( ScRangeList );