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#ifndef __com_sun_star_animations_AnimationCalcMode_idl__
24#define __com_sun_star_animations_AnimationCalcMode_idl__
25
26//=============================================================================
27
28 module com {  module sun {  module star {  module animations {
29
30//=============================================================================
31
32/** Specifies the interpolation mode for the animation.
33
34	@see <type>XAnimation</type>
35	@see http://www.w3.org/TR/smil20/animation.html#adef-calcMode
36	@see http://www.w3.org/TR/smil20/animation.html#adef-SplineAnimation-calcMode
37*/
38constants AnimationCalcMode
39{
40	/** This specifies that the animation function will jump from one value to the next without any interpolation.
41	*/
42	const short DISCRETE = 0;
43
44	/** Simple linear interpolation between values is used to calculate the animation function.
45		<br>
46        This is the default.
47	*/
48	const short LINEAR = 1;
49
50	/** Defines interpolation to produce an even pace of change across the animation.
51		<br>
52		This is only supported for values that define a linear numeric range, and
53		for which some notion of "distance" between points can be calculated
54		(e.g. position, width, height, etc.).
55	*/
56    const short PACED = 2;
57
58	/** Interpolates from one value in the values list to the next according to a
59		time function defined by a cubic Bezier spline. The points of the spline are
60		defined in the <member>KeyTimes</member> attribute, and the control points
61		for each interval are defined in the <member>KeySplines</member> attribute.
62	*/
63	const short SPLINE = 3;
64};
65
66//=============================================================================
67
68}; }; }; };
69
70#endif
71