From b8183958e6b5367eeebd5d07fa5f26561fa1dc4a Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Fri, 28 Feb 2014 02:22:12 -0300 Subject: fdo#60698: Split out slideshow code from animations Also remove the TargetPropertiesCreator service since just slideshow uses this. Change-Id: I80816f6225b7bd9fb18f48e69eb5dfd6709b6e56 --- include/animations/animationnodehelper.hxx | 44 ------------------------------ 1 file changed, 44 deletions(-) (limited to 'include/animations') diff --git a/include/animations/animationnodehelper.hxx b/include/animations/animationnodehelper.hxx index d6f000d5dd40..840dadd7b683 100644 --- a/include/animations/animationnodehelper.hxx +++ b/include/animations/animationnodehelper.hxx @@ -36,50 +36,6 @@ namespace anim // only a function pointer, and a thin templated wrapper around // that which converts member functions into that. - /** Apply given functor to every animation node child. - - @param xNode - Parent node - - @param rFunctor - Functor to apply. The functor must have an appropriate - operator()( const ::com::sun::star::uno::Reference< - ::com::sun::star::animations::XAnimationNode >& ) member. - - @return true, if the functor was successfully applied to - all children, false otherwise. - */ - template< typename Functor > inline bool for_each_childNode( const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode, - Functor& rFunctor ) - { - try - { - // get an XEnumerationAccess to the children - ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumerationAccess > - xEnumerationAccess( xNode, - ::com::sun::star::uno::UNO_QUERY_THROW ); - ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > - xEnumeration( xEnumerationAccess->createEnumeration(), - ::com::sun::star::uno::UNO_QUERY_THROW ); - - while( xEnumeration->hasMoreElements() ) - { - ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode > - xChildNode( xEnumeration->nextElement(), - ::com::sun::star::uno::UNO_QUERY_THROW ); - - rFunctor( xChildNode ); - } - - return true; - } - catch( ::com::sun::star::uno::Exception& ) - { - return false; - } - } - - /** pushes the given node to the given vector and recursivly calls itself for each child node. */ inline void create_deep_vector( const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode, -- cgit