1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_animations_XAnimate_idl__
29 #define __com_sun_star_animations_XAnimate_idl__
31 #include
<com
/sun
/star
/animations
/XAnimationNode.idl
>
32 #include
<com
/sun
/star
/animations
/TimeFilterPair.idl
>
34 //=============================================================================
36 module com
{ module sun
{ module star
{ module animations
{
38 //=============================================================================
40 /** Interface for generic animation.
42 @see http://www.w3.org/TR/smil20/animation.html#edef-animate
44 interface XAnimate
: XAnimationNode
46 /** This attribute specifies the target element to be animated.
48 See documentation of used animation engine for supported targets.
50 [attribute
] any Target
;
52 /** This attribute specifies an optional subitem from the target element
53 that should be animated.
55 A value of zero should always be the default and animate the complete target.
57 See documentation of used animation engine for supported subitems.
59 [attribute
] short SubItem
;
61 /** Specifies the target attribute.
63 @see http://www.w3.org/TR/smil20/animation.html#adef-attributeName
65 [attribute
] string AttributeName
;
67 /** A sequence of one or more values, each of which must be a legal value for
68 the specified attribute.
70 @see http://www.w3.org/TR/smil20/animation.html#adef-values
72 [attribute
] sequence
< any
> Values
;
76 [attribute
] sequence
< double > KeyTimes
;
79 @see AnimationValueType
81 [attribute
] short ValueType
;
83 /** Specifies the interpolation mode for the animation.
85 If the target attribute does not support linear interpolation (e.g. for strings),
86 or if the values attribute has only one value, the CalcMode attribute is ignored
87 and discrete interpolation is used.
89 @see AnimationCalcMode;
91 [attribute
] short CalcMode
;
93 /** Controls whether or not the animation is cumulative.
95 @see http://www.w3.org/TR/smil20/animation.html#adef-accumulate
97 [attribute
] boolean Accumulate
;
99 /** Controls whether or not the animation is additive.
101 @see AnimationAdditiveMode
102 @see http://www.w3.org/TR/smil20/animation.html#adef-additive
104 [attribute
] short Additive
;
106 /** Specifies the starting value of the animation.
108 Must be a legal value for the specified attribute.
109 Ignored if the <member>Values</member> attribute is specified.
111 @see http://www.w3.org/TR/smil20/animation.html#adef-from
113 [attribute
] any From
;
115 /** Specifies the ending value of the animation.
117 Must be a legal value for the specified attribute.
118 Ignored if the <member>Values</member> attribute is specified.
120 @see http://www.w3.org/TR/smil20/animation.html#adef-to
124 /** Specifies a relative offset value for the animation.
126 Must be a legal value of a domain for which addition to the attributeType
127 domain is defined and which yields a value in the attributeType domain.
128 Ignored if the values attribute is specified.
129 Ignored if the <member>Values</member> attribute is specified.
131 @see http://www.w3.org/TR/smil20/animation.html#adef-by
135 /** todo: timeFilter="0,0; 0.14,0.36; 0.43,0.73; 0.71,0.91; 1.0,1.0" ?
137 [attribute
] sequence
< TimeFilterPair
> TimeFilter
;
139 /** if this string is set, its contents will be parsed as a formula.
140 All values are used as a parameter for this formula and the computed
143 [attribute
] string Formula
;
146 //=============================================================================
152 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */