summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2001-03-04 16:28:24 +0000
committerChristian Lippka <cl@openoffice.org>2001-03-04 16:28:24 +0000
commite9388b9b48ca4e81e988dffdd21d664b01d6511c (patch)
tree4f8fc08646bc0a5cd8cacf50619d8d3b89059c4e
parent28073a20f96ea74cd45e2aeeda4f09cccaeb305c (diff)
added root elements for content and style export
-rw-r--r--sw/source/filter/xml/xmlimp.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index 3250cd6abb9c..71080a754efa 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlimp.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: dvo $ $Date: 2001-03-02 21:02:30 $
+ * last change: $Author: cl $ $Date: 2001-03-04 17:28:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -297,7 +297,10 @@ SvXMLImportContext *SwXMLImport::CreateContext(
SvXMLImportContext *pContext = 0;
if( XML_NAMESPACE_OFFICE==nPrefix &&
- rLocalName.compareToAscii( sXML_document ) == 0 )
+ ( 0 == rLocalName.compareToAscii(sXML_document) ||
+ 0 == rLocalName.compareToAscii(sXML_document_meta) ||
+ 0 == rLocalName.compareToAscii(sXML_document_styles) ||
+ 0 == rLocalName.compareToAscii(sXML_document_content) ))
pContext = new SwXMLDocContext_Impl( *this, nPrefix, rLocalName,
xAttrList );
else