summaryrefslogtreecommitdiff
path: root/sc/inc/markdata.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-14 10:55:02 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-14 10:58:25 -0500
commitdf9243626b39742a9a148bea95796f8824fee68a (patch)
treed379108efde9e05bbd00bd953a02d040add64ef4 /sc/inc/markdata.hxx
parentbbdb7b43e639b0dd27377d104c59fea3f8481b2a (diff)
fdo#73606: Avoid excessive and unnecessary heap allocation of array objects.
This is a leftover from the 1 million row conversion we did years ago. Change-Id: Ib50819ed51c7017bcc559bfc8b6062ff46615d09
Diffstat (limited to 'sc/inc/markdata.hxx')
-rw-r--r--sc/inc/markdata.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/inc/markdata.hxx b/sc/inc/markdata.hxx
index 75937edde3e3..943419d62308 100644
--- a/sc/inc/markdata.hxx
+++ b/sc/inc/markdata.hxx
@@ -26,6 +26,12 @@
#include <set>
+namespace sc {
+
+struct RowSpan;
+
+}
+
class ScMarkArray;
class ScRangeList;
@@ -103,6 +109,8 @@ public:
SCCOLROW GetMarkColumnRanges( SCCOLROW* pRanges );
SCCOLROW GetMarkRowRanges( SCCOLROW* pRanges );
+ void GetMarkedRowSpans( SCTAB nTab, std::vector<sc::RowSpan>& rSpans );
+
bool IsColumnMarked( SCCOL nCol ) const;
bool IsRowMarked( SCROW nRow ) const;
bool IsAllMarked( const ScRange& rRange ) const; // Multi