diff options
Diffstat (limited to 'slideshow/source/engine/animationnodes/animationsetnode.cxx')
-rw-r--r-- | slideshow/source/engine/animationnodes/animationsetnode.cxx | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/slideshow/source/engine/animationnodes/animationsetnode.cxx b/slideshow/source/engine/animationnodes/animationsetnode.cxx index b09e5d041889..5bf744ecb8ff 100644 --- a/slideshow/source/engine/animationnodes/animationsetnode.cxx +++ b/slideshow/source/engine/animationnodes/animationsetnode.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -57,7 +57,7 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const uno::Reference<animations::XAnimate> const xAnimateNode = getXAnimateNode(); rtl::OUString const attrName( xAnimateNode->getAttributeName() ); AttributableShapeSharedPtr const pShape( getShape() ); - + // make deactivation a two-step procedure. Normally, we // could solely rely on // BaseNode::scheduleDeactivationEvent() to deactivate() @@ -68,7 +68,7 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const // sequentiality by letting only the set activity schedule // the deactivation event (and AnimationBaseNode // takes care for the fact when mpActivity should be zero). - + // AnimationBaseNode::fillCommonParameters() has set up // immediate deactivation as default when activity ends, but if (! isIndefiniteTiming( xAnimateNode->getDuration() )) { @@ -81,7 +81,7 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const pSelf ), "AnimationSetNode::implScheduleDeactivationEvent"); } - + switch (AnimationFactory::classifyAttributeName( attrName )) { default: case AnimationFactory::CLASS_UNKNOWN_PROPERTY: @@ -89,22 +89,22 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const false, "AnimationSetNode::createSetActivity(): " "Unexpected attribute class" ); break; - + case AnimationFactory::CLASS_NUMBER_PROPERTY: { NumberAnimation::ValueType aValue; - + ENSURE_OR_THROW( - extractValue( aValue, - xAnimateNode->getTo(), - pShape, + extractValue( aValue, + xAnimateNode->getTo(), + pShape, getSlideSize() ), "AnimationSetNode::createSetActivity(): " "Could not import numeric to value" ); - + return makeSetActivity( aParms, - AnimationFactory::createNumberPropertyAnimation( + AnimationFactory::createNumberPropertyAnimation( attrName, pShape, getContext().mpSubsettableShapeManager, @@ -112,22 +112,22 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const AnimationFactory::FLAG_NO_SPRITE ), aValue ); } - + case AnimationFactory::CLASS_ENUM_PROPERTY: { EnumAnimation::ValueType aValue; - + ENSURE_OR_THROW( - extractValue( aValue, - xAnimateNode->getTo(), - pShape, + extractValue( aValue, + xAnimateNode->getTo(), + pShape, getSlideSize() ), "AnimationSetNode::createSetActivity(): " "Could not import enum to value" ); - + return makeSetActivity( aParms, - AnimationFactory::createEnumPropertyAnimation( + AnimationFactory::createEnumPropertyAnimation( attrName, pShape, getContext().mpSubsettableShapeManager, @@ -135,22 +135,22 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const AnimationFactory::FLAG_NO_SPRITE ), aValue ); } - + case AnimationFactory::CLASS_COLOR_PROPERTY: { ColorAnimation::ValueType aValue; - + ENSURE_OR_THROW( - extractValue( aValue, - xAnimateNode->getTo(), - pShape, + extractValue( aValue, + xAnimateNode->getTo(), + pShape, getSlideSize() ), "AnimationSetNode::createSetActivity(): " "Could not import color to value" ); - + return makeSetActivity( aParms, - AnimationFactory::createColorPropertyAnimation( + AnimationFactory::createColorPropertyAnimation( attrName, pShape, getContext().mpSubsettableShapeManager, @@ -158,22 +158,22 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const AnimationFactory::FLAG_NO_SPRITE ), aValue ); } - + case AnimationFactory::CLASS_STRING_PROPERTY: { StringAnimation::ValueType aValue; - + ENSURE_OR_THROW( - extractValue( aValue, - xAnimateNode->getTo(), - pShape, + extractValue( aValue, + xAnimateNode->getTo(), + pShape, getSlideSize() ), "AnimationSetNode::createSetActivity(): " "Could not import string to value" ); - + return makeSetActivity( aParms, - AnimationFactory::createStringPropertyAnimation( + AnimationFactory::createStringPropertyAnimation( attrName, pShape, getContext().mpSubsettableShapeManager, @@ -181,22 +181,22 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const AnimationFactory::FLAG_NO_SPRITE ), aValue ); } - + case AnimationFactory::CLASS_BOOL_PROPERTY: { BoolAnimation::ValueType aValue; - + ENSURE_OR_THROW( - extractValue( aValue, - xAnimateNode->getTo(), - pShape, + extractValue( aValue, + xAnimateNode->getTo(), + pShape, getSlideSize() ), "AnimationSetNode::createSetActivity(): " "Could not import bool to value" ); - + return makeSetActivity( aParms, - AnimationFactory::createBoolPropertyAnimation( + AnimationFactory::createBoolPropertyAnimation( attrName, pShape, getContext().mpSubsettableShapeManager, @@ -205,7 +205,7 @@ AnimationActivitySharedPtr AnimationSetNode::createActivity() const aValue ); } } - + return AnimationActivitySharedPtr(); } |