summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-07 16:39:20 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-07 16:40:30 -0500
commit331518c39551afa3c63d0c2fc394af0e9566aa43 (patch)
tree13a3ec1c13ff224447882e625741a3a3ead5727f /sc/inc
parent256e4ccba8a331f2d30c6b5da9dca70206deadae (diff)
fdo#72774: Add test for group field cache population on file load.
Change-Id: Iddde39da57db0d6be9f066f3e2bdb0526932edc6
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/dpcache.hxx12
-rw-r--r--sc/inc/dpobject.hxx3
2 files changed, 13 insertions, 2 deletions
diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx
index 707749cbb104..b35fa3b1d708 100644
--- a/sc/inc/dpcache.hxx
+++ b/sc/inc/dpcache.hxx
@@ -139,6 +139,15 @@ public:
void GetGroupDimMemberIds(long nDim, std::vector<SCROW>& rIds) const;
void ClearGroupFields();
const ScDPNumGroupInfo* GetNumGroupInfo(long nDim) const;
+
+ /**
+ * Return a group type identifier. The values correspond with
+ * com::sun::star::sheet::DataPilotFieldGroupBy constant values.
+ *
+ * @param nDim 0-based dimension index.
+ *
+ * @return group type identifier, or 0 on failure.
+ */
sal_Int32 GetGroupType(long nDim) const;
SCCOL GetDimensionIndex(const OUString& sName) const;
@@ -163,6 +172,9 @@ public:
const ScDPItemData* GetItemDataById( long nDim, SCROW nId ) const;
+ size_t GetFieldCount() const;
+ size_t GetGroupFieldCount() const;
+
ScDPCache(ScDocument* pDoc);
~ScDPCache();
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 6c0a64dd3b0e..05a063d375b5 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -287,8 +287,7 @@ public:
void updateReference(
UpdateRefMode eMode, const ScRange& r, SCsCOL nDx, SCsROW nDy, SCsTAB nDz);
- private:
- ScDPCache* getExistingCache(const ScRange& rRange);
+ SC_DLLPUBLIC ScDPCache* getExistingCache(const ScRange& rRange);
void updateCache(const ScRange& rRange, std::set<ScDPObject*>& rRefs);
bool remove(const ScDPCache* p);