1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_animations_AnimationFill_idl__
24#define __com_sun_star_animations_AnimationFill_idl__
25
26//=============================================================================
27
28 module com {  module sun {  module star {  module animations {
29
30//=============================================================================
31
32/** This constants are used for the members <member>fill</member> and <member>fillDefault</member>
33	of the an <type>XTimeContainer</type>.
34
35	@see <type>XTimeContainer</type>
36	@see http://www.w3.org/TR/smil20/smil-timing.html#adef-fill
37*/
38constants AnimationFill
39{
40	/**  The fill behavior for the element is determined by the value of the <member>XTiming::FillDefault</member> attribute.
41		 This is the default value for the <member>XTiming::Fill</member>..
42		 If the application of fillDefault to an element would result in the element having a value
43		 of fill that is not allowed on that element, the element will instead have a fill value of
44		 <const>AnimationFill::AUTO</const>.
45	 */
46	const short DEFAULT = 0;
47
48	/** Specifies that the value of this attribute (and of the fill behavior) are
49		inherited from the <member>XTiming::FillDefault</member> value
50		of the parent element. If there is no parent element, the value is <const>AnimationFill::AUTO</const>.
51		This is the default value for the <member>XTiming::FillDefault</member>.
52	*/
53	const short INHERIT = 0;
54
55	/** Specifies that the element will not extend past the end of the last instance of the simple duration.  */
56	const short REMOVE = 1;
57
58	/** 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). */
59	const short FREEZE = 2;
60
61	/** 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. */
62    const short HOLD = 3;
63
64	/** 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. */
65    const short TRANSITION = 4;
66
67	/** The fill behavior for this element depends on whether the element specifies any of the attributes that define the simple or active duration:
68		<ul>
69        <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>
70        <li>Otherwise, the element will have a fill behavior identical to that if it were specified as <const>AnimationFill::REMOVE</const.</li>
71		</ul>
72	*/
73	const short AUTO = 5;
74};
75
76//=============================================================================
77
78}; }; }; };
79
80#endif
81