summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2001-05-22 13:05:53 +0000
committerAndreas Bregas <ab@openoffice.org>2001-05-22 13:05:53 +0000
commit2224d25176a74be3a0bf1196097c07dd9ec586b7 (patch)
tree6a60e32141a72871a08c7a82d2cb034e44b6d31a /xmlscript
parentba7ce973629b93a92284ec8aa385a80dbecbefd9 (diff)
#87358# Write DOCTYPE tag
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx10
-rw-r--r--xmlscript/source/xmllib_imexp/xmllib_export.cxx11
2 files changed, 17 insertions, 4 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 0ebc49af98df..b3131895baa5 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_export.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: tbe $ $Date: 2001-05-15 13:16:52 $
+ * last change: $Author: ab $ $Date: 2001-05-22 14:04:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1128,6 +1128,12 @@ void SAL_CALL exportDialogModel(
xOut->startDocument();
+ OUString aDocTypeStr( RTL_CONSTASCII_USTRINGPARAM(
+ "<!DOCTYPE dlg:window PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\""
+ " \"dialog.dtd\">" ) );
+ xOut->unknown( aDocTypeStr );
+ xOut->ignorableWhitespace( OUString() );
+
// window
Reference< beans::XPropertySet > xProps( xDialogModel, UNO_QUERY );
OSL_ASSERT( xProps.is() );
diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
index d54cf91ce754..27a277bc0a8c 100644
--- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx
+++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmllib_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:05:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -81,6 +81,13 @@ SAL_CALL exportLibraryContainer(
{
xOut->startDocument();
+ OUString aDocTypeStr( RTL_CONSTASCII_USTRINGPARAM(
+ "<!DOCTYPE library:libraries PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\""
+ " \"libraries.dtd\">" ) );
+ xOut->unknown( aDocTypeStr );
+ xOut->ignorableWhitespace( OUString() );
+
+
OUString aLibrariesName( RTL_CONSTASCII_USTRINGPARAM(XMLNS_LIBRARY_PREFIX ":libraries") );
XMLElement* pLibsElement = new XMLElement( aLibrariesName );
Reference< xml::sax::XAttributeList > xAttributes( pLibsElement );