From 63dedfbfedff5c8e2b0b242b8b6af7ba30b665e4 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 8 Oct 2019 09:49:19 +0100 Subject: sc: rowcol: store sheet maximum sizes in ScDocument. For now, hard coded to MAXCOL, MAXROW while we re-factor. Change-Id: I5e1aafc91ba1434a9a248d33bf0da4f4a2dc3a1b Reviewed-on: https://gerrit.libreoffice.org/80434 Tested-by: Jenkins Reviewed-by: Michael Meeks Reviewed-by: Eike Rathke --- sc/inc/document.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sc/inc/document.hxx') diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 2b2ae8d99c0c..9e19ad228a36 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -370,6 +370,8 @@ private: std::unique_ptr pValidationList; // validity SvNumberFormatterIndexTable* pFormatExchangeList; // for application of number formats TableContainer maTabs; + SCCOL mnMaxCol; /// Maximum addressable column + SCROW mnMaxRow; /// Maximum addressable row std::vector maTabNames; // for undo document, we need the information tab name <-> index mutable std::unique_ptr pRangeName; std::unique_ptr pDBCollection; @@ -853,6 +855,8 @@ public: SC_DLLPUBLIC bool GetCodeName( SCTAB nTab, OUString& rName ) const; SC_DLLPUBLIC bool SetCodeName( SCTAB nTab, const OUString& rName ); SC_DLLPUBLIC bool GetTable( const OUString& rName, SCTAB& rTab ) const; + SC_DLLPUBLIC SCCOL MaxCol() const { return mnMaxCol; } + SC_DLLPUBLIC SCROW MaxRow() const { return mnMaxRow; } SC_DLLPUBLIC std::vector GetAllTableNames() const; -- cgit