Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / animations / AnimationFill.idl
blob197d8c83d5707e8c2d56af6bb6d9aa2798bcdfe6
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_AnimationFill_idl__
29 #define __com_sun_star_animations_AnimationFill_idl__
31 //=============================================================================
33 module com { module sun { module star { module animations {
35 //=============================================================================
37 /** This constants are used for the members <member>fill</member> and <member>fillDefault</member>
38 of the an <type>XTimeContainer</type>.
40 @see <type>XTimeContainer</type>
41 @see http://www.w3.org/TR/smil20/smil-timing.html#adef-fill
43 constants AnimationFill
45 /** The fill behavior for the element is determined by the value of the <member>XTiming::FillDefault</member> attribute.
46 This is the default value for the <member>XTiming::Fill</member>..
47 If the application of fillDefault to an element would result in the element having a value
48 of fill that is not allowed on that element, the element will instead have a fill value of
49 <const>AnimationFill::AUTO</const>.
51 const short DEFAULT = 0;
53 /** Specifies that the value of this attribute (and of the fill behavior) are
54 inherited from the <member>XTiming::FillDefault</member> value
55 of the parent element. If there is no parent element, the value is <const>AnimationFill::AUTO</const>.
56 This is the default value for the <member>XTiming::FillDefault</member>.
58 const short INHERIT = 0;
60 /** Specifies that the element will not extend past the end of the last instance of the simple duration. */
61 const short REMOVE = 1;
63 /** Specifies that the element will extend past the end of the last instance of the simple duration by
64 "freezing" the element state at that point. The parent time container of the element determines how
65 long the element is frozen (as described immediately below).
67 const short FREEZE = 2;
69 /** Setting this to "hold" has the same effect as setting to "freeze", except that the element is always
70 frozen to extend to the end of the simple duration of the parent time container of the element
71 (independent of the type of time container). For profiles that support a layered layout model
72 (e.g., SMIL 2.0 Language Profile), held elements (elements with fill="hold") will refresh their display
73 area when a layer is added on top then later removed.
75 const short HOLD = 3;
77 /** Setting this to "transition" has the same effect as setting to "freeze", except that the element is
78 removed at the end of the transition. This value is only allowed on elements with media directly
79 associated with them. If specified on any other element (e.g. a time container element in the SMIL
80 language profile), the attribute is ignored. See the SMIL Transitions module.
82 const short TRANSITION = 4;
84 /** The fill behavior for this element depends on whether the element specifies any of the attributes
85 that define the simple or active duration:
86 <ul>
87 <li>If none of the attributes duration, end, repeatCount or repeatDuration are specified on
88 the element, then the element will have a fill behavior identical to that if it were specified
89 as <const>AnimationFill::FREEZE</const>.</li>
90 <li>Otherwise, the element will have a fill behavior identical to that if it were specified as
91 <const>AnimationFill::REMOVE</const.</li>
92 </ul>
94 const short AUTO = 5;
97 //=============================================================================
99 }; }; }; };
101 #endif
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */