diff options
author | Michael Brauer <mib@openoffice.org> | 2001-10-22 11:33:08 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-10-22 11:33:08 +0000 |
commit | 648dc88ed4ca32319f0364933f0e230a1b8a1153 (patch) | |
tree | a5276775cd087020499046751892804816b6b78b /starmath | |
parent | feff05f6ec4d3bf00ac9c6852da9ed511ad17fdf (diff) |
#90908#: Added doc type
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathml.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/starmath/source/mathml.cxx b/starmath/source/mathml.cxx index e42a5aeeb09a..d6b74421c092 100644 --- a/starmath/source/mathml.cxx +++ b/starmath/source/mathml.cxx @@ -2,9 +2,9 @@ * * $RCSfile: mathml.cxx,v $ * - * $Revision: 1.51 $ + * $Revision: 1.52 $ * - * last change: $Author: mib $ $Date: 2001-10-19 14:27:17 $ + * last change: $Author: mib $ $Date: 2001-10-22 12:33:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -470,7 +470,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLExport_createInstance( const uno::Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) { - return (cppu::OWeakObject*)new SmXMLExport; + return (cppu::OWeakObject*)new SmXMLExport( EXPORT_CONTENT ); } @@ -547,7 +547,7 @@ rtl::OUString SAL_CALL SmXMLExport::getImplementationName() switch( getExportFlags() ) { default: - case EXPORT_ALL: + case EXPORT_CONTENT: return SmXMLExport_getImplementationName(); break; case EXPORT_META: @@ -950,6 +950,13 @@ sal_uInt32 SmXMLExport::exportDoc(enum XMLTokenEnum eClass) GetDocHandler()->startDocument(); + if( (getExportFlags() & EXPORT_NODOCTYPE) == 0 && + GetExtDocHandler().is() ) + { + OUString aDocType( RTL_CONSTASCII_USTRINGPARAM( "<!DOCTYPE math:math PUBLIC \"-//OpenOffice.org//DTD Modified W3C MathML 1.01//EN\" \"math.dtd\">" ) ); + GetExtDocHandler()->unknown( aDocType ); + } + /*Add xmlns line*/ SvXMLAttributeList &rList = GetAttrList(); rList.AddAttribute(GetNamespaceMap().GetAttrNameByKey( |