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_XAnimateTransform_idl__
24#define __com_sun_star_animations_XAnimateTransform_idl__
25
26#ifndef __com_sun_star_animations_XAnimate_idl__
27#include <com/sun/star/animations/XAnimate.idl>
28#endif
29
30//=============================================================================
31
32 module com {  module sun {  module star {  module animations {
33
34//=============================================================================
35
36/** animates a transformation attribute on a target element, thereby allowing
37	animations to control translation, scaling, rotation and/or skewing.
38
39	The member <member>XAnimate::Attributes</member> contains a short from
40	<const>AnimationTransformType</const>.
41
42	Depending on the value in <member>XAnimate::Attributes</member>, the
43	members <member>XAnimate::From</member>, <member>XAnimate::To</member>,
44	<member>XAnimate::By</member> or <member>XAnimate::Values</member>
45	contain the following
46
47	<ul>
48	<li><const>AnimationTransformType::TRANSLATE</const><br>
49		<type>ValuePair</type> of <i>tx</i> and <i>ty</i></li>
50	<li><const>AnimationTransformType::SCALE</const><br>
51		<type>ValuePair</type> of <i>sx</i> and <i>sy</i></li>
52	<li><const>AnimationTransformType::ROTATE</const><br>
53		Values for a rotation angle</li>
54	<li><const>AnimationTransformType::SKEWX</const><br>
55		Values for a skew-angle</li>
56	<li><const>AnimationTransformType::SKEWY</const><br>
57		Values for a skew-angle</li>
58	</ul>
59
60	@see http://www.w3.org/TR/SVG/animate.html#AnimateTransformElement
61*/
62interface XAnimateTransform : XAnimate
63{
64	/**
65		@see <const>AnimationTransformType</const>
66	*/
67	[attribute] short TransformType;
68};
69
70//=============================================================================
71
72}; }; }; };
73
74#endif
75
76