Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / animations / AnimationCalcMode.idl
blob72813a94f12c58c9961febee998a0dce8279aa00
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: AnimationCalcMode.idl,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_animations_AnimationCalcMode_idl__
31 #define __com_sun_star_animations_AnimationCalcMode_idl__
33 //=============================================================================
35 module com { module sun { module star { module animations {
37 //=============================================================================
39 /** Specifies the interpolation mode for the animation.
41 @see <type>XAnimation</type>
42 @see http://www.w3.org/TR/smil20/animation.html#adef-calcMode
43 @see http://www.w3.org/TR/smil20/animation.html#adef-SplineAnimation-calcMode
45 constants AnimationCalcMode
47 /** This specifies that the animation function will jump from one value to the next without any interpolation.
49 const short DISCRETE = 0;
51 /** Simple linear interpolation between values is used to calculate the animation function.
52 <br>
53 This is the default.
55 const short LINEAR = 1;
57 /** Defines interpolation to produce an even pace of change across the animation.
58 <br>
59 This is only supported for values that define a linear numeric range, and
60 for which some notion of "distance" between points can be calculated
61 (e.g. position, width, height, etc.).
63 const short PACED = 2;
65 /** Interpolates from one value in the values list to the next according to a
66 time function defined by a cubic Bezier spline. The points of the spline are
67 defined in the <member>KeyTimes</member> attribute, and the control points
68 for each interval are defined in the <member>KeySplines</member> attribute.
70 const short SPLINE = 3;
73 //=============================================================================
75 }; }; }; };
77 #endif