summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/docnode/nodedump.cxx43
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 );