diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-10-19 11:21:49 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-10-19 11:21:49 +0000 |
commit | 38b0b297ae4a739f2e4ce689ceabbc6a770e7a87 (patch) | |
tree | 46f72db915fac29577127fb3f58c1f41fc701974 /xmloff/source/draw/animationimport.cxx | |
parent | 47fa4448eb7fbb5a4119bdccb9a684d198ada55b (diff) |
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
Diffstat (limited to 'xmloff/source/draw/animationimport.cxx')
-rw-r--r-- | xmloff/source/draw/animationimport.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
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 ); } @@ -860,6 +862,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 { const sal_Int16 nNodeType = mxNode->getType(); |