summaryrefslogtreecommitdiff
path: root/package/source
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-02-01 18:13:55 +0000
committerKurt Zenker <kz@openoffice.org>2006-02-01 18:13:55 +0000
commit5ab56eb4c19cd1cac250edb434d57cc3c5d51da0 (patch)
tree66b541038508a0c9cfac8b55cc3b8a90f7d485b0 /package/source
parent43e91813307ae4e52f0bec0e7cf2ed4bc6bcee8c (diff)
INTEGRATION: CWS mav19 (1.11.6); FILE MERGED
2005/11/24 12:12:14 mav 1.11.6.1: #i58055# do not add DTD information for oasis format
Diffstat (limited to 'package/source')
-rw-r--r--package/source/manifest/ManifestExport.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/package/source/manifest/ManifestExport.cxx b/package/source/manifest/ManifestExport.cxx
index 80c8c98dfd2e..2fa804076730 100644
--- a/package/source/manifest/ManifestExport.cxx
+++ b/package/source/manifest/ManifestExport.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ManifestExport.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: kz $ $Date: 2005-11-03 12:06:52 $
+ * last change: $Author: kz $ $Date: 2006-02-01 19:13:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -136,6 +136,7 @@ ManifestExport::ManifestExport(Reference < XDocumentHandler > xHandler, const S
}
}
+ sal_Bool bProvideDTD = sal_False;
if ( aDocMediaType.getLength() )
{
if ( aDocMediaType.equals( OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII ) ) )
@@ -168,6 +169,8 @@ ManifestExport::ManifestExport(Reference < XDocumentHandler > xHandler, const S
pRootAttrList->AddAttribute ( OUString( RTL_CONSTASCII_USTRINGPARAM ( ATTRIBUTE_XMLNS ) ),
sCdataAttribute,
OUString( RTL_CONSTASCII_USTRINGPARAM ( MANIFEST_NAMESPACE ) ) );
+
+ bProvideDTD = sal_True;
}
}
@@ -175,12 +178,12 @@ ManifestExport::ManifestExport(Reference < XDocumentHandler > xHandler, const S
xHandler->startDocument();
Reference < XExtendedDocumentHandler > xExtHandler ( xHandler, UNO_QUERY );
- if (xExtHandler.is())
+ if ( xExtHandler.is() && bProvideDTD )
{
OUString aDocType ( RTL_CONSTASCII_USTRINGPARAM ( MANIFEST_DOCTYPE ) );
xExtHandler->unknown ( aDocType );
+ xHandler->ignorableWhitespace ( sWhiteSpace );
}
- xHandler->ignorableWhitespace ( sWhiteSpace );
xHandler->startElement( sManifestElement, xRootAttrList );
for (sal_uInt32 i = 0 ; i < nManLength ; i++)