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/source/core/data/dpnumgroupinfo.cxx | |
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/source/core/data/dpnumgroupinfo.cxx')
-rw-r--r-- | sc/source/core/data/dpnumgroupinfo.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sc/source/core/data/dpnumgroupinfo.cxx b/sc/source/core/data/dpnumgroupinfo.cxx index 0b93bf48c2ea..26349333a549 100644 --- a/sc/source/core/data/dpnumgroupinfo.cxx +++ b/sc/source/core/data/dpnumgroupinfo.cxx @@ -45,4 +45,22 @@ ScDPNumGroupInfo::ScDPNumGroupInfo(const ScDPNumGroupInfo& r) : mfStart(r.mfStart), mfEnd(r.mfEnd), mfStep(r.mfStep) {} +#if DEBUG_PIVOT_TABLE +#include <iostream> +using std::cout; +using std::endl; + +void ScDPNumGroupInfo::Dump() const +{ + cout << "--- ScDPNumGroupInfo" << endl; + cout << " enabled: " << mbEnable << endl; + cout << " auto start: " << mbAutoStart << endl; + cout << " auto end: " << mbAutoEnd << endl; + cout << " start: " << mfStart << endl; + cout << " end: " << mfEnd << endl; + cout << " step: " << mfStep << endl; + cout << "---" << endl; +} +#endif + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |