diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-24 00:13:30 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-24 00:13:30 -0400 |
commit | 16bbecab811a7ea95439bcbdf99050f766d18a9d (patch) | |
tree | 4266b0f1685ec31f8d0606e5a70614f4df032302 /sc/inc/dpgroup.hxx | |
parent | 7a1401e953e10194a7d693e590dc4e6c34a37ec4 (diff) |
ScDPDateGroupHelper class is no more.
Diffstat (limited to 'sc/inc/dpgroup.hxx')
-rw-r--r-- | sc/inc/dpgroup.hxx | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/sc/inc/dpgroup.hxx b/sc/inc/dpgroup.hxx index fadb830c9cca..fe5fd62cd980 100644 --- a/sc/inc/dpgroup.hxx +++ b/sc/inc/dpgroup.hxx @@ -41,28 +41,6 @@ class ScDocument; class SvNumberFormatter; -// ScDPDateGroupHelper is used as part of ScDPGroupDimension (additional dim.) -// or ScDPNumGroupDimension (innermost, replaces the original dim.). -// Source index, name and result collection are stored at the parent. - -class ScDPDateGroupHelper -{ - ScDPNumGroupInfo aNumInfo; // only start and end (incl. auto flags) are used - sal_Int32 nDatePart; // single part - long mnGroupDim; - -public: - ScDPDateGroupHelper( const ScDPNumGroupInfo& rInfo, long nDim, sal_Int32 nPart ); - ~ScDPDateGroupHelper(); - - void SetGroupDim(long nDim); - - sal_Int32 GetDatePart() const { return nDatePart; } - const ScDPNumGroupInfo& GetNumInfo() const { return aNumInfo; } - - void FillColumnEntries(const ScDPCache* pCache, std::vector<SCROW>& rEntries) const; -}; - typedef ::std::vector<ScDPItemData> ScDPItemDataVec; class ScDPGroupItem @@ -90,9 +68,9 @@ class ScDPGroupDimension long nSourceDim; long nGroupDim; rtl::OUString aGroupName; - ScDPDateGroupHelper* pDateHelper; ScDPGroupItemVec aItems; - mutable ::std::vector< SCROW > maMemberEntries; + mutable std::vector<SCROW> maMemberEntries; + bool mbDateDimension; public: ScDPGroupDimension( long nSource, const String& rNewName ); ScDPGroupDimension( const ScDPGroupDimension& rOther ); @@ -112,12 +90,11 @@ public: const ScDPGroupItem* GetGroupForName( const ScDPItemData& rName ) const; // rName = entry in group dim. const ScDPGroupItem* GetGroupByIndex( size_t nIndex ) const; - void MakeDateHelper( const ScDPNumGroupInfo& rInfo, sal_Int32 nPart ); - void DisposeData(); size_t GetItemCount() const { return aItems.size(); } + void SetDateDimension(); bool IsDateDimension() const; }; @@ -126,8 +103,8 @@ typedef ::std::vector<ScDPGroupDimension> ScDPGroupDimensionVec; class SC_DLLPUBLIC ScDPNumGroupDimension { mutable ScDPNumGroupInfo aGroupInfo; // settings - ScDPDateGroupHelper* pDateHelper; mutable std::vector<SCROW> maMemberEntries; + bool mbDateDimension; public: ScDPNumGroupDimension(); @@ -141,7 +118,7 @@ public: const std::vector<SCROW>& GetNumEntries(SCCOL nSourceDim, const ScDPCache* pCache) const; - void MakeDateHelper( const ScDPNumGroupInfo& rInfo, long nDim, sal_Int32 nPart ); + void SetDateDimension(); void DisposeData(); |