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 
29 #ifndef OOX_PPT_CONDITIONCONTEXT
30 #define OOX_PPT_CONDITIONCONTEXT
31 
32 #include <com/sun/star/uno/Any.hxx>
33 #include <com/sun/star/animations/Event.hpp>
34 
35 #include "oox/core/fragmenthandler.hxx"
36 #include "oox/ppt/timenode.hxx"
37 #include "oox/ppt/timenodelistcontext.hxx"
38 #include "oox/ppt/animationspersist.hxx"
39 
40 namespace oox { namespace ppt {
41 
42 
43 	/** CT_TLTimeCondition */
44 	class CondContext
45 		: public TimeNodeContext
46 	{
47 	public:
48         CondContext( ::oox::core::ContextHandler& rParent,
49 					 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs,
50 					 const TimeNodePtr & pNode, AnimationCondition & aCond );
51 		~CondContext( ) throw( );
52 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 aElementToken, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs ) throw ( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
53 
54 	private:
55 //		::com::sun::star::uno::Any &         maCond;
56 		::com::sun::star::animations::Event  maEvent;
57 //		AnimTargetElementPtr         mpTarget;
58 		AnimationCondition &                 maCond;
59 	};
60 
61 
62 
63 	/** CT_TLTimeConditionList */
64 	class CondListContext
65 		: public TimeNodeContext
66 	{
67 	public:
68         CondListContext( ::oox::core::ContextHandler& rParent,
69              sal_Int32  aElement,
70              const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs,
71              const TimeNodePtr & pNode, AnimationConditionList & aCondList );
72 		~CondListContext( ) throw( );
73 
74 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 aElementToken, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& /*xAttribs*/ ) throw ( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
75 
76 	private:
77 		AnimationConditionList     & maConditions;
78 	};
79 
80 
81 } }
82 
83 
84 #endif
85