[Libreoffice-commits] .: sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Mon Sep 5 04:47:34 PDT 2011


 sw/source/filter/ww8/WW8TableInfo.cxx |   27 +++++++++++++++++++++++++++
 sw/source/filter/ww8/WW8TableInfo.hxx |    4 ++++
 2 files changed, 31 insertions(+)

New commits:
commit 7748fba40ae1b69fe34a7e7dd4056a53147ce607
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Mon Sep 5 13:46:34 2011 +0200

    Reverted WW8TableNodeInfo::toString() for dbglevel>1

diff --git a/sw/source/filter/ww8/WW8TableInfo.cxx b/sw/source/filter/ww8/WW8TableInfo.cxx
index ade3e02..11e7405 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 e1c4d53..0fc9b2c 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;
 };
 


More information about the Libreoffice-commits mailing list