diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-02-06 15:34:29 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-02-06 15:34:29 +0000 |
commit | 98a2208308cbea4d44ecb2c11cba4dedbdb52e1a (patch) | |
tree | e6a742cf790fd1e49a61e4f11a392dbabea832d0 /xmloff/source/text/XMLAutoTextEventImport.cxx | |
parent | 8bb490c83002cfa541174ddbf6dddad3f4879d5d (diff) |
- changed: auto text events now use text:auto-text-events container element
(rather than document)
Diffstat (limited to 'xmloff/source/text/XMLAutoTextEventImport.cxx')
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventImport.cxx | 25 |
1 files changed, 20 insertions, 5 deletions
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<XAttributeList > & 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 { |