Reverted WW8TableNodeInfo::toString() for dbglevel>1

This commit is contained in:
Cédric Bosdonnat 2011-09-05 13:46:34 +02:00
parent ebd7da6837
commit 7748fba40a
2 changed files with 31 additions and 0 deletions

View file

@ -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) void WW8TableNodeInfo::setDepth(sal_uInt32 nDepth)
{ {
mnDepth = nDepth; mnDepth = nDepth;

View file

@ -178,6 +178,10 @@ public:
sal_uInt32 getCell() const; sal_uInt32 getCell() const;
sal_uInt32 getRow() const; sal_uInt32 getRow() const;
#if OSL_DEBUG_LEVEL > 1
::std::string toString() const;
#endif
bool operator < (const WW8TableNodeInfo & rInfo) const; bool operator < (const WW8TableNodeInfo & rInfo) const;
}; };