From 38b0b297ae4a739f2e4ce689ceabbc6a770e7a87 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Wed, 19 Oct 2005 11:21:49 +0000 Subject: INTEGRATION: CWS cov2src (1.5.30); FILE MERGED 2005/10/19 09:32:18 rt 1.5.30.1: #126234# Join MWS COV680 m4 into SRC680 --- xmloff/source/draw/animationimport.cxx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'xmloff/source/draw/animationimport.cxx') diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx index 11136cd9cb25..dee58f162ea6 100644 --- a/xmloff/source/draw/animationimport.cxx +++ b/xmloff/source/draw/animationimport.cxx @@ -4,9 +4,9 @@ * * $RCSfile: animationimport.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-09 13:43:08 $ + * last change: $Author: rt $ $Date: 2005-10-19 12:21:49 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -841,6 +841,8 @@ AnimationNodeContext::AnimationNodeContext( xInit->initialize( aArgs ); } + init_node( xAttrList ); + Reference< XTimeContainer > xParentContainer( xParentNode, UNO_QUERY_THROW ); xParentContainer->appendChild( mxNode ); } @@ -859,6 +861,14 @@ AnimationNodeContext::~AnimationNodeContext() } void AnimationNodeContext::StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList ) +{ + // code of StartElement is moved to init_node that is now called + // in c'tor before appending this node to its parent. + // This is needed for random nodes that need the correct target + // set when child nodes are appended. +} + +void AnimationNodeContext::init_node( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList ) { if( mxNode.is() ) try { -- cgit