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 /include/animations | |
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 'include/animations')
-rw-r--r-- | include/animations/animationnodehelper.hxx | 44 |
1 files changed, 0 insertions, 44 deletions
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, |