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_XAnimationNode_idl__
29 #define __com_sun_star_animations_XAnimationNode_idl__
31 #include
<com
/sun
/star
/container
/XChild.idl
>
32 #include
<com
/sun
/star
/beans
/NamedValue.idl
>
34 //=============================================================================
36 module com
{ module sun
{ module star
{ module animations
{
38 //=============================================================================
42 interface XAnimationNode
: ::com
::sun
::star
::container
::XChild
44 /** a value from <const>AnimationNodeType</const>.
46 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-timeContainer
48 [readonly, attribute
] short Type
;
50 /** a sequence of values that define the beginning of this element
52 <member>Begin</member> is
54 <li><atom>double</atom> describes the element begin as an offset in seconds from an implicit syncbase.
55 The definition of the implicit syncbase depends upon the element's parent time container.
56 The offset is measured in parent simple time.</li>
57 <li><type>Event</type> describes an event and an optional offset that determine the
58 element begin. The element begin is defined relative to the time that the event
60 <li><const>Timing::INDEFINITE</const> the begin of the element will be determined by an
61 external event to the element.</li>
62 <li><type>sequence<any></type> a sequence of values described above if more than
63 one begin value is defined for this element.</li>
64 <li><void/> if no begin behavior is defined for this element.</li>
67 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-begin
69 [attribute
] any Begin
;
71 /** defines the length of the simple duration.
73 <member>Duration</member> is
75 <li><atom>double</atom> specifies the length of the simple duration in seconds.</li>
76 <li><const>Timing::INDEFINITE</const> specifies the simple duration as indefinite.</li>
77 <li><const>Timing::MEDIA</const> specifies the simple duration as the intrinsic media duration. This is only valid for elements that define media.</li>
78 <li><void/> the simple duration for the element is defined to be the implicit duration of the element.</li>
81 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-dur
83 [attribute
] any Duration
;
85 /** a sequence of values that define the ending of this element
87 <member>End</member> is
89 <li><atom>double</atom> describes the element end as an offset in seconds from an implicit syncbase.
90 The definition of the implicit syncbase depends upon the element's parent time container.
91 The offset is measured in parent simple time.</li>
92 <li><type>Event</type> describes an event and an optional offset that determine the
93 element end. The element end is defined relative to the time that the event
95 <li><const>Timing::INDEFINITE</const> the end of the element will be determined by an
96 external event to the element.</li>
97 <li><type>sequence<any></type> a sequence of values described above if more than
98 one begin value is defined for this element.</li>
99 <li><void/> if no end behavior is defined for this element.</li>
102 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-end
106 /** controls the implicit duration of time containers,
107 as a function of the children.
109 The EndSync attribute is only valid for
110 par and excl time container elements, and media elements with timed
111 children (e.g. animate or area elements).
113 <member>EndSync</member> is
114 either a <atom>short</atom> constant from <const>EndSync</const>,
115 an interface reference to a child <type>XTimeContainer</type>
118 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-endsync
120 [attribute
] any EndSync
;
122 /** the number of iterations of the simple duration.
124 <member>RepeatCount</member> is
126 <li><atom>double</atom>
127 this is a numeric value that specifies the number of iterations.
128 It can include partial iterations expressed as fraction values.
129 A fractional value describes a portion of the simple duration.
130 Values must be greater than 0.</li>
131 <li><const>Timing::INDEFINITE</const> the element is defined to repeat indefinitely
132 (subject to the constraints of the parent time container).</li>
134 no repeat count is defined for this element.</li>
137 @see <const>EndSync</const>
138 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-repeatCount
140 [attribute
] any RepeatCount
;
142 /** the total duration for repeat.
144 <member>RepeatDuration</member> is
146 <li><atom>double</atom>
147 specifies the duration in element active time
148 to repeat the simple duration in seconds.</li>
149 <li><const>Timing::INDEFINITE</const> the element is defined to repeat indefinitely
150 (subject to the constraints of the parent time container).</li>
152 No repeat duration is defined for this element. </li>
155 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-repeatDur
157 [attribute
] any RepeatDuration
;
159 /** the attribute that specify the behavior how an element
160 should be extended beyond the active duration by freezing the final
161 state of the element.
163 <member>Fill</member> is
164 a value from <const>AnimationFill</const>.
166 @see <const>Fill</const>
167 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-fill
169 [attribute
] short Fill
;
171 /** the default value for the fill behavior for this element and all
174 <member>FillDefault</member> is
176 <li>The values <const>AnimationFill::REMOVE</const>, <const>AnimationFill::FREEZE</const>,
177 <const>AnimationFill::HOLD</const>, <const>AnimationFill::TRANSITION</const> and <const>AnimationFill::AUTO</const>
178 specify that the element fill behavior is the respective value.</li>
179 <li>The value <const>AnimationFill::INHERIT</const> specifies that the value of this attribute
180 (and of the fill behavior) are inherited from the <member>FillDefault</member> value of the parent
181 element. If there is no parent element, the value is <const>AnimationFill::AUTO</const>.</li>
184 @see <const>Fill</const>
185 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-fillDefault
187 [attribute
] short FillDefault
;
189 /** defines the restart behavior of this element.
191 <member>Restart</member> is
192 a <atom>short</atom> value from <const>AnimationRestart</const>.
194 @see <const>AnimationRestart</const>
195 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-restart
197 [attribute
] short Restart
;
199 /** defines the default restart behavior for this element and all descendants.
202 a value from <const>Restart</const>.
204 @see <const>AnimationRestart</const>
205 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-restartDefault
207 [attribute
] short RestartDefault
;
209 /** defines the acceleration for this element.
211 Element time will accelerate from a rate of 0 at the beginning up
212 to a run rate, over the course of the specified proportion of the
215 <member>Acceleration</member> is
216 a value between 0 (no acceleration) and 1 (acceleration until end
217 of the elements duration).
219 @see http://www.w3.org/TR/smil20/smil-timemanip.html#adef-accelerate
221 [attribute
] double Acceleration
;
223 /** defines the deceleration for this element.
224 Element time will deceleration from a run rate to a rate of 0 at the
225 ending, over the course of the specified proportion of the
228 <member>Decelerate</member> is
229 a value between 0 (no deceleration) and 1 (deceleration from beginning
230 of the elements duration).
232 @see http://www.w3.org/TR/smil20/smil-timemanip.html#adef-decelerate
234 [attribute
] double Decelerate
;
236 /** defines the auto reverse settings for this element.
238 <member>AutoRevers</member> is
240 <li><false/> if the animation is played normal.</li>
241 <li><true/> if the animation is played forwards and then backwards. This doubles the duration</li>
244 @see http://www.w3.org/TR/smil20/smil-timemanip.html#adef-autoReverse
246 [attribute
] boolean AutoReverse
;
250 [attribute
] sequence
< ::com
::sun
::star
::beans
::NamedValue
> UserData
;
253 //=============================================================================
259 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */