Difference between revisions of "PresentationML"
(more transitions) |
(final polish of transition list) |
||
Line 23: | Line 23: | ||
==== Transitions ==== | ==== Transitions ==== | ||
− | Transition in OOx and OpenDocument are not exactly the same but there is almost a 1 to 1 mapping. | + | Transition in OOx and OpenDocument are not exactly the same but there is almost a 1 to 1 mapping. They are both based on [[SMIL]] transitions. See also: http://www.w3.org/TR/2005/REC-SMIL2-20050107/smil-transitions.html#Table%201:%20Taxonomy%20Table |
− | |||
− | See also: http://www.w3.org/TR/2005/REC-SMIL2-20050107/smil-transitions.html#Table%201:%20Taxonomy%20Table | ||
* '''ID''': the XML token | * '''ID''': the XML token | ||
Line 52: | Line 50: | ||
| pull || pull || || Y || SLIDEWIPE || (reversed) | | pull || pull || || Y || SLIDEWIPE || (reversed) | ||
|- | |- | ||
− | | cut || cut || || N || | + | | cut || cut || || N || || || the bin filter ignore this too. the closest thing is not transition |
|- | |- | ||
− | | cut || cut || thruBlk || N || FADE || FADEOVERCOLOR | + | | cut || cut || thruBlk || N || FADE || FADEOVERCOLOR || will be slower than in PPT. But the binfilter ignore it too. |
|- | |- | ||
| fade || fade || || Y || FADE || CROSSFADE | | fade || fade || || Y || FADE || CROSSFADE | ||
Line 88: | Line 86: | ||
| wheel || wheel || "8" || Y || PINWHEELWIPE || EIGHTBLADE | | wheel || wheel || "8" || Y || PINWHEELWIPE || EIGHTBLADE | ||
|- | |- | ||
− | | wheel || wheel || * || Y || PINWHEELWIPE || || the number is converted to 1, 2, 3, 4, 8 depending on the match | + | | wheel || wheel || * || Y || PINWHEELWIPE || || the number is converted to 1, 2, 3, 4, 8 depending on the match. I don't see how to get different numbers from PPT2007 |
|- | |- | ||
| randomBar || randomBar || horz || Y || RANDOMBARWIPE || HORIZONTAL | | randomBar || randomBar || horz || Y || RANDOMBARWIPE || HORIZONTAL | ||
Line 100: | Line 98: | ||
| dissolve || dissolve || || Y || DISSOLVE || DEFAULT | | dissolve || dissolve || || Y || DISSOLVE || DEFAULT | ||
|- | |- | ||
− | | newsflash || newsflash || || N || || | + | | newsflash || newsflash || || N || || || The binfilter ignore it too. It seems to use the previous transition instead. Or maybe it is just a coincidence that it is crossbar. |
|- | |- | ||
| plus || plus || || Y || FOURBOXWIPE || CORNERSOUT || | | plus || plus || || Y || FOURBOXWIPE || CORNERSOUT || | ||
Line 108: | Line 106: | ||
| wedge || wedge || || Y || FANWIPE || CENTERTOP | | wedge || wedge || || Y || FANWIPE || CENTERTOP | ||
|- | |- | ||
− | | zoom || zoom || || Y || ZOOM || DEFAULT | + | | zoom || zoom || || Y || ZOOM || DEFAULT || Couldn't find it in PPT |
|- | |- | ||
|} | |} |
Revision as of 21:01, 20 April 2007
PresentationML is the XML format used by Microsoft PowerPoint 2007 and that is part of the Office Open XML specification. It defines all the structure for the presentation related data. Pure graphic data (ie the content of the slide) is described using DrawingML.
Finding sample files
Use google and look for "download pptx".
Code organisation
oox/source/ppt/ contain the PresentationML specific code for the importer as well as dealing with presentation specific data.
oox/source/drawingml is for DrawingML. Most of the slide content is actually DrawingML.
Data Model
SlidePersist is the class that contain the slide data, including reference to the associated theme and color scheme. It can be a slide, a master slide, note page or handout master.
It is all stored in some way in a XModel.
Animation
Animation are heavily based on SMIL, much like the internals of Impress. There are 3 parts: slide transition, slide timing and shape animations
Transitions
Transition in OOx and OpenDocument are not exactly the same but there is almost a 1 to 1 mapping. They are both based on SMIL transitions. See also: http://www.w3.org/TR/2005/REC-SMIL2-20050107/smil-transitions.html#Table%201:%20Taxonomy%20Table
- ID: the XML token
- OOo Status: Yes or No.
- Type: the type as defined in com/sun/star/animations/TransitionType.hpp
- SubType: the type as defined in com/sun/star/animations/TransitionSubType.hpp
PowerPoint 2007 Name | ID | Param | OOo Status | Type | Subtype | Note |
---|---|---|---|---|---|---|
blinds | blinds | vert | Y | BLINDSWIPE | VERTICAL | |
horz | Y | BLINDSWIPE | HORIZONTAL | |||
checker | checker | vert | Y | CHECKERBOARDWIPE | VERTICAL | |
horz | Y | CHECKERBOARDWIPE | HORIZONTAL | |||
comb | comb | vert | Y | PUSHWIPE | COMBVERTICAL | |
horz | Y | PUSHWIPE | COMBHORIZONTAL | |||
cover | cover | Y | SLIDEWIPE | |||
pull | pull | Y | SLIDEWIPE | (reversed) | ||
cut | cut | N | the bin filter ignore this too. the closest thing is not transition | |||
cut | cut | thruBlk | N | FADE | FADEOVERCOLOR | will be slower than in PPT. But the binfilter ignore it too. |
fade | fade | Y | FADE | CROSSFADE | ||
fade | fade | thruBlk | Y | FADE | FADEOVERCOLOR | |
push | push | d | Y | PUSHWIPE | FROMTOP | |
l | Y | PUSHWIPE | FROMLEFT | |||
r | Y | PUSHWIPE | FROMRIGHT | |||
u | Y | PUSHWIPE | FROMBOTTOM | |||
wipe | wipe | d | Y | BARWIPE | FROMTOP | |
l | Y | BARWIPE | FROMLEFT | |||
r | Y | BARWIPE | FROMRIGHT | |||
u | Y | BARWIPE | FROMBOTTOM | |||
split | split | Y | BARNDOORWIPE | HORIZONTAL or VERTICAL (reverse for IN) | ||
wheel | wheel | "1" | Y | PINWHEELWIPE | ONEBLADE | |
wheel | wheel | "2" | Y | PINWHEELWIPE | TWOBLADEVERTICAL | |
wheel | wheel | "3" | Y | PINWHEELWIPE | THREEBLADE | |
wheel | wheel | "4" | Y | PINWHEELWIPE | FOURBLADE | |
wheel | wheel | "8" | Y | PINWHEELWIPE | EIGHTBLADE | |
wheel | wheel | * | Y | PINWHEELWIPE | the number is converted to 1, 2, 3, 4, 8 depending on the match. I don't see how to get different numbers from PPT2007 | |
randomBar | randomBar | horz | Y | RANDOMBARWIPE | HORIZONTAL | |
randomBar | randomBar | vert | Y | RANDOMBARWIPE | VERTICAL | |
circle | circle | Y | ELLIPSEWIPE | CIRCLE | ||
diamond | diamond | Y | IRISWIPE | DIAMOND | ||
dissolve | dissolve | Y | DISSOLVE | DEFAULT | ||
newsflash | newsflash | N | The binfilter ignore it too. It seems to use the previous transition instead. Or maybe it is just a coincidence that it is crossbar. | |||
plus | plus | Y | FOURBOXWIPE | CORNERSOUT | ||
random | random | Y | RANDOM | DEFAULT | ||
wedge | wedge | Y | FANWIPE | CENTERTOP | ||
zoom | zoom | Y | ZOOM | DEFAULT | Couldn't find it in PPT |
There are also some limitations: OOo does not seem to support "stopping sound". Neither does it support embedded sound (see below).
Timing
Shape Animations
Limitations
Office Open XML specify that sound can be embedded in the file (in the container) and use relationships to refer to it. Unfortunately as of today OpenOffice is unable to do so. To that effect sounds are copied in the gallery and opened from there. For standard built-in sound, just refer to it. For none built-in sound, discard it.