summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2001-05-22 13:16:24 +0000
committerAndreas Bregas <ab@openoffice.org>2001-05-22 13:16:24 +0000
commit48732e37a104cfadfdc7163c369340d48aa91cac (patch)
tree2c2575b9abb53a5643f7cf3b8f9d90cc26950eee /xmlscript
parent2224d25176a74be3a0bf1196097c07dd9ec586b7 (diff)
#87358# Write DOCTYPE tag
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmlmod_imexp/xmlmod_export.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx b/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
index fbad35434a2c..11fa34417f8b 100644
--- a/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
+++ b/xmlscript/source/xmlmod_imexp/xmlmod_export.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlmod_export.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: dbo $ $Date: 2001-05-04 09:14:57 $
+ * last change: $Author: ab $ $Date: 2001-05-22 14:16:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -79,6 +79,12 @@ SAL_CALL exportScriptModule(
{
xOut->startDocument();
+ OUString aDocTypeStr( RTL_CONSTASCII_USTRINGPARAM(
+ "<!DOCTYPE script:module PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\""
+ " \"module.dtd\">" ) );
+ xOut->unknown( aDocTypeStr );
+ xOut->ignorableWhitespace( OUString() );
+
OUString aModuleName( RTL_CONSTASCII_USTRINGPARAM(XMLNS_SCRIPT_PREFIX ":module") );
XMLElement* pModElement = new XMLElement( aModuleName );
Reference< xml::sax::XAttributeList > xAttributes( pModElement );