diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-23 18:24:17 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-23 22:27:41 -0400 |
commit | 32d3e6b2ecd379e348d298777f8ae74cbc07a061 (patch) | |
tree | 4d90565ffb6552a569bf277c8532649df61ca233 /sc/inc | |
parent | 7463dafd92a5153f4c67d1a6d91199d97a3aead1 (diff) |
Added dump methods to various classes to make debugging easier.
And a little code cleanup here and there...
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/dpgroup.hxx | 4 | ||||
-rw-r--r-- | sc/inc/dpnumgroupinfo.hxx | 5 | ||||
-rw-r--r-- | sc/inc/dptabdat.hxx | 8 |
3 files changed, 16 insertions, 1 deletions
diff --git a/sc/inc/dpgroup.hxx b/sc/inc/dpgroup.hxx index 987c806de872..b9271fdf0463 100644 --- a/sc/inc/dpgroup.hxx +++ b/sc/inc/dpgroup.hxx @@ -214,6 +214,10 @@ public: const ScDPItemData& rBaseData, long nBaseIndex ) const; virtual sal_Bool HasCommonElement( const ScDPItemData& rFirstData, long nFirstIndex, const ScDPItemData& rSecondData, long nSecondIndex ) const; + +#if DEBUG_PIVOT_TABLE + virtual void Dump() const; +#endif }; diff --git a/sc/inc/dpnumgroupinfo.hxx b/sc/inc/dpnumgroupinfo.hxx index 9d6f25401c4f..c4ae17bfa311 100644 --- a/sc/inc/dpnumgroupinfo.hxx +++ b/sc/inc/dpnumgroupinfo.hxx @@ -30,6 +30,7 @@ #define __SC_DPNUMGROUPINFO_HXX__ #include "scdllapi.h" +#include "dpmacros.hxx" struct ScDPNumGroupInfo { @@ -44,6 +45,10 @@ struct ScDPNumGroupInfo SC_DLLPUBLIC ScDPNumGroupInfo(); SC_DLLPUBLIC ScDPNumGroupInfo(const ScDPNumGroupInfo& r); + +#if DEBUG_PIVOT_TABLE + void Dump() const; +#endif }; #endif diff --git a/sc/inc/dptabdat.hxx b/sc/inc/dptabdat.hxx index 3951275712ac..b11e8927d34f 100644 --- a/sc/inc/dptabdat.hxx +++ b/sc/inc/dptabdat.hxx @@ -33,7 +33,8 @@ #include "dpoutput.hxx" #include "dpcachetable.hxx" #include "dpcache.hxx" -#include <tools/string.hxx> +#include "dpmacros.hxx" + #include "svl/zforlist.hxx" #include <vector> @@ -171,6 +172,11 @@ public: virtual SCROW GetIdOfItemData( long nDim, const ScDPItemData& rData ); virtual long GetSourceDim( long nDim ); virtual long Compare( long nDim, long nDataId1, long nDataId2); + +#if DEBUG_PIVOT_TABLE + virtual void Dump() const; +#endif + protected: /** This structure stores vector arrays that hold intermediate data for each row during cache table iteration. */ |