diff --git a/xmloff/source/script/XMLScriptContextFactory.cxx b/xmloff/source/script/XMLScriptContextFactory.cxx index cf9bf914a286..da1f5b0323c0 100644 --- a/xmloff/source/script/XMLScriptContextFactory.cxx +++ b/xmloff/source/script/XMLScriptContextFactory.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLScriptContextFactory.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2003-03-27 18:20:32 $ + * last change: $Author: rt $ $Date: 2004-07-13 08:17:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -115,7 +115,7 @@ SvXMLImportContext * XMLScriptContextFactory::CreateContext const Reference & xAttrList, XMLEventsImportContext * rEvents, const OUString & rApiEventName, - const OUString & rLanguage) + const OUString & rApiLanguage) { OUString sURLVal; diff --git a/xmloff/source/script/XMLScriptExportHandler.cxx b/xmloff/source/script/XMLScriptExportHandler.cxx index 4ebd5c900c04..8d7cdb9f24a6 100644 --- a/xmloff/source/script/XMLScriptExportHandler.cxx +++ b/xmloff/source/script/XMLScriptExportHandler.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLScriptExportHandler.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2003-03-27 18:20:32 $ + * last change: $Author: rt $ $Date: 2004-07-13 08:17:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -79,6 +79,9 @@ #include "xmltoken.hxx" #endif +#ifndef _XMLOFF_NMSPMAP_HXX +#include "nmspmap.hxx" +#endif #ifndef _XMLOFF_XMLNMSPE_HXX #include "xmlnmspe.hxx" #endif @@ -102,12 +105,15 @@ XMLScriptExportHandler::~XMLScriptExportHandler() void XMLScriptExportHandler::Export( SvXMLExport& rExport, - const OUString& rEventName, + const OUString& rEventQName, Sequence & rValues, sal_Bool bUseWhitespace) { - rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_LANGUAGE, XML_SCRIPT); - rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_EVENT_NAME, rEventName); + + rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_LANGUAGE, + rExport.GetNamespaceMap().GetQNameByKey( + XML_NAMESPACE_OOO, GetXMLToken(XML_SCRIPT) ) ); + rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_EVENT_NAME, rEventQName); sal_Int32 nCount = rValues.getLength(); for(sal_Int32 i = 0; i < nCount; i++) @@ -121,6 +127,7 @@ void XMLScriptExportHandler::Export( // else: disregard } - SvXMLElementExport aEventElemt(rExport, XML_NAMESPACE_SCRIPT, XML_EVENT, + SvXMLElementExport aEventElemt(rExport, XML_NAMESPACE_SCRIPT, + XML_EVENT_LISTENER, bUseWhitespace, sal_False); }