diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-09-14 23:31:42 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-09-18 00:40:33 -0400 |
commit | 1e50a93d228fbd41dc1d75aec48df088302900f8 (patch) | |
tree | 77ad1ba97eb6e23fa7c08b1f1f6c88ed07fe787b /sc/inc | |
parent | 123206d00227c102a4bee0444acdeb34bcb92802 (diff) |
Determine data size in cache that doesn't include trailing empty rows.
Change-Id: I47632b7ae93f4e68c4512fc30f4e4fe18e1c5f4d
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/dpcache.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx index 7f996e077b91..b69e3c2cb43f 100644 --- a/sc/inc/dpcache.hxx +++ b/sc/inc/dpcache.hxx @@ -130,6 +130,7 @@ private: LabelsType maLabelNames; // Stores dimension names. mdds::flat_segment_tree<SCROW, bool> maEmptyRows; + SCROW mnDataSize; bool mbDisposing; @@ -159,8 +160,9 @@ public: bool InitFromDoc(ScDocument* pDoc, const ScRange& rRange); bool InitFromDataBase(DBConnector& rDB); - SCROW GetRowCount() const; - SCROW GetItemDataId( sal_uInt16 nDim, SCROW nRow, bool bRepeatIfEmpty ) const; + SCROW GetRowCount() const; + SCROW GetDataSize() const; + SCROW GetItemDataId( sal_uInt16 nDim, SCROW nRow, bool bRepeatIfEmpty ) const; rtl::OUString GetDimensionName(LabelsType::size_type nDim) const; bool IsRowEmpty(SCROW nRow) const; bool ValidQuery(SCROW nRow, const ScQueryParam& rQueryParam) const; |