diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-06-28 17:04:49 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-07-01 12:27:52 +0200 |
commit | dc7498e4f0632c10a0019564d2e71b5403e40812 (patch) | |
tree | 29a60021a694e36f32e3a8ed3647c1e73c855167 /sw | |
parent | ed1d006e1ab594ff0b64a41eadd1b8fe48ab0414 (diff) |
don't show section/table nodes as plain start nodes in debug dump
Change-Id: I8b4901d98c210f5a3228981a2b180f2fcc06c768
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index 96e787a5669f..01ba1d2846cf 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -220,25 +220,36 @@ void SwStartNode::dumpAsXml( xmlTextWriterPtr w ) { WriterHelper writer( w ); const char* name = "???"; - switch( GetStartNodeType()) + switch( GetNodeType() ) { - case SwNormalStartNode: - name = "start"; - break; - case SwTableBoxStartNode: - name = "tablebox"; - break; - case SwFlyStartNode: - name = "fly"; - break; - case SwFootnoteStartNode: - name = "footnote"; + case ND_TABLENODE: + name = "table"; break; - case SwHeaderStartNode: - name = "header"; + case ND_SECTIONNODE: + name = "section"; break; - case SwFooterStartNode: - name = "footer"; + default: + switch( GetStartNodeType()) + { + case SwNormalStartNode: + name = "start"; + break; + case SwTableBoxStartNode: + name = "tablebox"; + break; + case SwFlyStartNode: + name = "fly"; + break; + case SwFootnoteStartNode: + name = "footnote"; + break; + case SwHeaderStartNode: + name = "header"; + break; + case SwFooterStartNode: + name = "footer"; + break; + } break; } writer.startElement( name ); |