merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / animations / XAnimate.idl
blob3cf255e38b20c1dc353821a4a7f665b0e7637938
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: XAnimate.idl,v $
10 * $Revision: 1.5 $
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_XAnimate_idl__
31 #define __com_sun_star_animations_XAnimate_idl__
33 #ifndef __com_sun_star_animations_XAnimationNode_idl__
34 #include <com/sun/star/animations/XAnimationNode.idl>
35 #endif
37 #ifndef __com_sun_star_animations_TimeFilterPair_idl__
38 #include <com/sun/star/animations/TimeFilterPair.idl>
39 #endif
41 //=============================================================================
43 module com { module sun { module star { module animations {
45 //=============================================================================
47 /** Interface for generic animation.
49 @see http://www.w3.org/TR/smil20/animation.html#edef-animate
51 interface XAnimate : XAnimationNode
53 /** This attribute specifies the target element to be animated.
54 <br>
55 See documentation of used animation engine for supported targets.
57 [attribute] any Target;
59 /** This attribute specifies an optional subitem from the target element
60 that should be animated.
61 <br>
62 A value of zero should always be the default and animate the complete target.
63 <br>
64 See documentation of used animation engine for supported subitems.
66 [attribute] short SubItem;
68 /** Specifies the target attribute.
70 @see http://www.w3.org/TR/smil20/animation.html#adef-attributeName
72 [attribute] string AttributeName;
74 /** A sequence of one or more values, each of which must be a legal value for
75 the specified attribute.
77 @see http://www.w3.org/TR/smil20/animation.html#adef-values
79 [attribute] sequence< any > Values;
81 /**
83 [attribute] sequence< double > KeyTimes;
85 /**
86 @see AnimationValueType
88 [attribute] short ValueType;
90 /** Specifies the interpolation mode for the animation.
91 <br>
92 If the target attribute does not support linear interpolation (e.g. for strings),
93 or if the values attribute has only one value, the CalcMode attribute is ignored
94 and discrete interpolation is used.
96 @see AnimationCalcMode;
98 [attribute] short CalcMode;
100 /** Controls whether or not the animation is cumulative.
102 @see http://www.w3.org/TR/smil20/animation.html#adef-accumulate
104 [attribute] boolean Accumulate;
106 /** Controls whether or not the animation is additive.
108 @see AnimationAdditiveMode
109 @see http://www.w3.org/TR/smil20/animation.html#adef-additive
111 [attribute] short Additive;
113 /** Specifies the starting value of the animation.
114 <br>
115 Must be a legal value for the specified attribute.
116 Ignored if the <member>Values</member> attribute is specified.
118 @see http://www.w3.org/TR/smil20/animation.html#adef-from
120 [attribute] any From;
122 /** Specifies the ending value of the animation.
123 <br>
124 Must be a legal value for the specified attribute.
125 Ignored if the <member>Values</member> attribute is specified.
127 @see http://www.w3.org/TR/smil20/animation.html#adef-to
129 [attribute] any To;
131 /** Specifies a relative offset value for the animation.
132 <br>
133 Must be a legal value of a domain for which addition to the attributeType
134 domain is defined and which yields a value in the attributeType domain.
135 Ignored if the values attribute is specified.
136 Ignored if the <member>Values</member> attribute is specified.
138 @see http://www.w3.org/TR/smil20/animation.html#adef-by
140 [attribute] any By;
142 /** todo: timeFilter="0,0; 0.14,0.36; 0.43,0.73; 0.71,0.91; 1.0,1.0" ?
144 [attribute] sequence< TimeFilterPair > TimeFilter;
146 /** if this string is set, its contents will be parsed as a formula.
147 All values are used as a parameter for this formula and the computet
148 result will be used.
150 [attribute] string Formula;
153 //=============================================================================
155 }; }; }; };
157 #endif