summaryrefslogtreecommitdiff
path: root/sc/inc/sheetlimits.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/sheetlimits.hxx')
-rw-r--r--sc/inc/sheetlimits.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/inc/sheetlimits.hxx b/sc/inc/sheetlimits.hxx
index 26bd423d422f..c8dbc1165216 100644
--- a/sc/inc/sheetlimits.hxx
+++ b/sc/inc/sheetlimits.hxx
@@ -57,6 +57,10 @@ struct ScSheetLimits final : public salhelper::SimpleReferenceObject
[[nodiscard]] SCCOL SanitizeCol(SCCOL nCol) const { return ::SanitizeCol(nCol, mnMaxCol); }
[[nodiscard]] SCROW SanitizeRow(SCROW nRow) const { return ::SanitizeRow(nRow, mnMaxRow); }
+ // equivalent of MAXROW in address.hxx
+ SCROW MaxRow() const { return mnMaxRow; }
+ // equivalent of MAXCOL in address.hxx
+ SCCOL MaxCol() const { return mnMaxCol; }
// equivalent of MAXROWCOUNT in address.hxx
SCROW GetMaxRowCount() const { return mnMaxRow + 1; }
// equivalent of MAXCOLCOUNT in address.hxx