1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_animations_AnimationFill_idl__
24cdf0e10cSrcweir#define __com_sun_star_animations_AnimationFill_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir//=============================================================================
27cdf0e10cSrcweir
28cdf0e10cSrcweir module com {  module sun {  module star {  module animations {
29cdf0e10cSrcweir
30cdf0e10cSrcweir//=============================================================================
31cdf0e10cSrcweir
32cdf0e10cSrcweir/** This constants are used for the members <member>fill</member> and <member>fillDefault</member>
33cdf0e10cSrcweir	of the an <type>XTimeContainer</type>.
34cdf0e10cSrcweir
35cdf0e10cSrcweir	@see <type>XTimeContainer</type>
36cdf0e10cSrcweir	@see http://www.w3.org/TR/smil20/smil-timing.html#adef-fill
37cdf0e10cSrcweir*/
38cdf0e10cSrcweirconstants AnimationFill
39cdf0e10cSrcweir{
40cdf0e10cSrcweir	/**  The fill behavior for the element is determined by the value of the <member>XTiming::FillDefault</member> attribute.
41cdf0e10cSrcweir		 This is the default value for the <member>XTiming::Fill</member>..
42cdf0e10cSrcweir		 If the application of fillDefault to an element would result in the element having a value
43cdf0e10cSrcweir		 of fill that is not allowed on that element, the element will instead have a fill value of
44cdf0e10cSrcweir		 <const>AnimationFill::AUTO</const>.
45cdf0e10cSrcweir	 */
46cdf0e10cSrcweir	const short DEFAULT = 0;
47cdf0e10cSrcweir
48cdf0e10cSrcweir	/** Specifies that the value of this attribute (and of the fill behavior) are
49cdf0e10cSrcweir		inherited from the <member>XTiming::FillDefault</member> value
50cdf0e10cSrcweir		of the parent element. If there is no parent element, the value is <const>AnimationFill::AUTO</const>.
51cdf0e10cSrcweir		This is the default value for the <member>XTiming::FillDefault</member>.
52cdf0e10cSrcweir	*/
53cdf0e10cSrcweir	const short INHERIT = 0;
54cdf0e10cSrcweir
55cdf0e10cSrcweir	/** Specifies that the element will not extend past the end of the last instance of the simple duration.  */
56cdf0e10cSrcweir	const short REMOVE = 1;
57cdf0e10cSrcweir
58cdf0e10cSrcweir	/** Specifies that the element will extend past the end of the last instance of the simple duration by "freezing" the element state at that point. The parent time container of the element determines how long the element is frozen (as described immediately below). */
59cdf0e10cSrcweir	const short FREEZE = 2;
60cdf0e10cSrcweir
61cdf0e10cSrcweir	/** Setting this to "hold" has the same effect as setting to "freeze", except that the element is always frozen to extend to the end of the simple duration of the parent time container of theelement (independent of the type of time container). For profiles that support a layered layout model (e.g., SMIL 2.0 Language Profile), held elements (elements with fill="hold") will refresh their display area when a layer is added on top then later removed. */
62cdf0e10cSrcweir    const short HOLD = 3;
63cdf0e10cSrcweir
64cdf0e10cSrcweir	/** Setting this to "transition" has the same effect as setting to "freeze", except that the element is removed at the end of the transition. This value is only allowed on elements with media directly associated with them. If specified on any other element (e.g. a time container element in the SMIL language profile), the attribute is ignored. See the SMIL Transitions module. */
65cdf0e10cSrcweir    const short TRANSITION = 4;
66cdf0e10cSrcweir
67cdf0e10cSrcweir	/** The fill behavior for this element depends on whether the element specifies any of the attributes that define the simple or active duration:
68cdf0e10cSrcweir		<ul>
69cdf0e10cSrcweir        <li>If none of the attributes duration, end, repeatCount or repeatDuration are specified on the element, then the element will have a fill behavior identical to that if it were specified as <const>AnimationFill::FREEZE</const>.</li>
70cdf0e10cSrcweir        <li>Otherwise, the element will have a fill behavior identical to that if it were specified as <const>AnimationFill::REMOVE</const.</li>
71cdf0e10cSrcweir		</ul>
72cdf0e10cSrcweir	*/
73cdf0e10cSrcweir	const short AUTO = 5;
74cdf0e10cSrcweir};
75cdf0e10cSrcweir
76cdf0e10cSrcweir//=============================================================================
77cdf0e10cSrcweir
78cdf0e10cSrcweir}; }; }; };
79cdf0e10cSrcweir
80cdf0e10cSrcweir#endif
81