diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2014-02-28 02:22:12 -0300 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-03-10 09:15:54 +0100 |
commit | b8183958e6b5367eeebd5d07fa5f26561fa1dc4a (patch) | |
tree | 09260dc7a6255394f5eb4f31d84c8027d7f519ca /slideshow/source/engine/slide/slideimpl.cxx | |
parent | 1349f49a72be947aa708e7bcbc7de773894c5684 (diff) |
fdo#60698: Split out slideshow code from animations
Also remove the TargetPropertiesCreator service since just slideshow uses this.
Change-Id: I80816f6225b7bd9fb18f48e69eb5dfd6709b6e56
Diffstat (limited to 'slideshow/source/engine/slide/slideimpl.cxx')
-rw-r--r-- | slideshow/source/engine/slide/slideimpl.cxx | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx index 1ba3723d2459..08ccce20a810 100644 --- a/slideshow/source/engine/slide/slideimpl.cxx +++ b/slideshow/source/engine/slide/slideimpl.cxx @@ -39,11 +39,8 @@ #include <com/sun/star/presentation/ParagraphTarget.hpp> #include <com/sun/star/presentation/EffectNodeType.hpp> #include <com/sun/star/animations/XAnimationNodeSupplier.hpp> -#include <com/sun/star/animations/XTargetPropertiesCreator.hpp> #include <com/sun/star/drawing/TextAnimationKind.hpp> -#include <animations/animationnodehelper.hxx> - #include <cppuhelper/exc_hlp.hxx> #include <comphelper/anytostring.hxx> @@ -62,6 +59,7 @@ #include "usereventqueue.hxx" #include "userpaintoverlay.hxx" #include "event.hxx" +#include "targetpropertiescreator.hxx" #include "tools.hxx" #include <o3tl/compat_functional.hxx> @@ -849,7 +847,7 @@ bool SlideImpl::implPrefetchShow() // don't block nextEvent() from issuing the next // slide) MainSequenceSearcher aSearcher; - if( ::anim::for_each_childNode( mxRootNode, aSearcher ) ) + if( for_each_childNode( mxRootNode, aSearcher ) ) mbMainSequenceFound = aSearcher.getMainSequence().is(); // import successfully done @@ -966,44 +964,8 @@ bool SlideImpl::applyInitialShapeAttributes( // succeeded } - uno::Reference< animations::XTargetPropertiesCreator > xPropsCreator; - - try - { - ENSURE_OR_RETURN_FALSE( maContext.mxComponentContext.is(), - "SlideImpl::applyInitialShapeAttributes(): Invalid component context" ); - - uno::Reference<lang::XMultiComponentFactory> xFac( - maContext.mxComponentContext->getServiceManager() ); - - xPropsCreator.set( - xFac->createInstanceWithContext( - OUString( - "com.sun.star.animations.TargetPropertiesCreator"), - maContext.mxComponentContext ), - uno::UNO_QUERY_THROW ); - } - catch( uno::RuntimeException& ) - { - throw; - } - catch( uno::Exception& ) - { - OSL_FAIL( - OUStringToOString( - comphelper::anyToString(cppu::getCaughtException()), - RTL_TEXTENCODING_UTF8).getStr() ); - - // could not determine initial shape attributes - this - // is an error, as some effects might then be plainly - // invisible - ENSURE_OR_RETURN_FALSE( false, - "SlideImpl::applyInitialShapeAttributes(): " - "couldn't create TargetPropertiesCreator." ); - } - uno::Sequence< animations::TargetProperties > aProps( - xPropsCreator->createInitialTargetProperties( xRootAnimationNode ) ); + TargetPropertiesCreator::createInitialTargetProperties( xRootAnimationNode ) ); // apply extracted values to our shapes const ::std::size_t nSize( aProps.getLength() ); |