diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-23 22:05:03 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-23 22:27:42 -0400 |
commit | 16168d7d589d22b1efd2a666d08d96233783457f (patch) | |
tree | cc616aa28df72cf054fc30969ab78d5999a7919f /sc/inc/dpgroup.hxx | |
parent | Store the group type (aka date part) with the cache, and use that. (diff) | |
download | core-16168d7d589d22b1efd2a666d08d96233783457f.tar.gz core-16168d7d589d22b1efd2a666d08d96233783457f.zip |
We don't need date helper in FillGroupValues().
Diffstat (limited to 'sc/inc/dpgroup.hxx')
-rw-r--r-- | sc/inc/dpgroup.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/inc/dpgroup.hxx b/sc/inc/dpgroup.hxx index b9271fdf0463..eb4668542f81 100644 --- a/sc/inc/dpgroup.hxx +++ b/sc/inc/dpgroup.hxx @@ -89,7 +89,7 @@ class ScDPGroupDimension { long nSourceDim; long nGroupDim; - String aGroupName; + rtl::OUString aGroupName; ScDPDateGroupHelper* pDateHelper; ScDPGroupItemVec aItems; mutable ::std::vector< SCROW > maMemberEntries; @@ -105,7 +105,7 @@ public: long GetSourceDim() const { return nSourceDim; } long GetGroupDim() const { return nGroupDim; } - const String& GetName() const { return aGroupName; } + const rtl::OUString& GetName() const { return aGroupName; } const std::vector< SCROW >& GetColumnEntries( const ScDPCacheTable& rCacheTable ) const; const ScDPGroupItem* GetGroupForData( const ScDPItemData& rData ) const; // rData = entry in original dim. @@ -119,6 +119,8 @@ public: void DisposeData(); size_t GetItemCount() const { return aItems.size(); } + + bool IsDateDimension() const; }; typedef ::std::vector<ScDPGroupDimension> ScDPGroupDimensionVec; @@ -146,6 +148,8 @@ public: void MakeDateHelper( const ScDPNumGroupInfo& rInfo, long nDim, sal_Int32 nPart ); void DisposeData(); + + bool IsDateDimension() const; }; // |