diff options
author | Christian Lippka <cl@openoffice.org> | 2001-04-30 13:29:26 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-04-30 13:29:26 +0000 |
commit | a95cbc6e1406a18e3a22134171ab1dfa21fb0768 (patch) | |
tree | 35464be3a63c7fde8484d3b65e07637fd3ff8427 /xmloff/source/draw/ximpgrp.cxx | |
parent | d3db7d555ce274cb32ec1cbf721336b301ce67c3 (diff) |
#85135# import interactions for group shapes
Diffstat (limited to 'xmloff/source/draw/ximpgrp.cxx')
-rw-r--r-- | xmloff/source/draw/ximpgrp.cxx | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/xmloff/source/draw/ximpgrp.cxx b/xmloff/source/draw/ximpgrp.cxx index 98cc3c524bb4..bd4fe98310a8 100644 --- a/xmloff/source/draw/ximpgrp.cxx +++ b/xmloff/source/draw/ximpgrp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ximpgrp.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: cl $ $Date: 2001-02-02 11:24:54 $ + * last change: $Author: cl $ $Date: 2001-04-30 14:29:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,14 +61,26 @@ #pragma hdrstop +#ifndef _XMLOFF_XMLNMSPE_HXX +#include"xmlnmspe.hxx" +#endif + #ifndef _XIMPGROUP_HXX #include "ximpgrp.hxx" #endif +#ifndef _XMLOFF_XMLKYWD_HXX +#include "xmlkywd.hxx" +#endif + #ifndef _XIMPSHAPE_HXX #include "ximpshap.hxx" #endif +#ifndef _XMLOFF_EVENTIMP_HXX +#include "eventimp.hxx" +#endif + using namespace ::rtl; using namespace ::com::sun::star; @@ -99,9 +111,16 @@ SvXMLImportContext* SdXMLGroupShapeContext::CreateChildContext( USHORT nPrefix, { SvXMLImportContext* pContext = 0L; - // call GroupChildContext function at common ShapeImport - pContext = GetImport().GetShapeImport()->CreateGroupChildContext( - GetImport(), nPrefix, rLocalName, xAttrList, mxChilds); + if( nPrefix == XML_NAMESPACE_OFFICE && rLocalName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( sXML_events ) ) ) + { + pContext = new SdXMLEventsContext( GetImport(), nPrefix, rLocalName, xAttrList, mxShape ); + } + else + { + // call GroupChildContext function at common ShapeImport + pContext = GetImport().GetShapeImport()->CreateGroupChildContext( + GetImport(), nPrefix, rLocalName, xAttrList, mxChilds); + } // call parent when no own context was created if(!pContext) |