1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef INCLUDED_SLIDESHOW_ANIMATIONNODEFACTORY_HXX 29 #define INCLUDED_SLIDESHOW_ANIMATIONNODEFACTORY_HXX 30 31 #include <com/sun/star/uno/Reference.hxx> 32 #include <com/sun/star/uno/XComponentContext.hpp> 33 #include <com/sun/star/animations/XAnimationNode.hpp> 34 35 #include "subsettableshapemanager.hxx" 36 #include "animationnode.hxx" 37 #include "slideshowcontext.hxx" 38 #include "eventqueue.hxx" 39 #include "activitiesqueue.hxx" 40 #include "usereventqueue.hxx" 41 42 #include <boost/noncopyable.hpp> 43 #include <vector> 44 45 46 namespace slideshow 47 { 48 namespace internal 49 { 50 /* Definition of AnimationNodeFactory class */ 51 52 class AnimationNodeFactory : private boost::noncopyable 53 { 54 public: 55 /** Create an AnimatioNode for the given XAnimationNode 56 */ 57 static AnimationNodeSharedPtr createAnimationNode( const ::com::sun::star::uno::Reference< 58 ::com::sun::star::animations::XAnimationNode >& xNode, 59 const ::basegfx::B2DVector& rSlideSize, 60 const SlideShowContext& rContext ); 61 62 63 #if defined(VERBOSE) && defined(DBG_UTIL) 64 static void showTree( AnimationNodeSharedPtr& pRootNode ); 65 # define SHOW_NODE_TREE(a) AnimationNodeFactory::showTree(a) 66 #else 67 # define SHOW_NODE_TREE(a) 68 #endif 69 70 private: 71 // default: constructor/destructor disabled 72 AnimationNodeFactory(); 73 ~AnimationNodeFactory(); 74 }; 75 } 76 } 77 78 #endif /* INCLUDED_SLIDESHOW_ANIMATIONNODEFACTORY_HXX */ 79