From 98a2208308cbea4d44ecb2c11cba4dedbdb52e1a Mon Sep 17 00:00:00 2001 From: Daniel Vogelheim Date: Tue, 6 Feb 2001 15:34:29 +0000 Subject: - changed: auto text events now use text:auto-text-events container element (rather than document) --- xmloff/source/text/XMLAutoTextEventImport.cxx | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'xmloff/source/text/XMLAutoTextEventImport.cxx') diff --git a/xmloff/source/text/XMLAutoTextEventImport.cxx b/xmloff/source/text/XMLAutoTextEventImport.cxx index 5823fea01e5b..442053a18359 100644 --- a/xmloff/source/text/XMLAutoTextEventImport.cxx +++ b/xmloff/source/text/XMLAutoTextEventImport.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLAutoTextEventImport.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: dvo $ $Date: 2001-02-06 11:51:27 $ + * last change: $Author: dvo $ $Date: 2001-02-06 16:34:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -99,6 +99,18 @@ #include "XMLAutoTextGroupEventImport.hxx" #endif +#ifndef _XMLOFF_XMLAUTOTEXTCONTAINEREVENTIMPORT_HXX +#include "XMLAutoTextContainerEventImport.hxx" +#endif + +#ifndef _XMLOFF_XMLNMSPE_HXX +#include "xmlnmspe.hxx" +#endif + +#ifndef _XMLOFF_XMLKYWD_HXX +#include "xmlkywd.hxx" +#endif + using namespace ::com::sun::star; using ::rtl::OUString; @@ -140,10 +152,13 @@ SvXMLImportContext* XMLAutoTextEventImport::CreateContext( const OUString& rLocalName, const Reference & xAttrList ) { - if (xAutoTextContainer.is()) + if ( xAutoTextContainer.is() && + (XML_NAMESPACE_TEXT == nPrefix) && + rLocalName.equalsAsciiL(sXML_auto_text_events, + sizeof(sXML_auto_text_events)-1) ) { - return new XMLAutoTextGroupEventImport(*this, nPrefix, rLocalName, - xAutoTextContainer); + return new XMLAutoTextContainerEventImport(*this, nPrefix, rLocalName, + xAutoTextContainer); } else { -- cgit