Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_SD_SOURCE_FILTER_PPT_PPTANIMATIONS_HXX
21 : #define INCLUDED_SD_SOURCE_FILTER_PPT_PPTANIMATIONS_HXX
22 :
23 : #include <com/sun/star/uno/Any.h>
24 : #include <com/sun/star/animations/TransitionType.hpp>
25 : #include <com/sun/star/animations/TransitionSubType.hpp>
26 : #include <com/sun/star/presentation/EffectPresetClass.hpp>
27 :
28 : #include <map>
29 : #include <sal/types.h>
30 :
31 : class SvStream;
32 :
33 : namespace ppt
34 : {
35 :
36 : // old transition types
37 : #define PPT_TRANSITION_TYPE_NONE 0
38 : #define PPT_TRANSITION_TYPE_RANDOM 1
39 : #define PPT_TRANSITION_TYPE_BLINDS 2
40 : #define PPT_TRANSITION_TYPE_CHECKER 3
41 : #define PPT_TRANSITION_TYPE_COVER 4
42 : #define PPT_TRANSITION_TYPE_DISSOLVE 5
43 : #define PPT_TRANSITION_TYPE_FADE 6
44 : #define PPT_TRANSITION_TYPE_PULL 7
45 : #define PPT_TRANSITION_TYPE_RANDOM_BARS 8
46 : #define PPT_TRANSITION_TYPE_STRIPS 9
47 : #define PPT_TRANSITION_TYPE_WIPE 10
48 : #define PPT_TRANSITION_TYPE_ZOOM 11
49 : #define PPT_TRANSITION_TYPE_SPLIT 13
50 :
51 : // effects, new in xp
52 : #define PPT_TRANSITION_TYPE_DIAMOND 17
53 : #define PPT_TRANSITION_TYPE_PLUS 18
54 : #define PPT_TRANSITION_TYPE_WEDGE 19
55 : #define PPT_TRANSITION_TYPE_PUSH 20
56 : #define PPT_TRANSITION_TYPE_COMB 21
57 : #define PPT_TRANSITION_TYPE_NEWSFLASH 22
58 : #define PPT_TRANSITION_TYPE_SMOOTHFADE 23
59 : #define PPT_TRANSITION_TYPE_WHEEL 26
60 : #define PPT_TRANSITION_TYPE_CIRCLE 27
61 :
62 : // atoms
63 : #define DFF_msofbtAnimEvent 0xf125
64 : #define DFF_msofbtAnimNode 0xf127
65 : #define DFF_msofbtAnimTrigger 0xf128
66 : #define DFF_msofbtAnimValue 0xf129
67 : #define DFF_msofbtAnimateTarget 0xf12a
68 : #define DFF_msofbtAnimate 0xf12b
69 : #define DFF_msofbtAnimateColor 0xf12c
70 : #define DFF_msofbtAnimateFilter 0xf12d
71 : #define DFF_msofbtAnimateMotion 0xf12e
72 : #define DFF_msofbtAnimateRotation 0xf12f
73 : #define DFF_msofbtAnimateScale 0xf130
74 : #define DFF_msofbtAnimateSet 0xf131
75 : #define DFF_msofbtAnimCommand 0xf132
76 : #define DFF_msofbtAnimateTargetSettings 0xf133
77 : #define DFF_msofbtAnimateData 0xf134
78 : #define DFF_msofbtAnimateColorData 0xf135
79 : #define DFF_msofbtAnimateFilterData 0xf136
80 : #define DFF_msofbtAnimateMotionData 0xf137
81 : #define DFF_msofbtAnimateScaleData 0xf139
82 : #define DFF_msofbtAnimateSetData 0xf13a
83 : #define DFF_msofbtCommandData 0xf13b
84 : #define DFF_msofbtAnimateTargetElement 0xf13c
85 : #define DFF_msofbtAnimPropertySet 0xf13d
86 : #define DFF_msofbtAnimateAttributeNames 0xf13e
87 : #define DFF_msofbtAnimKeyPoints 0xf13f
88 : #define DFF_msofbtAnimIteration 0xf140
89 : #define DFF_msofbtAnimAction 0xf141 // correct name??
90 : #define DFF_msofbtAnimAttributeValue 0xf142
91 : #define DFF_msofbtAnimKeyTime 0xf143
92 : #define DFF_msofbtAnimGroup 0xf144
93 : #define DFF_msofbtAnimSubGoup 0xf145
94 : #define DFF_msofbtAnimateRotationData 0xf138
95 : #define DFF_msofbtAnimReference 0x2afb
96 :
97 : // property ids
98 : #define DFF_ANIM_ID 1
99 : #define DFF_ANIM_RUNTIMECONTEXT 2
100 : #define DFF_ANIM_PATH_EDIT_MODE 3
101 : #define DFF_ANIM_COLORSPACE 4
102 : #define DFF_ANIM_DIRECTION 5 // TODO: Conflict?
103 : #define DFF_ANIM_MASTERREL 5 // TODO: Conflict?
104 : #define DFF_ANIM_OVERRIDE 6
105 : #define DFF_ANIM_PRESET_ID 9
106 : #define DFF_ANIM_PRESET_SUB_TYPE 10
107 : #define DFF_ANIM_PRESET_CLASS 11
108 : #define DFF_ANIM_AFTEREFFECT 13
109 : #define DFF_ANIM_ENDAFTERSLIDE 15
110 : #define DFF_ANIM_TIMEFILTER 16
111 : #define DFF_ANIM_EVENT_FILTER 17
112 : #define DFF_ANIM_GROUP_ID 19
113 : #define DFF_ANIM_NODE_TYPE 20
114 : #define DFF_ANIM_VOLUME 22
115 : #define DFF_ANIM_PROPERTY_ID_COUNT (DFF_ANIM_VOLUME + 1)
116 :
117 : // property types
118 : #define DFF_ANIM_PROP_TYPE_BYTE 0
119 : #define DFF_ANIM_PROP_TYPE_INT32 1
120 : #define DFF_ANIM_PROP_TYPE_FLOAT 2
121 : #define DFF_ANIM_PROP_TYPE_UNISTRING 3
122 :
123 : #define DFF_ANIM_PRESS_CLASS_USER_DEFINED 0
124 : #define DFF_ANIM_PRESS_CLASS_ENTRANCE 1
125 : #define DFF_ANIM_PRESS_CLASS_EXIT 2
126 : #define DFF_ANIM_PRESS_CLASS_EMPHASIS 3
127 : #define DFF_ANIM_PRESS_CLASS_MOTIONPATH 4
128 : #define DFF_ANIM_PRESS_CLASS_OLE_ACTION 5
129 : #define DFF_ANIM_PRESS_CLASS_MEDIACALL 6
130 :
131 : #define DFF_ANIM_NODE_TYPE_ON_CLICK 1
132 : #define DFF_ANIM_NODE_TYPE_WITH_PREVIOUS 2
133 : #define DFF_ANIM_NODE_TYPE_AFTER_PREVIOUS 3
134 : #define DFF_ANIM_NODE_TYPE_MAIN_SEQUENCE 4
135 : #define DFF_ANIM_NODE_TYPE_INTERACTIVE_SEQ 5
136 : #define DFF_ANIM_NODE_TYPE_TIMING_ROOT 9
137 :
138 : /* constants for fill entry in AnimationNode */
139 : const sal_Int32 mso_Anim_GroupType_PAR = 0;
140 : const sal_Int32 mso_Anim_GroupType_SEQ = 1;
141 : const sal_Int32 mso_Anim_GroupType_NODE = 3;
142 : const sal_Int32 mso_Anim_GroupType_MEDIA = 4;
143 :
144 : /* constants for fill entry in AnimationNode */
145 : const sal_Int32 mso_Anim_Fill_ALWAYS = 1;
146 : const sal_Int32 mso_Anim_Fill_WHENOFF = 2;
147 : const sal_Int32 mso_Anim_Fill_NEVER = 3;
148 :
149 : /* constants for fill entry in AnimationNode */
150 : const sal_Int32 mso_Anim_Fill_REMOVE = 1;
151 : const sal_Int32 mso_Anim_Fill_FREEZE = 2;
152 : const sal_Int32 mso_Anim_Fill_HOLD = 3;
153 :
154 : /* constants for behaviour entry in PPtAnimationNode */
155 : const sal_Int32 mso_Anim_Behaviour_FILTER = 24;
156 : const sal_Int32 mso_Anim_Behaviour_ANIMATION= 25;
157 :
158 : typedef ::std::map< sal_Int32, ::com::sun::star::uno::Any > PropertySetMap_t;
159 :
160 644 : class PropertySet
161 : {
162 : public:
163 : PropertySetMap_t maProperties;
164 :
165 : bool hasProperty( sal_Int32 nProperty ) const;
166 : ::com::sun::star::uno::Any getProperty( sal_Int32 nProperty ) const;
167 : };
168 :
169 : enum MS_AttributeNames
170 : {
171 : MS_PPT_X, MS_PPT_Y, MS_PPT_W, MS_PPT_H, MS_PPT_C, MS_R, MS_XSHEAR, MS_FILLCOLOR, MS_FILLTYPE,
172 : MS_STROKECOLOR, MS_STROKEON, MS_STYLECOLOR, MS_STYLEROTATION, MS_FONTWEIGHT,
173 : MS_STYLEUNDERLINE, MS_STYLEFONTFAMILY, MS_STYLEFONTSIZE, MS_STYLEFONTSTYLE,
174 : MS_STYLEVISIBILITY, MS_STYLEOPACITY, MS_UNKNOWN
175 : };
176 :
177 : struct ImplAttributeNameConversion
178 : {
179 : MS_AttributeNames meAttribute;
180 : const char* mpMSName;
181 : const char* mpAPIName;
182 : };
183 :
184 : /** this atom is the first entry in each animation group */
185 : struct AnimationNode
186 : {
187 : public:
188 : /** see mso_Anim_GroupType_? */
189 : sal_Int32 mnGroupType;
190 :
191 : /** see mso_Anim_Restart_? */
192 : sal_Int32 mnRestart;
193 :
194 : /** see mso_Anim_Fill_? */
195 : sal_Int32 mnFill;
196 :
197 : /** see mso_Anim_Behaviour_? */
198 : sal_Int32 mnNodeType;
199 :
200 : /** duration of this group in 1000th seconds */
201 : sal_Int32 mnDuration;
202 :
203 : sal_Int32 mnU1, mnU3, mnU4;
204 :
205 332 : AnimationNode()
206 : : mnGroupType(0)
207 : , mnRestart(0)
208 : , mnFill(0)
209 : , mnNodeType(0)
210 : , mnDuration(0)
211 332 : , mnU1(0), mnU3(0), mnU4(0)
212 : {
213 332 : }
214 : public:
215 :
216 : friend SvStream& ReadAnimationNode(SvStream& rIn, AnimationNode& rAtom);
217 : friend SvStream& WriteAnimationNode(SvStream& rOut, AnimationNode& rAtom);
218 : };
219 :
220 : static const ImplAttributeNameConversion gImplConversionList[] =
221 : {
222 : { MS_PPT_X, "ppt_x", "X" },
223 : { MS_PPT_Y, "ppt_y", "Y" },
224 : { MS_PPT_W, "ppt_w", "Width" },
225 : { MS_PPT_H, "ppt_h", "Height" },
226 : { MS_PPT_C, "ppt_c", "DimColor" },
227 : { MS_R, "r", "Rotate" },
228 : { MS_XSHEAR, "xshear", "SkewX" },
229 : { MS_FILLCOLOR, "fillColor", "FillColor" },
230 : { MS_FILLCOLOR, "fillcolor", "FillColor" },
231 : { MS_FILLTYPE, "fill.type", "FillStyle" },
232 : { MS_STROKECOLOR, "stroke.color", "LineColor" },
233 : { MS_STROKEON, "stroke.on", "LineStyle" },
234 : { MS_STYLECOLOR, "style.color", "CharColor" },
235 : { MS_STYLEROTATION, "style.rotation", "Rotate" },
236 : { MS_FONTWEIGHT, "style.fontWeight", "CharWeight" },
237 : { MS_STYLEUNDERLINE, "style.textDecorationUnderline","CharUnderline" },
238 : { MS_STYLEFONTFAMILY, "style.fontFamily", "CharFontName" },
239 : { MS_STYLEFONTSIZE, "style.fontSize", "CharHeight" },
240 : { MS_STYLEFONTSTYLE, "style.fontStyle", "CharPosture" },
241 : { MS_STYLEVISIBILITY, "style.visibility", "Visibility" },
242 : { MS_STYLEOPACITY, "style.opacity", "Opacity" },
243 : { MS_UNKNOWN, NULL, NULL }
244 : };
245 :
246 : struct transition
247 : {
248 : const sal_Char* mpName;
249 : sal_Int16 mnType;
250 : sal_Int16 mnSubType;
251 : bool mbDirection; // true: default geometric direction
252 :
253 : static const transition* find( const OUString& rName );
254 : static const sal_Char* find( const sal_Int16 mnType, const sal_Int16 mnSubType, const bool bDirection );
255 : };
256 : static const transition gTransitions[] =
257 : {
258 : { "wipe(up)", ::com::sun::star::animations::TransitionType::BARWIPE, ::com::sun::star::animations::TransitionSubType::TOPTOBOTTOM, true },
259 : { "wipe(right)", ::com::sun::star::animations::TransitionType::BARWIPE, ::com::sun::star::animations::TransitionSubType::LEFTTORIGHT, false },
260 : { "wipe(left)", ::com::sun::star::animations::TransitionType::BARWIPE, ::com::sun::star::animations::TransitionSubType::LEFTTORIGHT, true },
261 : { "wipe(down)", ::com::sun::star::animations::TransitionType::BARWIPE, ::com::sun::star::animations::TransitionSubType::TOPTOBOTTOM, false },
262 : { "wheel(1)", ::com::sun::star::animations::TransitionType::PINWHEELWIPE, ::com::sun::star::animations::TransitionSubType::ONEBLADE, true },
263 : { "wheel(2)", ::com::sun::star::animations::TransitionType::PINWHEELWIPE, ::com::sun::star::animations::TransitionSubType::TWOBLADEVERTICAL, true },
264 : { "wheel(3)", ::com::sun::star::animations::TransitionType::PINWHEELWIPE, ::com::sun::star::animations::TransitionSubType::THREEBLADE, true },
265 : { "wheel(4)", ::com::sun::star::animations::TransitionType::PINWHEELWIPE, ::com::sun::star::animations::TransitionSubType::FOURBLADE, true },
266 : { "wheel(8)", ::com::sun::star::animations::TransitionType::PINWHEELWIPE, ::com::sun::star::animations::TransitionSubType::EIGHTBLADE, true },
267 : { "strips(downLeft)", ::com::sun::star::animations::TransitionType::WATERFALLWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTALRIGHT, true },
268 : { "strips(upLeft)", ::com::sun::star::animations::TransitionType::WATERFALLWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTALLEFT, false },
269 : { "strips(downRight)", ::com::sun::star::animations::TransitionType::WATERFALLWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTALLEFT, true },
270 : { "strips(upRight)", ::com::sun::star::animations::TransitionType::WATERFALLWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTALRIGHT, false },
271 : { "barn(inVertical)", ::com::sun::star::animations::TransitionType::BARNDOORWIPE, ::com::sun::star::animations::TransitionSubType::VERTICAL, false },
272 : { "barn(outVertical)", ::com::sun::star::animations::TransitionType::BARNDOORWIPE, ::com::sun::star::animations::TransitionSubType::VERTICAL, true },
273 : { "barn(inHorizontal)", ::com::sun::star::animations::TransitionType::BARNDOORWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTAL, false },
274 : { "barn(outHorizontal)", ::com::sun::star::animations::TransitionType::BARNDOORWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTAL, true },
275 : { "randombar(vertical)", ::com::sun::star::animations::TransitionType::RANDOMBARWIPE, ::com::sun::star::animations::TransitionSubType::VERTICAL, true},
276 : { "randombar(horizontal)", ::com::sun::star::animations::TransitionType::RANDOMBARWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTAL, true },
277 : { "checkerboard(down)", ::com::sun::star::animations::TransitionType::CHECKERBOARDWIPE, ::com::sun::star::animations::TransitionSubType::DOWN, true},
278 : { "checkerboard(across)", ::com::sun::star::animations::TransitionType::CHECKERBOARDWIPE, ::com::sun::star::animations::TransitionSubType::ACROSS, true },
279 : { "plus(out)", ::com::sun::star::animations::TransitionType::FOURBOXWIPE, ::com::sun::star::animations::TransitionSubType::CORNERSIN, false },
280 : { "plus(in)", ::com::sun::star::animations::TransitionType::FOURBOXWIPE, ::com::sun::star::animations::TransitionSubType::CORNERSIN, true },
281 : { "diamond(out)", ::com::sun::star::animations::TransitionType::IRISWIPE, ::com::sun::star::animations::TransitionSubType::DIAMOND, true },
282 : { "diamond(in)", ::com::sun::star::animations::TransitionType::IRISWIPE, ::com::sun::star::animations::TransitionSubType::DIAMOND, false },
283 : { "circle(out)", ::com::sun::star::animations::TransitionType::ELLIPSEWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTAL, true },
284 : { "circle(in)", ::com::sun::star::animations::TransitionType::ELLIPSEWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTAL, false },
285 : { "box(out)", ::com::sun::star::animations::TransitionType::IRISWIPE, ::com::sun::star::animations::TransitionSubType::RECTANGLE, true },
286 : { "box(in)", ::com::sun::star::animations::TransitionType::IRISWIPE, ::com::sun::star::animations::TransitionSubType::RECTANGLE, false },
287 : { "wedge", ::com::sun::star::animations::TransitionType::FANWIPE, ::com::sun::star::animations::TransitionSubType::CENTERTOP, true },
288 : { "blinds(vertical)", ::com::sun::star::animations::TransitionType::BLINDSWIPE, ::com::sun::star::animations::TransitionSubType::VERTICAL, true },
289 : { "blinds(horizontal)", ::com::sun::star::animations::TransitionType::BLINDSWIPE, ::com::sun::star::animations::TransitionSubType::HORIZONTAL, true },
290 : { "fade", ::com::sun::star::animations::TransitionType::FADE, ::com::sun::star::animations::TransitionSubType::CROSSFADE, true },
291 : { "slide(fromTop)", ::com::sun::star::animations::TransitionType::SLIDEWIPE, ::com::sun::star::animations::TransitionSubType::FROMTOP, true },
292 : { "slide(fromRight)", ::com::sun::star::animations::TransitionType::SLIDEWIPE, ::com::sun::star::animations::TransitionSubType::FROMRIGHT, true },
293 : { "slide(fromLeft)", ::com::sun::star::animations::TransitionType::SLIDEWIPE, ::com::sun::star::animations::TransitionSubType::FROMLEFT, true },
294 : { "slide(fromBottom)", ::com::sun::star::animations::TransitionType::SLIDEWIPE, ::com::sun::star::animations::TransitionSubType::FROMBOTTOM, true },
295 : { "dissolve", ::com::sun::star::animations::TransitionType::DISSOLVE, ::com::sun::star::animations::TransitionSubType::DEFAULT, true },
296 : { "image", ::com::sun::star::animations::TransitionType::DISSOLVE, ::com::sun::star::animations::TransitionSubType::DEFAULT, true }, // TODO
297 : { NULL, 0, 0, false }
298 : };
299 :
300 : struct convert_subtype
301 : {
302 : sal_Int32 mnID;
303 : const sal_Char* mpStrSubType;
304 : };
305 : static const convert_subtype gConvertArray[] =
306 : {
307 : // fly in
308 : { 1, "from-top" },
309 : { 2, "from-right" },
310 : { 3, "from-top-right" },
311 : { 4, "from-bottom" },
312 : { 5, "horizontal" },
313 : { 6, "from-bottom-right" },
314 : { 8, "from-left" },
315 : { 9, "from-top-left" },
316 : { 10, "vertical" },
317 : { 12, "from-bottom-left" },
318 : { 16, "in" },
319 : { 21, "vertical-in" },
320 : { 26, "horizontal-in" },
321 : { 32, "out" },
322 : { 36, "out-from-screen-center" },
323 : { 37, "vertical-out" },
324 : { 42, "horizontal-out" },
325 : { 272, "in-slightly" },
326 : { 288, "out-slightly" },
327 : { 528, "in-from-screen-center" },
328 : { 0, 0 }
329 : };
330 :
331 : struct preset_maping
332 : {
333 : sal_Int32 mnPresetClass;
334 : sal_Int32 mnPresetId;
335 : const sal_Char* mpStrPresetId;
336 : };
337 :
338 : static const preset_maping gPresetMaping[] =
339 : {
340 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 1 ,"ooo-entrance-appear" },
341 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 2 ,"ooo-entrance-fly-in" },
342 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 3 ,"ooo-entrance-venetian-blinds" },
343 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 4 ,"ooo-entrance-box" },
344 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 5 ,"ooo-entrance-checkerboard" },
345 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 6 ,"ooo-entrance-circle" },
346 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 7 ,"ooo-entrance-fly-in-slow" },
347 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 8 ,"ooo-entrance-diamond" },
348 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 9 ,"ooo-entrance-dissolve-in" },
349 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 10 ,"ooo-entrance-fade-in" },
350 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 11 ,"ooo-entrance-flash-once" },
351 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 12 ,"ooo-entrance-peek-in" },
352 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 13 ,"ooo-entrance-plus" },
353 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 14 ,"ooo-entrance-random-bars" },
354 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 15 ,"ooo-entrance-spiral-in" },
355 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 16 ,"ooo-entrance-split" },
356 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 17 ,"ooo-entrance-stretchy" },
357 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 18 ,"ooo-entrance-diagonal-squares" },
358 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 19 ,"ooo-entrance-swivel" },
359 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 20 ,"ooo-entrance-wedge" },
360 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 21 ,"ooo-entrance-wheel" },
361 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 22 ,"ooo-entrance-wipe" },
362 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 23 ,"ooo-entrance-zoom" },
363 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 24 ,"ooo-entrance-random" },
364 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 25 ,"ooo-entrance-boomerang" },
365 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 26 ,"ooo-entrance-bounce" },
366 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 27 ,"ooo-entrance-colored-lettering" },
367 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 28 ,"ooo-entrance-movie-credits" },
368 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 29 ,"ooo-entrance-ease-in" },
369 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 30 ,"ooo-entrance-float" },
370 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 31 ,"ooo-entrance-turn-and-grow" },
371 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 34 ,"ooo-entrance-breaks" },
372 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 35 ,"ooo-entrance-pinwheel" },
373 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 37 ,"ooo-entrance-rise-up" },
374 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 38 ,"ooo-entrance-falling-in" },
375 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 39 ,"ooo-entrance-thread" },
376 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 40 ,"ooo-entrance-unfold" },
377 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 41 ,"ooo-entrance-whip" },
378 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 42 ,"ooo-entrance-ascend" },
379 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 43 ,"ooo-entrance-center-revolve" },
380 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 45 ,"ooo-entrance-fade-in-and-swivel" },
381 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 47 ,"ooo-entrance-descend" },
382 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 48 ,"ooo-entrance-sling" },
383 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 49 ,"ooo-entrance-spin-in" },
384 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 50 ,"ooo-entrance-compress" },
385 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 51 ,"ooo-entrance-magnify" },
386 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 52 ,"ooo-entrance-curve-up" },
387 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 53 ,"ooo-entrance-fade-in-and-zoom" },
388 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 54 ,"ooo-entrance-glide" },
389 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 55 ,"ooo-entrance-expand" },
390 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 56 ,"ooo-entrance-flip" },
391 : { ::com::sun::star::presentation::EffectPresetClass::ENTRANCE, 58 ,"ooo-entrance-fold" },
392 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 1 ,"ooo-emphasis-fill-color" },
393 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 2 ,"ooo-emphasis-font" },
394 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 3 ,"ooo-emphasis-font-color" },
395 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 4 ,"ooo-emphasis-font-size" },
396 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 5 ,"ooo-emphasis-font-style" },
397 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 6 ,"ooo-emphasis-grow-and-shrink" },
398 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 7 ,"ooo-emphasis-line-color" },
399 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 8 ,"ooo-emphasis-spin" },
400 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 9 ,"ooo-emphasis-transparency" },
401 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 10 ,"ooo-emphasis-bold-flash" },
402 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 14 ,"ooo-emphasis-blast" },
403 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 15 ,"ooo-emphasis-bold-reveal" },
404 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 16 ,"ooo-emphasis-color-over-by-word" },
405 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 18 ,"ooo-emphasis-reveal-underline" },
406 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 19 ,"ooo-emphasis-color-blend" },
407 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 20 ,"ooo-emphasis-color-over-by-letter" },
408 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 21 ,"ooo-emphasis-complementary-color" },
409 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 22 ,"ooo-emphasis-complementary-color-2" },
410 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 23 ,"ooo-emphasis-contrasting-color" },
411 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 24 ,"ooo-emphasis-darken" },
412 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 25 ,"ooo-emphasis-desaturate" },
413 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 26 ,"ooo-emphasis-flash-bulb" },
414 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 27 ,"ooo-emphasis-flicker" },
415 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 28 ,"ooo-emphasis-grow-with-color" },
416 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 30 ,"ooo-emphasis-lighten" },
417 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 31 ,"ooo-emphasis-style-emphasis" },
418 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 32 ,"ooo-emphasis-teeter" },
419 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 33 ,"ooo-emphasis-vertical-highlight" },
420 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 34 ,"ooo-emphasis-wave" },
421 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 35 ,"ooo-emphasis-blink" },
422 : { ::com::sun::star::presentation::EffectPresetClass::EMPHASIS, 36 ,"ooo-emphasis-shimmer" },
423 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 1 ,"ooo-exit-disappear" },
424 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 2 ,"ooo-exit-fly-out" },
425 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 3 ,"ooo-exit-venetian-blinds" },
426 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 4 ,"ooo-exit-box" },
427 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 5 ,"ooo-exit-checkerboard" },
428 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 6 ,"ooo-exit-circle" },
429 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 7 ,"ooo-exit-crawl-out" },
430 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 8 ,"ooo-exit-diamond" },
431 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 9 ,"ooo-exit-dissolve" },
432 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 10 ,"ooo-exit-fade-out" },
433 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 11 ,"ooo-exit-flash-once" },
434 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 12 ,"ooo-exit-peek-out" },
435 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 13 ,"ooo-exit-plus" },
436 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 14 ,"ooo-exit-random-bars" },
437 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 15 ,"ooo-exit-spiral-out" },
438 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 16 ,"ooo-exit-split" },
439 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 17 ,"ooo-exit-collapse" },
440 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 18 ,"ooo-exit-diagonal-squares" },
441 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 19 ,"ooo-exit-swivel" },
442 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 20 ,"ooo-exit-wedge" },
443 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 21 ,"ooo-exit-wheel" },
444 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 22 ,"ooo-exit-wipe" },
445 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 23 ,"ooo-exit-zoom" },
446 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 24 ,"ooo-exit-random" },
447 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 25 ,"ooo-exit-boomerang" },
448 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 26 ,"ooo-exit-bounce" },
449 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 27 ,"ooo-exit-colored-lettering" },
450 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 28 ,"ooo-exit-movie-credits" },
451 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 29 ,"ooo-exit-ease-out" },
452 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 30 ,"ooo-exit-float" },
453 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 31 ,"ooo-exit-turn-and-grow" },
454 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 34 ,"ooo-exit-breaks" },
455 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 35 ,"ooo-exit-pinwheel" },
456 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 37 ,"ooo-exit-sink-down" },
457 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 38 ,"ooo-exit-swish" },
458 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 39 ,"ooo-exit-thread" },
459 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 40 ,"ooo-exit-unfold" },
460 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 41 ,"ooo-exit-whip" },
461 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 42 ,"ooo-exit-descend" },
462 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 43 ,"ooo-exit-center-revolve" },
463 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 45 ,"ooo-exit-fade-out-and-swivel" },
464 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 47 ,"ooo-exit-ascend" },
465 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 48 ,"ooo-exit-sling" },
466 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 53 ,"ooo-exit-fade-out-and-zoom" },
467 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 55 ,"ooo-exit-contract" },
468 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 49 ,"ooo-exit-spin-out" },
469 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 50 ,"ooo-exit-stretchy" },
470 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 51 ,"ooo-exit-magnify" },
471 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 52 ,"ooo-exit-curve-down" },
472 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 54 ,"ooo-exit-glide" },
473 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 56 ,"ooo-exit-flip" },
474 : { ::com::sun::star::presentation::EffectPresetClass::EXIT, 58 ,"ooo-exit-fold" },
475 :
476 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 16 ,"ooo-motionpath-4-point-star" },
477 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 5 ,"ooo-motionpath-5-point-star" },
478 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 11 ,"ooo-motionpath-6-point-star" },
479 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 17 ,"ooo-motionpath-8-point-star" },
480 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 1 ,"ooo-motionpath-circle" },
481 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 6 ,"ooo-motionpath-crescent-moon" },
482 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 3 ,"ooo-motionpath-diamond" },
483 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 13 ,"ooo-motionpath-equal-triangle" },
484 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 12 ,"ooo-motionpath-oval" },
485 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 9 ,"ooo-motionpath-heart" },
486 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 4 ,"ooo-motionpath-hexagon" },
487 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 10 ,"ooo-motionpath-octagon" },
488 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 14 ,"ooo-motionpath-parallelogram" },
489 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 15 ,"ooo-motionpath-pentagon" },
490 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 2 ,"ooo-motionpath-right-triangle" },
491 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 7 ,"ooo-motionpath-square" },
492 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 18 ,"ooo-motionpath-teardrop" },
493 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 8 ,"ooo-motionpath-trapezoid" },
494 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 37 ,"ooo-motionpath-arc-down" },
495 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 51 ,"ooo-motionpath-arc-left" },
496 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 58 ,"ooo-motionpath-arc-right" },
497 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 44 ,"ooo-motionpath-arc-up" },
498 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 41 ,"ooo-motionpath-bounce-left" },
499 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 54 ,"ooo-motionpath-bounce-right" },
500 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 48 ,"ooo-motionpath-curvy-left" },
501 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 61 ,"ooo-motionpath-curvy-right" },
502 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 60 ,"ooo-motionpath-decaying-wave" },
503 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 49 ,"ooo-motionpath-diagonal-down-right" },
504 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 56 ,"ooo-motionpath-diagonal-up-right" },
505 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 42 ,"ooo-motionpath-down" },
506 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 52 ,"ooo-motionpath-funnel" },
507 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 53 ,"ooo-motionpath-spring" },
508 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 62 ,"ooo-motionpath-stairs-down" },
509 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 50 ,"ooo-motionpath-turn-down" },
510 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 36 ,"ooo-motionpath-turn-down-right" },
511 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 43 ,"ooo-motionpath-turn-up" },
512 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 57 ,"ooo-motionpath-turn-up-right" },
513 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 64 ,"ooo-motionpath-up" },
514 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 47 ,"ooo-motionpath-wave" },
515 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 38 ,"ooo-motionpath-zigzag" },
516 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 31 ,"ooo-motionpath-bean" },
517 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 25 ,"ooo-motionpath-buzz-saw" },
518 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 20 ,"ooo-motionpath-curved-square" },
519 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 21 ,"ooo-motionpath-curved-x" },
520 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 23 ,"ooo-motionpath-curvy-star" },
521 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 28 ,"ooo-motionpath-figure-8-four" },
522 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 26 ,"ooo-motionpath-horizontal-figure-8" },
523 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 34 ,"ooo-motionpath-inverted-square" },
524 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 33 ,"ooo-motionpath-inverted-triangle" },
525 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 24 ,"ooo-motionpath-loop-de-loop" },
526 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 29 ,"ooo-motionpath-neutron" },
527 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 27 ,"ooo-motionpath-peanut" },
528 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 32 ,"ooo-motionpath-clover" },
529 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 19 ,"ooo-motionpath-pointy-star" },
530 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 30 ,"ooo-motionpath-swoosh" },
531 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 22 ,"ooo-motionpath-vertical-figure-8" },
532 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 35 ,"ooo-motionpath-left" },
533 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 63 ,"ooo-motionpath-right" },
534 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 55 ,"ooo-motionpath-spiral-left" },
535 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 46 ,"ooo-motionpath-spiral-right" },
536 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 40 ,"ooo-motionpath-sine-wave" },
537 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 59 ,"ooo-motionpath-s-curve-1" },
538 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 39 ,"ooo-motionpath-s-curve-2" },
539 : { ::com::sun::star::presentation::EffectPresetClass::MOTIONPATH, 45 ,"ooo-motionpath-heartbeat" },
540 :
541 : { 0,0,0 }
542 : };
543 :
544 : } // namespace ppt
545 :
546 : #endif
547 :
548 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|