xref: /aoo42x/main/xmloff/inc/anim.hxx (revision ecfe53c5)
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 
24 #ifndef _XMLOFF_ANIM_HXX
25 #define _XMLOFF_ANIM_HXX
26 
27 #include <com/sun/star/presentation/AnimationEffect.hpp>
28 #include <com/sun/star/drawing/XShape.hpp>
29 #include <xmloff/uniref.hxx>
30 #include <xmloff/xmlement.hxx>
31 
32 enum XMLEffect
33 {
34 	EK_none,
35 	EK_fade,
36 	EK_move,
37 	EK_stripes,
38 	EK_open,
39 	EK_close,
40 	EK_dissolve,
41 	EK_wavyline,
42 	EK_random,
43 	EK_lines,
44 	EK_laser,
45 	EK_appear,
46 	EK_hide,
47 	EK_move_short,
48 	EK_checkerboard,
49 	EK_rotate,
50 	EK_stretch
51 };
52 
53 extern SvXMLEnumMapEntry aXML_AnimationEffect_EnumMap[];
54 
55 enum XMLEffectDirection
56 {
57 	ED_none,
58 	ED_from_left,
59 	ED_from_top,
60 	ED_from_right,
61 	ED_from_bottom,
62 	ED_from_center,
63 	ED_from_upperleft,
64 	ED_from_upperright,
65 	ED_from_lowerleft,
66 	ED_from_lowerright,
67 
68 	ED_to_left,
69 	ED_to_top,
70 	ED_to_right,
71 	ED_to_bottom,
72 	ED_to_upperleft,
73 	ED_to_upperright,
74 	ED_to_lowerright,
75 	ED_to_lowerleft,
76 
77 	ED_path,
78 	ED_spiral_inward_left,
79 	ED_spiral_inward_right,
80 	ED_spiral_outward_left,
81 	ED_spiral_outward_right,
82 
83 	ED_vertical,
84 	ED_horizontal,
85 
86 	ED_to_center,
87 
88 	ED_clockwise,
89 	ED_cclockwise
90 };
91 
92 extern SvXMLEnumMapEntry aXML_AnimationDirection_EnumMap[];
93 
94 extern SvXMLEnumMapEntry aXML_AnimationSpeed_EnumMap[];
95 
96 void SdXMLImplSetEffect( ::com::sun::star::presentation::AnimationEffect eEffect, XMLEffect& eKind, XMLEffectDirection& eDirection, sal_Int16& nStartScale, sal_Bool& bIn );
97 ::com::sun::star::presentation::AnimationEffect ImplSdXMLgetEffect( XMLEffect eKind, XMLEffectDirection eDirection, sal_Int16 nStartScale, sal_Bool bIn );
98 
99 #endif	//  _XMLOFF_ANIM_HXX
100 
101