1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
20 xmlns:
office=
"urn:oasis:names:tc:openoffice:xmlns:office:1.0"
21 xmlns:
style=
"urn:oasis:names:tc:openoffice:xmlns:style:1.0"
22 xmlns:
text=
"urn:oasis:names:tc:openoffice:xmlns:text:1.0"
23 xmlns:
table=
"urn:oasis:names:tc:openoffice:xmlns:table:1.0"
24 xmlns:
draw=
"urn:oasis:names:tc:openoffice:xmlns:drawing:1.0"
25 xmlns:
fo=
"http://www.w3.org/1999/XSL/Format"
26 xmlns:
xlink=
"http://www.w3.org/1999/xlink"
27 xmlns:
dc=
"http://purl.org/dc/elements/1.1/"
28 xmlns:
meta=
"urn:oasis:names:tc:openoffice:xmlns:meta:1.0"
29 xmlns:
number=
"urn:oasis:names:tc:openoffice:xmlns:datastyle:1.0"
30 xmlns:
pres=
"urn:oasis:names:tc:openoffice:xmlns:presentation:1.0"
31 xmlns:
svg=
"http://www.w3.org/2000/svg"
32 xmlns:
chart=
"urn:oasis:names:tc:openoffice:xmlns:chart:1.0"
33 xmlns:
dr3d=
"urn:oasis:names:tc:openoffice:xmlns:dr3d:1.0"
34 xmlns:
math=
"http://www.w3.org/1998/Math/MathML"
35 xmlns:
form=
"urn:oasis:names:tc:openoffice:xmlns:form:1.0"
36 xmlns:
script=
"urn:oasis:names:tc:openoffice:xmlns:script:1.0"
37 xmlns:
ooo=
"http://openoffice.org/2004/office"
38 xmlns:
ooow=
"http://openoffice.org/2004/writer"
39 xmlns:
oooc=
"http://openoffice.org/2004/calc"
40 xmlns:
dom=
"http://www.w3.org/2001/xml-events"
41 xmlns:
smil=
"http://www.w3.org/2001/SMIL20"
42 xmlns:
anim=
"urn:oasis:names:tc:openoffice:xmlns:animation:1.0"
47 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-fly-in']">
48 <anim:par pres:
preset-property=
"Direction;Accelerate;Decelerate">
49 <xsl:apply-templates select=
"*|@*|text()"/>
53 <!-- fade in an swivel -->
54 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-fade-in-and-swivel']">
55 <anim:iterate pres:
text-only=
"true">
56 <xsl:apply-templates select=
"*|@*|text()"/>
61 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-falling-in']">
62 <anim:iterate pres:
text-only=
"true">
63 <xsl:apply-templates select=
"*|@*|text()"/>
68 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-unfold']">
69 <anim:iterate pres:
text-only=
"true">
70 <xsl:apply-templates select=
"*|@*|text()"/>
75 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-unfold']">
76 <anim:iterate pres:
text-only=
"true">
77 <xsl:apply-templates select=
"*|@*|text()"/>
81 <!-- turn and grow -->
82 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-turn-and-grow']">
83 <anim:iterate pres:
text-only=
"true">
84 <xsl:apply-templates select=
"*|@*|text()"/>
89 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-fold']">
90 <anim:par pres:
text-only=
"true">
91 <xsl:apply-templates select=
"*|@*|text()"/>
96 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-whip']">
97 <anim:iterate pres:
text-only=
"true">
98 <xsl:apply-templates select=
"*|@*|text()"/>
103 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-flip']">
104 <anim:iterate pres:
text-only=
"true">
105 <xsl:apply-templates select=
"*|@*|text()"/>
110 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-swish']">
111 <anim:iterate pres:
text-only=
"true">
112 <xsl:apply-templates select=
"*|@*|text()"/>
117 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-venetian-blinds']">
118 <anim:par pres:
preset-property=
"Direction">
119 <xsl:apply-templates select=
"*|@*|text()"/>
124 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-box']">
125 <anim:par pres:
preset-property=
"Direction">
126 <xsl:apply-templates select=
"*|@*|text()"/>
130 <!-- checkerboard -->
131 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-checkerboard']">
132 <anim:par pres:
preset-property=
"Direction">
133 <xsl:apply-templates select=
"*|@*|text()"/>
138 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-circle']">
139 <anim:par pres:
preset-property=
"Direction">
140 <xsl:apply-templates select=
"*|@*|text()"/>
145 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-fly-in-slow']">
146 <anim:par pres:
preset-property=
"Direction">
147 <xsl:apply-templates select=
"*|@*|text()"/>
152 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-diamond']">
153 <anim:par pres:
preset-property=
"Direction">
154 <xsl:apply-templates select=
"*|@*|text()"/>
159 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-peek-in']">
160 <anim:par pres:
preset-property=
"Direction">
161 <xsl:apply-templates select=
"*|@*|text()"/>
166 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-plus']">
167 <anim:par pres:
preset-property=
"Direction">
168 <xsl:apply-templates select=
"*|@*|text()"/>
173 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-random-bars']">
174 <anim:par pres:
preset-property=
"Direction">
175 <xsl:apply-templates select=
"*|@*|text()"/>
180 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-split']">
181 <anim:par pres:
preset-property=
"Direction">
182 <xsl:apply-templates select=
"*|@*|text()"/>
187 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-diagonal-squares']">
188 <anim:par pres:
preset-property=
"Direction">
189 <xsl:apply-templates select=
"*|@*|text()"/>
194 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-wheel']">
195 <anim:par pres:
preset-property=
"Spokes">
196 <xsl:apply-templates select=
"*|@*|text()"/>
201 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-wipe']">
202 <anim:par pres:
preset-property=
"Direction">
203 <xsl:apply-templates select=
"*|@*|text()"/>
207 <!-- color typewriter -->
208 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-entrance-colored-lettering']">
209 <anim:iterate pres:
preset-property=
"Color1;Color2" pres:
text-only=
"true">
210 <xsl:apply-templates select=
"*|@*|text()"/>
215 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-stretchy']">
216 <anim:par pres:
preset-property=
"Direction">
217 <xsl:apply-templates select=
"*|@*|text()"/>
222 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-zoom']">
223 <anim:par pres:
preset-property=
"Zoom">
224 <xsl:apply-templates select=
"*|@*|text()"/>
229 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-entrance-swivel']">
230 <anim:par pres:
preset-property=
"Direction">
231 <xsl:apply-templates select=
"*|@*|text()"/>
237 <!-- change fill color -->
238 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-fill-color']">
239 <anim:par pres:
preset-property=
"FillColor;ColorStyle;Accelerate;Decelerate;AutoReverse">
240 <xsl:apply-templates select=
"*|@*|text()"/>
245 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-font']">
246 <anim:par pres:
preset-property=
"FontStyle" pres:
text-only=
"true">
247 <xsl:apply-templates select=
"*|@*|text()"/>
251 <!-- change font color -->
252 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-font-color']">
253 <anim:par pres:
preset-property=
"CharColor;ColorStyle;Accelerate;Decelerate;AutoReverse" pres:
text-only=
"true">
254 <xsl:apply-templates select=
"*|@*|text()"/>
258 <!-- change font size -->
259 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-font-size']">
260 <anim:par pres:
preset-property=
"CharHeight" pres:
text-only=
"true">
261 <xsl:apply-templates select=
"*|@*|text()"/>
265 <!-- change font style -->
266 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-font-style']">
267 <anim:par pres:
preset-property=
"CharDecoration" pres:
text-only=
"true">
268 <xsl:apply-templates select=
"*|@*|text()"/>
272 <!-- change line color -->
273 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-line-color']">
274 <anim:par pres:
preset-property=
"LineColor;ColorStyle;Accelerate;Decelerate;AutoReverse">
275 <xsl:apply-templates select=
"*|@*|text()"/>
280 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-grow-and-shrink']">
281 <anim:par pres:
preset-property=
"Scale;Accelerate;Decelerate;AutoReverse">
282 <xsl:apply-templates select=
"*|@*|text()"/>
287 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-spin']">
288 <anim:par pres:
preset-property=
"Rotate;Accelerate;Decelerate;AutoReverse">
289 <xsl:apply-templates select=
"*|@*|text()"/>
293 <!-- Transparency -->
294 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-transparency']">
295 <anim:par pres:
preset-property=
"Transparency">
296 <xsl:apply-templates select=
"*|@*|text()"/>
300 <!-- brush on color -->
301 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-color-over-by-word']">
302 <anim:iterate pres:
preset-property=
"Color" pres:
text-only=
"true">
303 <xsl:apply-templates select=
"*|@*|text()"/>
308 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-color-blend']">
309 <anim:par pres:
preset-property=
"Color">
310 <xsl:apply-templates select=
"*|@*|text()"/>
315 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-color-over-by-letter']">
316 <anim:iterate pres:
preset-property=
"Color" pres:
text-only=
"true">
317 <xsl:apply-templates select=
"*|@*|text()"/>
322 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-bold-flash']">
323 <anim:par pres:
text-only=
"true">
324 <xsl:apply-templates select=
"*|@*|text()"/>
328 <!-- reveal underline -->
329 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-reveal-underline']">
330 <anim:iterate pres:
text-only=
"true">
331 <xsl:apply-templates select=
"*|@*|text()"/>
336 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-shimmer']">
337 <anim:iterate pres:
text-only=
"true">
338 <xsl:apply-templates select=
"*|@*|text()"/>
342 <!-- verticales highlight -->
343 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-vertical-highlight']">
344 <anim:par pres:
preset-property=
"Color">
345 <xsl:apply-templates select=
"*|@*|text()"/>
350 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-flicker']">
351 <anim:par pres:
preset-property=
"Color">
352 <xsl:apply-templates select=
"*|@*|text()"/>
356 <!-- grow with color -->
357 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-grow-with-color']">
358 <anim:iterate pres:
preset-property=
"Color" pres:
text-only=
"true">
359 <xsl:apply-templates select=
"*|@*|text()"/>
364 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-teeter']">
365 <anim:par pres:
preset-property=
"Color">
366 <xsl:apply-templates select=
"*|@*|text()"/>
371 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-blast']">
372 <anim:par pres:
preset-property=
"Color">
373 <xsl:apply-templates select=
"*|@*|text()"/>
377 <!-- style emphasis -->
378 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-emphasis-style-emphasis']">
379 <anim:par pres:
preset-property=
"Color" pres:
text-only=
"true">
380 <xsl:apply-templates select=
"*|@*|text()"/>
385 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-bold-reveal']">
386 <anim:iterate pres:
text-only=
"true">
387 <xsl:apply-templates select=
"*|@*|text()"/>
392 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-emphasis-wave']">
393 <anim:iterate pres:
text-only=
"true">
394 <xsl:apply-templates select=
"*|@*|text()"/>
401 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-venetian-blinds']">
402 <anim:par pres:
preset-property=
"Direction">
403 <xsl:apply-templates select=
"*|@*|text()"/>
408 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-box']">
409 <anim:par pres:
preset-property=
"Direction">
410 <xsl:apply-templates select=
"*|@*|text()"/>
414 <!-- checkerboard -->
415 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-checkerboard']">
416 <anim:par pres:
preset-property=
"Direction">
417 <xsl:apply-templates select=
"*|@*|text()"/>
422 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-circle']">
423 <anim:par pres:
preset-property=
"Direction">
424 <xsl:apply-templates select=
"*|@*|text()"/>
429 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-crawl-out']">
430 <anim:par pres:
preset-property=
"Direction">
431 <xsl:apply-templates select=
"*|@*|text()"/>
436 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-diamond']">
437 <anim:par pres:
preset-property=
"Direction">
438 <xsl:apply-templates select=
"*|@*|text()"/>
443 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-fly-out']">
444 <anim:par pres:
preset-property=
"Direction;Accelerate;Decelerate">
445 <xsl:apply-templates select=
"*|@*|text()"/>
450 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-peek-out']">
451 <anim:par pres:
preset-property=
"Direction">
452 <xsl:apply-templates select=
"*|@*|text()"/>
457 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-plus']">
458 <anim:par pres:
preset-property=
"Direction">
459 <xsl:apply-templates select=
"*|@*|text()"/>
464 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-random-bars']">
465 <anim:par pres:
preset-property=
"Direction">
466 <xsl:apply-templates select=
"*|@*|text()"/>
471 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-split']">
472 <anim:par pres:
preset-property=
"Direction">
473 <xsl:apply-templates select=
"*|@*|text()"/>
478 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-diagonal-squares']">
479 <anim:par pres:
preset-property=
"Direction">
480 <xsl:apply-templates select=
"*|@*|text()"/>
485 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-wheel']">
486 <anim:par pres:
preset-property=
"Spokes">
487 <xsl:apply-templates select=
"*|@*|text()"/>
492 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-wipe']">
493 <anim:par pres:
preset-property=
"Direction">
494 <xsl:apply-templates select=
"*|@*|text()"/>
499 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-collapse']">
500 <anim:par pres:
preset-property=
"Direction">
501 <xsl:apply-templates select=
"*|@*|text()"/>
505 <!-- color typewriter -->
506 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-colored-lettering']">
507 <anim:iterate pres:
preset-property=
"Color1;Color2" pres:
text-only=
"true">
508 <xsl:apply-templates select=
"*|@*|text()"/>
513 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-zoom']">
514 <anim:par pres:
preset-property=
"Zoom">
515 <xsl:apply-templates select=
"*|@*|text()"/>
520 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-swivel']">
521 <anim:par pres:
preset-property=
"Direction">
522 <xsl:apply-templates select=
"*|@*|text()"/>
526 <!-- fade in an swivel -->
527 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-fade-out-and-swivel']">
528 <anim:iterate pres:
text-only=
"true">
529 <xsl:apply-templates select=
"*|@*|text()"/>
533 <!-- fade in an swivel -->
534 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-turn-and-grow']">
535 <anim:iterate pres:
text-only=
"true">
536 <xsl:apply-templates select=
"*|@*|text()"/>
541 <xsl:template match=
"anim:par[@pres:preset-id = 'ooo-exit-fold']">
542 <anim:par pres:
text-only=
"true">
543 <xsl:apply-templates select=
"*|@*|text()"/>
548 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-whip']">
549 <anim:iterate pres:
text-only=
"true">
550 <xsl:apply-templates select=
"*|@*|text()"/>
555 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-flip']">
556 <anim:iterate pres:
text-only=
"true">
557 <xsl:apply-templates select=
"*|@*|text()"/>
562 <xsl:template match=
"anim:iterate[@pres:preset-id = 'ooo-exit-swish']">
563 <anim:iterate pres:
text-only=
"true">
564 <xsl:apply-templates select=
"*|@*|text()"/>
568 <!-- remove pres:group-id -->
569 <xsl:template match=
"@xlink:href" />
570 <xsl:template match=
"@smil:targetElement" />
571 <xsl:template match=
"@pres:group-id" />
574 <xsl:template match=
"*|@*|text()">
576 <xsl:apply-templates select=
"*|@*|text()"/>