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#ifndef __com_sun_star_rendering_AnimationRepeat_idl__
28#define __com_sun_star_rendering_AnimationRepeat_idl__
29
30module com { module sun { module star { module rendering {
31
32/** This are the possible repeat modes for animations.<p>
33
34	These constants determine how the [0,1] parameter range of the
35	animation is driven through, thus defining the possible repeat
36	modes.<p>
37
38    @since OOo 2.0
39 */
40constants AnimationRepeat
41{
42    /** The [0,1] parameter range is sweeped through exactly once.<p>
43
44    	The [0,1] parameter range is sweeped through exactly once,
45    	starting with 0 and ending with 1.<p>
46    */
47    const byte ONE_SHOT=0;
48
49	//-------------------------------------------------------------------------
50
51    /** The [0,1] parameter range is sweeped through exactly twice.<p>
52
53    	The [0,1] parameter range is sweeped through exactly twice,
54    	starting with 0, going to 1, and going back to 0. When
55    	plotting the value over time, this yields a triangle curve.<p>
56    */
57    const byte ONE_SHOT_PINGPONG=1;
58
59	//-------------------------------------------------------------------------
60
61    /** The [0,1] parameter range is sweeped through infinitely.<p>
62
63    	The [0,1] parameter range is sweeped through infinitely,
64    	starting with 0, going to 1, and going back to 0, and then
65    	starting again. When plotting the value over time, this yields
66    	a repeated triangle curve.<p>
67    */
68    const byte PINGPONG=2;
69
70	//-------------------------------------------------------------------------
71
72    /** The [0,1] parameter range is sweeped through infinitely.<p>
73
74    	The [0,1] parameter range is sweeped through infinitely,
75    	starting with 0, going to 1, and starting with 0 again. When
76    	plotting the value over time, this yields a repeated saw-tooth
77    	curve.<p>
78    */
79    const byte REPEAT=3;
80};
81
82}; }; }; };
83
84#endif
85