diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-10-08 09:49:19 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-10-09 13:25:15 +0200 |
commit | 63dedfbfedff5c8e2b0b242b8b6af7ba30b665e4 (patch) | |
tree | 61bd0d3a6d7ae5a6d14ead45744ee34a66e7fa6b /sc/inc/document.hxx | |
parent | dc78b82db539401cc7e63d96f4727e1e884b86cb (diff) |
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 <michael.meeks@collabora.com>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r-- | sc/inc/document.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
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<ScValidationDataList> pValidationList; // validity SvNumberFormatterIndexTable* pFormatExchangeList; // for application of number formats TableContainer maTabs; + SCCOL mnMaxCol; /// Maximum addressable column + SCROW mnMaxRow; /// Maximum addressable row std::vector<OUString> maTabNames; // for undo document, we need the information tab name <-> index mutable std::unique_ptr<ScRangeName> pRangeName; std::unique_ptr<ScDBCollection> 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<OUString> GetAllTableNames() const; |