1d1766043SAndrew Rist/************************************************************** 2d1766043SAndrew Rist * 3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5d1766043SAndrew Rist * distributed with this work for additional information 6d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10d1766043SAndrew Rist * 11d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12d1766043SAndrew Rist * 13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14d1766043SAndrew Rist * software distributed under the License is distributed on an 15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17d1766043SAndrew Rist * specific language governing permissions and limitations 18d1766043SAndrew Rist * under the License. 19d1766043SAndrew Rist * 20d1766043SAndrew Rist *************************************************************/ 21d1766043SAndrew Rist 22d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_animations_XAnimationNode_idl__ 24cdf0e10cSrcweir#define __com_sun_star_animations_XAnimationNode_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_container_XChild_idl__ 27cdf0e10cSrcweir#include <com/sun/star/container/XChild.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir#ifndef __com_sun_star_beans_NamedValue_idl__ 31cdf0e10cSrcweir#include <com/sun/star/beans/NamedValue.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir//============================================================================= 35cdf0e10cSrcweir 36cdf0e10cSrcweir module com { module sun { module star { module animations { 37cdf0e10cSrcweir 38cdf0e10cSrcweir//============================================================================= 39cdf0e10cSrcweir 40cdf0e10cSrcweir/** 41cdf0e10cSrcweir*/ 42cdf0e10cSrcweirpublished interface XAnimationNode : ::com::sun::star::container::XChild 43cdf0e10cSrcweir{ 44cdf0e10cSrcweir /** a value from <const>AnimationNodeType</const>. 45cdf0e10cSrcweir 46cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-timeContainer 47cdf0e10cSrcweir */ 48cdf0e10cSrcweir [readonly, attribute] short Type; 49cdf0e10cSrcweir 50*a893be29SPedro Giffuni /** a sequence of values that define the beginning of this element 51cdf0e10cSrcweir <br> 52cdf0e10cSrcweir <member>Begin</member> is 53cdf0e10cSrcweir <ul> 54cdf0e10cSrcweir <li><atom>double</atom> describes the element begin as an offset in seconds from an implicit syncbase. 55cdf0e10cSrcweir The definition of the implicit syncbase depends upon the element's parent time container. 56cdf0e10cSrcweir The offset is measured in parent simple time.</li> 57cdf0e10cSrcweir <li><type>Event</type> describes an event and an optional offset that determine the 58cdf0e10cSrcweir element begin. The element begin is defined relative to the time that the event 59cdf0e10cSrcweir is raised.</li> 60cdf0e10cSrcweir <li><const>Timing::INDEFINITE</const> the begin of the element will be determined by an 61cdf0e10cSrcweir external event to the element.</li> 62cdf0e10cSrcweir <li><type>sequence<any></type> a sequence of values described above if more than 63cdf0e10cSrcweir one begin value is defined for this element.</li> 64cdf0e10cSrcweir <li><void/> if no begin behaviour is defined for this element.</li> 65cdf0e10cSrcweir </ul> 66cdf0e10cSrcweir 67cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-begin 68cdf0e10cSrcweir */ 69cdf0e10cSrcweir [attribute] any Begin; 70cdf0e10cSrcweir 71cdf0e10cSrcweir /** defines the length of the simple duration. 72cdf0e10cSrcweir <br> 73cdf0e10cSrcweir <member>Duration</member> is 74cdf0e10cSrcweir <ul> 75cdf0e10cSrcweir <li><atom>double</atom> specifies the length of the simple duration in seconds.</li> 76cdf0e10cSrcweir <li><const>Timing::INDEFINITE</const> specifies the simple duration as indefinite.</li> 77cdf0e10cSrcweir <li><const>Timing::MEDIA</const> specifies the simple duration as the intrinsic media duration. This is only valid for elements that define media.</li> 78cdf0e10cSrcweir <li><void/> the simple duration for the element is defined to be the implicit duration of the element.</li> 79cdf0e10cSrcweir </ul> 80cdf0e10cSrcweir 81cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-dur 82cdf0e10cSrcweir */ 83cdf0e10cSrcweir [attribute] any Duration; 84cdf0e10cSrcweir 85cdf0e10cSrcweir /** a sequnece of values that define the ending of this element 86cdf0e10cSrcweir <br> 87cdf0e10cSrcweir <member>End</member> is 88cdf0e10cSrcweir <ul> 89cdf0e10cSrcweir <li><atom>double</atom> describes the element end as an offset in seconds from an implicit syncbase. 90cdf0e10cSrcweir The definition of the implicit syncbase depends upon the element's parent time container. 91cdf0e10cSrcweir The offset is measured in parent simple time.</li> 92cdf0e10cSrcweir <li><type>Event</type> describes an event and an optional offset that determine the 93cdf0e10cSrcweir element end. The element end is defined relative to the time that the event 94cdf0e10cSrcweir is raised.</li> 95cdf0e10cSrcweir <li><const>Timing::INDEFINITE</const> the end of the element will be determined by an 96cdf0e10cSrcweir external event to the element.</li> 97cdf0e10cSrcweir <li><type>sequence<any></type> a sequence of values described above if more than 98cdf0e10cSrcweir one begin value is defined for this element.</li> 99cdf0e10cSrcweir <li><void/> if no end behaviour is defined for this element.</li> 100cdf0e10cSrcweir </ul> 101cdf0e10cSrcweir 102cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-end 103cdf0e10cSrcweir */ 104cdf0e10cSrcweir [attribute] any End; 105cdf0e10cSrcweir 106cdf0e10cSrcweir /** controls the implicit duration of time containers, 107cdf0e10cSrcweir as a function of the children. 108cdf0e10cSrcweir <br> 109cdf0e10cSrcweir The endsync attribute is only valid for 110cdf0e10cSrcweir par and excl time container elements, and media elements with timed 111cdf0e10cSrcweir children (e.g. animate or area elements). 112cdf0e10cSrcweir 113cdf0e10cSrcweir <member>EndSync</member> is 114*a893be29SPedro Giffuni either a <atom>short</atom> constant from <const>EndSync</const>, 115cdf0e10cSrcweir an interface reference to a child <type>XTimeContainer</type> 116cdf0e10cSrcweir or <void/>. 117cdf0e10cSrcweir 118cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-endsync 119cdf0e10cSrcweir */ 120cdf0e10cSrcweir [attribute] any EndSync; 121cdf0e10cSrcweir 122cdf0e10cSrcweir /** the number of iterations of the simple duration. 123cdf0e10cSrcweir <br> 124cdf0e10cSrcweir <member>RepeatCount</member> is 125cdf0e10cSrcweir <ul> 126cdf0e10cSrcweir <li><atom>double</atom> 127cdf0e10cSrcweir this is a numeric value that specifies the number of iterations. 128cdf0e10cSrcweir It can include partial iterations expressed as fraction values. 129cdf0e10cSrcweir A fractional value describes a portion of the simple duration. 130cdf0e10cSrcweir Values must be greater than 0.</li> 131cdf0e10cSrcweir <li><const>Timing::INDEFINITE</const> the element is defined to repeat indefinitely 132cdf0e10cSrcweir (subject to the constraints of the parent time container).</li> 133cdf0e10cSrcweir <li><void/> 134cdf0e10cSrcweir no repeat count is defined for this element.</li> 135cdf0e10cSrcweir </ul> 136cdf0e10cSrcweir 137cdf0e10cSrcweir @see <const>EndSync</const> 138cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-repeatCount 139cdf0e10cSrcweir */ 140cdf0e10cSrcweir [attribute] any RepeatCount; 141cdf0e10cSrcweir 142cdf0e10cSrcweir /** the total duration for repeat. 143cdf0e10cSrcweir <br> 144cdf0e10cSrcweir <member>RepeatDuration</member> is 145cdf0e10cSrcweir <ul> 146cdf0e10cSrcweir <li><atom>double</atom> 147cdf0e10cSrcweir specifies the duration in element active time 148cdf0e10cSrcweir to repeat the simple duration in seconds.</li> 149cdf0e10cSrcweir <li><const>Timing::INDEFINITE</const> the element is defined to repeat indefinitely 150cdf0e10cSrcweir (subject to the constraints of the parent time container).</li> 151cdf0e10cSrcweir <li><void/> 152cdf0e10cSrcweir No repeat duration is defined for this element. </li> 153cdf0e10cSrcweir </ul> 154cdf0e10cSrcweir 155cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-repeatDur 156cdf0e10cSrcweir */ 157cdf0e10cSrcweir [attribute] any RepeatDuration; 158cdf0e10cSrcweir 159cdf0e10cSrcweir /** the attribute that specify the behaviour how an element 160cdf0e10cSrcweir should be extended beyond the active duration by freezing the final 161cdf0e10cSrcweir state of the element. 162cdf0e10cSrcweir <br> 163cdf0e10cSrcweir <member>Fill</member> is 164cdf0e10cSrcweir a value from <const>AnimationFill</const>. 165cdf0e10cSrcweir 166cdf0e10cSrcweir @see <const>Fill</const> 167cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-fill 168cdf0e10cSrcweir */ 169cdf0e10cSrcweir [attribute] short Fill; 170cdf0e10cSrcweir 171cdf0e10cSrcweir /** the default value for the fill behavior for this element and all 172cdf0e10cSrcweir descendents. 173cdf0e10cSrcweir <br> 174cdf0e10cSrcweir <member>FillDefault</member> is 175cdf0e10cSrcweir <ul> 176cdf0e10cSrcweir <li>The values <const>AnimationFill::REMOVE</const>, <const>AnimationFill::FREEZE</const>, 177cdf0e10cSrcweir <const>AnimationFill::HOLD</const>, <const>AnimationFill::TRANSITION</const> and <const>AnimationFill::AUTO</const> 178cdf0e10cSrcweir specify that the element fill behavior is the respective value.</li> 179cdf0e10cSrcweir <li>The value <const>AnimationFill::INHERIT</const> specifies that the value of this attribute 180cdf0e10cSrcweir (and of the fill behavior) are inherited from the <member>FillDefault</member> value of the parent 181cdf0e10cSrcweir element. If there is no parent element, the value is <const>AnimationFill::AUTO</const>.</li> 182cdf0e10cSrcweir </ul> 183cdf0e10cSrcweir 184cdf0e10cSrcweir @see <const>Fill</const> 185cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-fillDefault 186cdf0e10cSrcweir */ 187cdf0e10cSrcweir [attribute] short FillDefault; 188cdf0e10cSrcweir 189cdf0e10cSrcweir /** defines the restart behaviour of this element. 190cdf0e10cSrcweir <br> 191cdf0e10cSrcweir <member>Restart</member> is 192cdf0e10cSrcweir a <atom>short</atom> value from <const>AnimationRestart</const>. 193cdf0e10cSrcweir 194cdf0e10cSrcweir @see <const>AnimationRestart</const> 195cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-restart 196cdf0e10cSrcweir */ 197cdf0e10cSrcweir [attribute] short Restart; 198cdf0e10cSrcweir 199cdf0e10cSrcweir /** defines the default restart behaviour for this element and all descendents. 200cdf0e10cSrcweir 201cdf0e10cSrcweir @returns 202cdf0e10cSrcweir a value from <const>Restart</const>. 203cdf0e10cSrcweir 204cdf0e10cSrcweir @see <const>AnimationRestart</const> 205cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timing.html#adef-restartDefault 206cdf0e10cSrcweir */ 207cdf0e10cSrcweir [attribute] short RestartDefault; 208cdf0e10cSrcweir 209cdf0e10cSrcweir /** defines the acceleration for this element. 210cdf0e10cSrcweir <br> 211cdf0e10cSrcweir Element time will accelerate from a rate of 0 at the beginning up 212cdf0e10cSrcweir to a run rate, over the course of the specified proportion of the 213cdf0e10cSrcweir simple duration. 214cdf0e10cSrcweir 215cdf0e10cSrcweir <member>Acceleration</member> is 216cdf0e10cSrcweir a value between 0 (no acceleration) and 1 (acceleration until end 217cdf0e10cSrcweir of the elements duration). 218cdf0e10cSrcweir 219cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timemanip.html#adef-accelerate 220cdf0e10cSrcweir */ 221cdf0e10cSrcweir [attribute] double Acceleration; 222cdf0e10cSrcweir 223cdf0e10cSrcweir /** defines the deceleration for this element. 224cdf0e10cSrcweir Element time will deceleration from a run rate to a rate of 0 at the 225cdf0e10cSrcweir ending, over the course of the specified proportion of the 226cdf0e10cSrcweir simple duration. 227cdf0e10cSrcweir 228cdf0e10cSrcweir <member>Decelerate</member> is 229cdf0e10cSrcweir a value between 0 (no deceleration) and 1 (deceleration from beginning 230cdf0e10cSrcweir of the elements duration). 231cdf0e10cSrcweir 232cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timemanip.html#adef-decelerate 233cdf0e10cSrcweir */ 234cdf0e10cSrcweir [attribute] double Decelerate; 235cdf0e10cSrcweir 236cdf0e10cSrcweir /** defines the auto reverse settings for this element. 237cdf0e10cSrcweir 238cdf0e10cSrcweir <member>AutoRevers</member> is 239cdf0e10cSrcweir <ul> 240cdf0e10cSrcweir <li><false/> if the animation is played normal.</li> 241cdf0e10cSrcweir <li><true/> if the animation is played forwards and then backwards. This doubles the duration</li> 242cdf0e10cSrcweir </ul> 243cdf0e10cSrcweir 244cdf0e10cSrcweir @see http://www.w3.org/TR/smil20/smil-timemanip.html#adef-autoReverse 245cdf0e10cSrcweir */ 246cdf0e10cSrcweir [attribute] boolean AutoReverse; 247cdf0e10cSrcweir 248cdf0e10cSrcweir /** 249cdf0e10cSrcweir */ 250cdf0e10cSrcweir [attribute] sequence< ::com::sun::star::beans::NamedValue > UserData; 251cdf0e10cSrcweir}; 252cdf0e10cSrcweir 253cdf0e10cSrcweir//============================================================================= 254cdf0e10cSrcweir 255cdf0e10cSrcweir}; }; }; }; 256cdf0e10cSrcweir 257cdf0e10cSrcweir#endif 258