summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-02-14 21:51:41 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-02-14 21:53:15 -0500
commit5e4b9d960e88b6137d952845fe121836e73f3ca3 (patch)
tree51689845a61d62884d0383041d4ef48e670a1c25 /sc/inc
parent2230dd01ff923d7e86143379fa96c3f3a114b913 (diff)
Disable DumpState() and its friends when not debugging pivot code.
I was just about to add a similar set of functions to dump the internals, but I can re-use these. Change-Id: I212f0a6ea7a32233991f6cdb64e27be39c5af2ee
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/dptabres.hxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/sc/inc/dptabres.hxx b/sc/inc/dptabres.hxx
index 8ebdc8a510f4..70c2b1460eb7 100644
--- a/sc/inc/dptabres.hxx
+++ b/sc/inc/dptabres.hxx
@@ -22,6 +22,7 @@
#include "global.hxx"
#include "dpfilteredcache.hxx"
+#include "dpmacros.hxx"
#include <tools/string.hxx>
#include <com/sun/star/sheet/MemberResult.hpp>
@@ -413,7 +414,9 @@ public:
void ResetResults();
- void DumpState( const ScDPResultMember* pRefMember, ScDocument* pDoc, ScAddress& rPos ) const;
+#if DEBUG_PIVOT_TABLE
+ void DumpState( const ScDPResultMember* pRefMember, ScDocument* pDoc, ScAddress& rPos ) const;
+#endif
//! this will be removed!
const ScDPResultDimension* GetChildDimension() const { return pChildDimension; }
@@ -478,7 +481,9 @@ public:
void ResetResults();
- void DumpState( const ScDPResultMember* pRefMember, ScDocument* pDoc, ScAddress& rPos ) const;
+#if DEBUG_PIVOT_TABLE
+ void DumpState( const ScDPResultMember* pRefMember, ScDocument* pDoc, ScAddress& rPos ) const;
+#endif
//! this will be removed!
const ScDPDataDimension* GetChildDimension() const { return pChildDimension; }
@@ -572,7 +577,9 @@ public:
const ScDPRelativePos* pMemberPos, const OUString* pName,
long nRefDimPos, const ScDPRunningTotalState& rRunning );
- void DumpState( const ScDPResultMember* pRefMember, ScDocument* pDoc, ScAddress& rPos ) const;
+#if DEBUG_PIVOT_TABLE
+ void DumpState( const ScDPResultMember* pRefMember, ScDocument* pDoc, ScAddress& rPos ) const;
+#endif
// for ScDPDataDimension::InitFrom
long GetMemberCount() const;
@@ -632,7 +639,9 @@ public:
void ResetResults();
- void DumpState( const ScDPResultDimension* pRefDim, ScDocument* pDoc, ScAddress& rPos ) const;
+#if DEBUG_PIVOT_TABLE
+ void DumpState( const ScDPResultDimension* pRefDim, ScDocument* pDoc, ScAddress& rPos ) const;
+#endif
long GetMemberCount() const;
const ScDPDataMember* GetMember(long n) const;