diff options
author | Noel Grandin <noel@peralex.com> | 2013-04-23 16:04:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-04-25 08:56:38 +0200 |
commit | 378c038918ca6c7adecf73f49e627c75ebd0e43a (patch) | |
tree | 35a5807008bd212488c47874f45eac4585713f84 /sd/source/ui/unoidl | |
parent | 3086d847d9ac8dbb228c10047fd7ecaa32a45263 (diff) |
fdo#46808 Convert animations::ParallelTimeContainer to new style
Change-Id: Iac6337828c807a132e561b5e9017a708be2e9729
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/randomnode.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sd/source/ui/unoidl/randomnode.cxx b/sd/source/ui/unoidl/randomnode.cxx index ee3c74b15e4d..a18fd1c22619 100644 --- a/sd/source/ui/unoidl/randomnode.cxx +++ b/sd/source/ui/unoidl/randomnode.cxx @@ -23,6 +23,7 @@ #include <com/sun/star/animations/AnimationFill.hpp> #include <com/sun/star/animations/XAnimate.hpp> #include <com/sun/star/animations/AnimationRestart.hpp> +#include <com/sun/star/animations/ParallelTimeContainer.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/container/XEnumerationAccess.hpp> @@ -597,13 +598,8 @@ Reference< XEnumeration > SAL_CALL RandomAnimationNode::createEnumeration() else { // no presets? give empty node! - Reference< XMultiServiceFactory > xServiceFactory( comphelper::getProcessServiceFactory() ); - Reference< XEnumerationAccess > aEmptyEnumAccess( - xServiceFactory->createInstance( "com.sun.star.animations.ParallelTimeContainer" ), - UNO_QUERY ); - - if( aEmptyEnumAccess.is() ) - xEnum = aEmptyEnumAccess->createEnumeration(); + Reference< XParallelTimeContainer > xTimeContainer = ParallelTimeContainer::create( comphelper::getProcessComponentContext() ); + xEnum = xTimeContainer->createEnumeration(); } return xEnum; |