bump product version to 4.1.6.2
[LibreOffice.git] / oox / source / ppt / conditioncontext.hxx
blob12df6964dd069eb48a59cf1121a21d1f5161ad11
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #ifndef OOX_PPT_CONDITIONCONTEXT
22 #define OOX_PPT_CONDITIONCONTEXT
24 #include <com/sun/star/uno/Any.hxx>
25 #include <com/sun/star/animations/Event.hpp>
27 #include "oox/core/fragmenthandler.hxx"
28 #include "oox/ppt/timenode.hxx"
29 #include "oox/ppt/timenodelistcontext.hxx"
30 #include "oox/ppt/animationspersist.hxx"
32 namespace oox { namespace ppt {
35 /** CT_TLTimeCondition */
36 class CondContext
37 : public TimeNodeContext
39 public:
40 CondContext( ::oox::core::FragmentHandler2& rParent,
41 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs,
42 const TimeNodePtr & pNode, AnimationCondition & aCond );
43 ~CondContext( ) throw( );
44 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs );
46 private:
47 ::com::sun::star::animations::Event maEvent;
48 AnimationCondition & maCond;
53 /** CT_TLTimeConditionList */
54 class CondListContext
55 : public TimeNodeContext
57 public:
58 CondListContext( ::oox::core::FragmentHandler2& rParent,
59 sal_Int32 aElement,
60 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs,
61 const TimeNodePtr & pNode, AnimationConditionList & aCondList );
62 ~CondListContext( ) throw( );
64 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs );
66 private:
67 AnimationConditionList & maConditions;
71 } }
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */