diff options
author | Henning Brinkmann <hbrinkm@openoffice.org> | 2002-11-19 15:05:31 +0000 |
---|---|---|
committer | Henning Brinkmann <hbrinkm@openoffice.org> | 2002-11-19 15:05:31 +0000 |
commit | a22c550a5483f25f54e644de254f3abe43683a85 (patch) | |
tree | fdec47d0d578fa02241f5bd35a4e897a3934e9a3 /xmloff/source/script | |
parent | ab55497e8a9d7a246e29b70c916b4a35ecee80c2 (diff) |
#99838# XMLEventImportHelper::CreateContext: error when default context
Diffstat (limited to 'xmloff/source/script')
-rw-r--r-- | xmloff/source/script/XMLEventImportHelper.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/xmloff/source/script/XMLEventImportHelper.cxx b/xmloff/source/script/XMLEventImportHelper.cxx index 94f09eb05d77..b7d1914c9601 100644 --- a/xmloff/source/script/XMLEventImportHelper.cxx +++ b/xmloff/source/script/XMLEventImportHelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLEventImportHelper.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: dvo $ $Date: 2001-06-29 21:07:16 $ + * last change: $Author: hbrinkm $ $Date: 2002-11-19 16:05:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -79,10 +79,14 @@ #include "xmlnmspe.hxx" #endif +#ifndef _XMLOFF_XMLERROR_HXX +#include "xmlerror.hxx" +#endif using ::rtl::OUString; using ::com::sun::star::xml::sax::XAttributeList; using ::com::sun::star::uno::Reference; +using ::com::sun::star::uno::Sequence; XMLEventImportHelper::XMLEventImportHelper() : aFactoryMap(), @@ -194,6 +198,15 @@ SvXMLImportContext* XMLEventImportHelper::CreateContext( if( NULL == pContext ) { pContext = new SvXMLImportContext(rImport, nPrefix, rLocalName); + + Sequence<OUString> aMsgParams(2); + + aMsgParams[0] = rXmlEventName; + aMsgParams[1] = rLanguage; + + rImport.SetError(XMLERROR_FLAG_ERROR | XMLERROR_ILLEGAL_EVENT, + aMsgParams); + } return pContext; |