diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-05 13:46:34 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-05 13:46:55 +0200 |
commit | 7748fba40ae1b69fe34a7e7dd4056a53147ce607 (patch) | |
tree | ef5a69033c00e06f676e8d047f194cb823a2ebba /sw/source/filter | |
parent | ebd7da6837f18ef164eacdcd92a59dddf2a346a8 (diff) |
Reverted WW8TableNodeInfo::toString() for dbglevel>1
Diffstat (limited to 'sw/source/filter')
-rw-r--r-- | sw/source/filter/ww8/WW8TableInfo.cxx | 27 | ||||
-rw-r--r-- | sw/source/filter/ww8/WW8TableInfo.hxx | 4 |
2 files changed, 31 insertions, 0 deletions
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), + "<tableNodeInfo p=\"%p\" depth=\"%" SAL_PRIuUINT32 "\">" + ,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 += "</tableNodeInfo>"; + + 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; }; |