From 7748fba40ae1b69fe34a7e7dd4056a53147ce607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Mon, 5 Sep 2011 13:46:34 +0200 Subject: [PATCH] Reverted WW8TableNodeInfo::toString() for dbglevel>1 --- sw/source/filter/ww8/WW8TableInfo.cxx | 27 +++++++++++++++++++++++++++ sw/source/filter/ww8/WW8TableInfo.hxx | 4 ++++ 2 files changed, 31 insertions(+) diff --git a/sw/source/filter/ww8/WW8TableInfo.cxx b/sw/source/filter/ww8/WW8TableInfo.cxx index ade3e02f51f4..11e7405b7a4a 100644 --- a/sw/source/filter/ww8/WW8TableInfo.cxx +++ b/sw/source/filter/ww8/WW8TableInfo.cxx @@ -349,6 +349,33 @@ WW8TableNodeInfo::~WW8TableNodeInfo() { } +#if OSL_DEBUG_LEVEL > 1 +::std::string WW8TableNodeInfo::toString() const +{ + static char buffer[1024]; + snprintf(buffer, sizeof(buffer), + "" + ,this, getDepth()); + + ::std::string sResult(buffer); + + Inners_t::const_iterator aIt(mInners.begin()); + Inners_t::const_iterator aEnd(mInners.end()); + + while (aIt != aEnd) + { + WW8TableNodeInfoInner::Pointer_t pInner = aIt->second; + sResult += pInner->toString(); + + aIt++; + } + sResult += dbg_out(*mpNode); + sResult += ""; + + return sResult; +} +#endif + void WW8TableNodeInfo::setDepth(sal_uInt32 nDepth) { mnDepth = nDepth; diff --git a/sw/source/filter/ww8/WW8TableInfo.hxx b/sw/source/filter/ww8/WW8TableInfo.hxx index e1c4d53b25f0..0fc9b2c6e63e 100644 --- a/sw/source/filter/ww8/WW8TableInfo.hxx +++ b/sw/source/filter/ww8/WW8TableInfo.hxx @@ -178,6 +178,10 @@ public: sal_uInt32 getCell() const; sal_uInt32 getRow() const; +#if OSL_DEBUG_LEVEL > 1 + ::std::string toString() const; +#endif + bool operator < (const WW8TableNodeInfo & rInfo) const; };