From 16bbecab811a7ea95439bcbdf99050f766d18a9d Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Sat, 24 Mar 2012 00:13:30 -0400 Subject: ScDPDateGroupHelper class is no more. --- sc/inc/dpgroup.hxx | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) (limited to 'sc/inc/dpgroup.hxx') 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& rEntries) const; -}; - typedef ::std::vector 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 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 ScDPGroupDimensionVec; class SC_DLLPUBLIC ScDPNumGroupDimension { mutable ScDPNumGroupInfo aGroupInfo; // settings - ScDPDateGroupHelper* pDateHelper; mutable std::vector maMemberEntries; + bool mbDateDimension; public: ScDPNumGroupDimension(); @@ -141,7 +118,7 @@ public: const std::vector& GetNumEntries(SCCOL nSourceDim, const ScDPCache* pCache) const; - void MakeDateHelper( const ScDPNumGroupInfo& rInfo, long nDim, sal_Int32 nPart ); + void SetDateDimension(); void DisposeData(); -- cgit ro/collabora/co-24.04.5'>distro/collabora/co-24.04.5 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2012-11-21re-base on ALv2 code. Includes:Michael Meeks
2012-04-07gbuildize xmlhelpDavid Tardon