summaryrefslogtreecommitdiff
path: root/sc/inc/markdata.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-11-03 23:20:44 +0100
committerEike Rathke <erack@redhat.com>2016-11-03 23:21:20 +0100
commit8d777f85eaff6af8896942590316b7cd9f2c3e75 (patch)
treec20c85c5f6917b2ac4789d05978ab8ff7055eebf /sc/inc/markdata.hxx
parent84400eae86d7ae8e66f8247f4c4f3a717d90f8c0 (diff)
Resolves: tdf#103684 calculate status bar functions across sheets
Also trigger recalculation when additional sheets are selected or deselected. Change-Id: I259396a3e30c5653ac252b7bb2eb6a0a9405d6cc
Diffstat (limited to 'sc/inc/markdata.hxx')
-rw-r--r--sc/inc/markdata.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sc/inc/markdata.hxx b/sc/inc/markdata.hxx
index 60c04d076bb8..d11173c301fd 100644
--- a/sc/inc/markdata.hxx
+++ b/sc/inc/markdata.hxx
@@ -108,10 +108,21 @@ public:
ScMarkArray GetMarkArray( SCCOL nCol ) const;
bool IsCellMarked( SCCOL nCol, SCROW nRow, bool bNoSimple = false ) const;
- void FillRangeListWithMarks( ScRangeList* pList, bool bClear ) const;
+
+ /** Create a range list of marks.
+ @param nForTab
+ If -1, use start-sheet-tab of the multi-area in ranges.
+ If >= 0, use given sheet-tab in ranges.
+ */
+ void FillRangeListWithMarks( ScRangeList* pList, bool bClear, SCTAB nForTab = -1 ) const;
void ExtendRangeListTables( ScRangeList* pList ) const;
ScRangeList GetMarkedRanges() const;
+ /** Get marked ranges with sheet-tab set to nTab.
+ Marks are stored for the currently active sheet respectively the
+ multi-area start-sheet-tab, update ranges with the sheet for which this
+ is called. */
+ ScRangeList GetMarkedRangesForTab( SCTAB nTab ) const;
void MarkFromRangeList( const ScRangeList& rList, bool bReset );