1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef INCLUDED_SLIDESHOW_INTRINSICANIMATIONACTIVITY_HXX 25 #define INCLUDED_SLIDESHOW_INTRINSICANIMATIONACTIVITY_HXX 26 27 #include "wakeupevent.hxx" 28 #include "activity.hxx" 29 #include "slideshowcontext.hxx" 30 #include "drawshape.hxx" 31 #include "tools.hxx" 32 33 /* Definition of IntrinsicAnimationActivity class */ 34 35 namespace slideshow 36 { 37 namespace internal 38 { 39 /** Create an IntrinsicAnimationActivity. 40 41 This is an Activity interface implementation for intrinsic 42 shape animations. Intrinsic shape animations are 43 animations directly within a shape, e.g. drawing layer 44 animations, or GIF animations. 45 46 @param rContext 47 Common slideshow objects 48 49 @param rDrawShape 50 Shape to control the intrinsic animation for 51 52 @param rWakeupEvent 53 Externally generated wakeup event, to set this 54 activity to sleep during inter-frame intervals. Must 55 come frome the outside, since wakeup event and this 56 object have mutual references to each other. 57 58 @param rTimeouts 59 Vector of timeout values, to wait before the next 60 frame is shown. 61 */ 62 ActivitySharedPtr createIntrinsicAnimationActivity( 63 const SlideShowContext& rContext, 64 const DrawShapeSharedPtr& rDrawShape, 65 const WakeupEventSharedPtr& rWakeupEvent, 66 const ::std::vector<double>& rTimeouts, 67 ::std::size_t nNumLoops, 68 CycleMode eCycleMode ); 69 } 70 } 71 72 #endif /* INCLUDED_SLIDESHOW_INTRINSICANIMATIONACTIVITY_HXX */ 73