diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-23 21:56:06 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-23 22:27:41 -0400 |
commit | 83a7d544b2d2f6969bdca52b18d99f8a64ed5afa (patch) | |
tree | 03c28845a0a2d5cecd4e91564f4de80dc276bf07 /sc/inc/dpcache.hxx | |
parent | 09bc4a1ed1f9b4a4661f16a8af5b2a58e30b9c8b (diff) |
Store the group type (aka date part) with the cache, and use that.
With this, we can phase out the "DateHelper" class...
Diffstat (limited to 'sc/inc/dpcache.hxx')
-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 3e23f47008c3..68b1029edc5d 100644 --- a/sc/inc/dpcache.hxx +++ b/sc/inc/dpcache.hxx @@ -72,9 +72,10 @@ public: { ItemsType maItems; ScDPNumGroupInfo maInfo; + sal_Int32 mnGroupType; GroupItems(); - GroupItems(const ScDPNumGroupInfo& rInfo); + GroupItems(const ScDPNumGroupInfo& rInfo, sal_Int32 nGroupType); }; struct Field : boost::noncopyable @@ -132,11 +133,12 @@ public: SCROW GetIdByItemData(long nDim, const ScDPItemData& rItem) const; rtl::OUString GetFormattedString(long nDim, const ScDPItemData& rItem) const; long AppendGroupField(); - void ResetGroupItems(long nDim, const ScDPNumGroupInfo& rNumInfo); + void ResetGroupItems(long nDim, const ScDPNumGroupInfo& rNumInfo, sal_Int32 nGroupType); SCROW SetGroupItem(long nDim, const ScDPItemData& rData); void GetGroupDimMemberIds(long nDim, std::vector<SCROW>& rIds) const; void ClearGroupFields(); const ScDPNumGroupInfo* GetNumGroupInfo(long nDim) const; + sal_Int32 GetGroupType(long nDim) const; SCCOL GetDimensionIndex(const rtl::OUString& sName) const; sal_uLong GetNumberFormat( long nDim ) const; |