diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-18 21:06:53 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-19 00:30:11 -0400 |
commit | 378d38f4cab3fc39e735d39e6ecaeae1df408f34 (patch) | |
tree | 934bc863c1fb72124ea1085d6c24fdb5e3f70506 /sc/inc/dpresfilter.hxx | |
parent | More progress. Getting closer... (diff) | |
download | core-378d38f4cab3fc39e735d39e6ecaeae1df408f34.tar.gz core-378d38f4cab3fc39e735d39e6ecaeae1df408f34.zip |
Retrieve the result value for GETPIVOTDATA for real (finally!)
Change-Id: I68f4fdab667d86e79225a77964ed90373b391d08
Diffstat (limited to 'sc/inc/dpresfilter.hxx')
-rw-r--r-- | sc/inc/dpresfilter.hxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sc/inc/dpresfilter.hxx b/sc/inc/dpresfilter.hxx index 5e6f3e7199a6..9d4617d08a7a 100644 --- a/sc/inc/dpresfilter.hxx +++ b/sc/inc/dpresfilter.hxx @@ -21,6 +21,10 @@ #include <boost/unordered_map.hpp> +namespace com { namespace sun { namespace star { namespace sheet { + struct DataPilotFieldFilter; +}}}} + struct ScDPResultFilter { OUString maDimName; @@ -50,7 +54,6 @@ class ScDPResultFilterSet : boost::noncopyable { public: typedef std::vector<double> ValuesType; - typedef boost::unordered_map<OUString, OUString, OUStringHash> FilterSetType; private: @@ -81,7 +84,6 @@ private: struct MemberNode : boost::noncopyable { const DimensionNode* mpParent; - double mfValue; ValuesType maValues; DimensionsType maChildDimensions; @@ -117,8 +119,11 @@ public: void swap(ScDPResultFilterSet& rOther); bool empty() const; + void clear(); - bool getValues(FilterSetType& rFilters, ValuesType& rValues) const; + const ValuesType* getResults( + const com::sun::star::uno::Sequence< + com::sun::star::sheet::DataPilotFieldFilter>& rFilters) const; #if DEBUG_PIVOT_TABLE void dump() const; |