Presentation is loading. Please wait.

Presentation is loading. Please wait.

PresentationML.

Similar presentations


Presentation on theme: "PresentationML."— Presentation transcript:

1 PresentationML

2 Disclaimer The information contained in this slide deck represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication. This slide deck is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this slide deck may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this slide deck. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this slide deck does not give you any license to these patents, trademarks, copyrights, or other intellectual property. Unless otherwise noted, the example companies, organizations, products, domain names, addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, address, logo, person, place or event is intended or should be inferred. © 2006 Microsoft Corporation. All rights reserved. Microsoft, 2007 Microsoft Office System, .NET Framework 3.0, Visual Studio, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.

3 PresentationML Document Architecture
View Properties Presentation Properties Code Themes Fonts Notes Masters Slides Handout Masters Slide Masters Notes Slides Slide Layouts Presentation

4 A Typical Slide

5 Sample Slide Typical slide with common types of content: Shape Textbox
Chart

6 Slide part (slide1.xml) <p:sld xmlns:p=“…/presentationml/2006/main”
xmlns:a=“…/drawingml/2006/main” …> <p:cSld> <p:spTree> <p:sp> <p:nvSpPr>   <p:cNvPr id="2" name="7-Point Star 1” />   <p:cNvPr id="3" name="TextBox 2” /> <p:graphicFrame> <p:nvGraphicFramePr> <p:cNvPr id="4" name="Chart 3” /> </p:spTree> </p:cSld> <p:clrMapOvr> <a:masterClrMapping /> </p:clrMapOvr> </p:sld> Shape Textbox Chart

7 Chart Part (chart1.xml) Data source DEMO Shape Textbox Chart

8 Tables

9 Tables in PresentationML
Slide part contains table definition In a graphicFrame element All DrawingML is in the slide – no separate “table part” Header-row formatting: YES Banded-row formatting: YES Table position TableStyleID = GUID Table definition

10 Table Definition: Layout
EMUs: /inch, 12700/pt <a:tbl> ... <a:tblGrid> <a:gridCol w=" " /> </a:tblGrid> <a:tr h="867195"> </a:tr> <a:tr h=" "> </a:tbl> Column widths = 2.75” Header row height = .95” Row 2/3 height = 1.64”

11 Table Definition: Content
<a:tbl> ... <a:tr h="867195"> <a:tc> <a:txBody> <a:bodyPr /> <a:p><a:r><a:t>Heading #1</a:t></a:r></a:p> </a:txBody> </a:tc> <a:tc> ... Heading #2 ...</a:tc> <a:tc> ... Heading #3 ...</a:tc> </a:tr> <a:tr h=" "> <a:p><a:r><a:t>column 1, row 2</a:t></a:r></a:p> <a:tc> ... column 2, row </a:tc> <a:tc> ... column 3, row </a:tc> <a:p><a:r><a:t>column 1, row 3</a:t></a:r></a:p> <a:tc> ... column 2, row </a:tc> <a:tc> ... column 3, row </a:tc> </a:tbl> <tc> - table cell <txBody> - text body <bodyPr> - required, but may be empty Para/Run/Text, as in WordprocessingML DEMO

12 Table Styles – tableStyles.xml
Implicit relationship from presentation Style are identified by GUID, not rId

13 Table Styles – table part styles
13 table part styles may be defined within each style: wholeTbl – formatting for the entire table band1H – 1st/3rd/5th/etc row banding format (when enabled) band2H – 2nd/4th/6th/etc row banding format (when enabled) band1V – 1st/3rd/5th/etc column banding format (when enabled) band2V –2nd/4th/6th/etc column banding format (when enabled) lastCol – last-column formatting (when enabled) firstCol – first-column formatting (when enabled) lastRow – last-row formatting (when enabled) firstRow – first-row formatting (when enabled) seCell – southeast column format (when last-row/last-col enabled) swCell – southwest column format (when 1st-col/last-row enabled) neCell – northeast column format (when lastt-col/1st-row enabled) nwCell – northwest column format (when 1stt-col/1st-row enabled) And #14 … table background style (not actually a table part) DEMO

14 Presentation Element

15 Presentation Element <presentation>
Start part: presentation.xml Relationships part: presentation.xml.rels <p:presentation xmlns:r=“…/officeDocument/relationship“ xmlns:p=“…/presentationml/3/main"> <p:sldMasterIdLst> <p:sldMasterId r:id="rId1"/> </p:sldMasterIdLst> <p:notesMasterIdLst> <p:notesMasterId r:id="rId5"/> </p:notesMasterIdLst> <p:handoutMasterIdLst> <p:handoutMasterId r:id="rId6"/> </p:handoutMasterIdLst> <p:sldIdLst> <p:sldId id="256" r:id="rId2"/> <p:sldId id="257" r:id="rId3"/> <p:sldId id="258" r:id="rId4"/> </p:sldIdLst> <p:sldSz cx=" " cy=" " type="screen"/> <p:notesSz cx=" " cy=" "/> </p:presentation> Slide Masters Notes Masters Handout Masters Slides Sizing info DEMO <Relationships xmlns=" <Relationship Id="rId8” Type=“…relationships/viewProps" Target="viewProps.xml"/> <Relationship Id="rId2“ Type=“…/relationships/slide“ Target="slides/slide1.xml"/> <Relationship Id="rId3“ Type=“…/relationships/slide“ Target="slides/slide2.xml"/> <Relationship Id="rId4“ Type=“…/relationships/slide” Target="slides/slide3.xml"/> <Relationship Id="rId9” Type=“…/relationships/theme” Target="theme/theme1.xml"/> </Relationships> 15

16 Presentation Element: Non-Slide Content
Masters Lists Slide Masters, Notes Masters, Handout Masters Custom Shows Sizing Information Save-Related Properties Embed TrueType fonts, compress pictures, modify password Editor-Related Properties Smart tags, zoom scale, compatibility mode Content-Related Properties First slide #, show placeholders, PhotoAlbum properties HTML Publish properties, web properties Slide Show properties Looping, narration, animation, timing

17 Masters

18 Slide Master Defines common properties for a set of layouts
Layouts inherit properties from Slide Master Slide inherits properties from Slide Layout Slides may override Slide Master property settings

19 Other Masters Notes Master: specifies master properties for slide notes page Handout Master: specifies formatting for handout pages

20 Slide Layouts

21 Masters and Layouts One master has many layouts that inherit from it
<sldLayoutIdLst> list the relationship IDs for the layouts slideMaster1.xml slideMaster1.xml.rels

22 Anatomy of a Slide Layout
Placeholder Formatting Body Placeholder Click to add sales summary Background Object Headers and Footers (date, footer, slide #) Title Placeholder Subtitle Placeholder (TBD) Background Fill

23 Layout Types Title Text Two Column Text Table Text and Chart
Chart and Text Diagram Chart Text and ClipArt ClipArt and Text Title Only Blank Text and Object Object and Text Object Only Object Text and Media Media and Text Object over Text Text over Object Text and Two Objects Two Objects and Text Two Objects over Text Four Objects Vertical Text ClipArt and Vertical Text Vertical Title and Text Vertical Title and Text over Chart Two Objects Object and Two Objects Two Objects and Object

24 Layouts and Masters Title Placeholder information inherited from Slide Master Other “content” placeholders projected into Body Placeholder

25 Master Text Styles Defined in slideMaster1.xml Inherited by layouts
Text-style sections: Title Body Notes Other

26 Placeholders Regions on slide master/layouts
Primary purpose: organize slide content consistently Placeholders are shapes and can be edited Placeholders inherit from the slide master Title placeholder inherits from master-slide title placeholder Content placeholder inherits from master body placeholder Placeholders generally contain properties not content Exception: placeholder text (“Click to add title”) Rendered on masters and layouts, but not on slides Instantiation of placeholders replaces with a new shape (except for pictures)

27 Placeholders <ph>
Specialized instances of shapes done in client data They are actual shapes on the slide surface Placeholders cannot be grouped Some Placeholders are projected into Body Placeholder of the previous surface Size is a function of Body Placeholder size Full Half Quarter

28 Placeholder Types Any placeholder can appear on a slide or slide layout Some placeholders can’t appear on master slide Placeholder type Use on Master Slide? Use on Layout? Use on Slide? Title YES Body Center Title No Sub-Title Date/Time Slide Number Footer Object, Chart, ClipArt, Diagram, Media, Picture

29 Notes

30 Slide Notes Adding notes to slides programmatically requires several supporting steps: You must define a Notes Master You must define the layout of printed Notes pages Should include placeholders for slide image and slide # For these reasons, you’ll want to use embedded resources for the slide notes and notes master parts

31 Slide Notes part One slide notes part for each slide that has notes
Slide notes part has two relationships To the slide with which it is associated To the Notes Master, for layout information Slide notes part is essentially a slide <p:spTree> element containing a slide definition Inside <p:cSld>, which is inside the root note <p:notes>

32 Slide Notes part: slideNotes1.xml

33 Notes Master part: notesMaster1.xml
DEMO

34 Comments

35 Comments Can only be added to slides ( not masters or layouts )
Special shapes with simple text, no formatting options Each slide with comments has a comment part May contain any number of comments Slide has an implicit relationship to its comment part Each comment is attached to a comment author Comment authors are stored in the CAL (comment author list) The package has a relationship to the CAL

36 Comment Part: comment1.xml
The comment part defines position and content Author information is referenced by a Author ID (as defined in the CAL) Author Time stamp Index Position Text

37 CAL: commentAuthors.xml
One comment author list per presentation lastIdx value must be maintained for each author clrIdx allows color-coding of each author’s comments Only one author per unique name+initials Author ID Full name Initials Last index Color index

38 Slide Transitions

39 Slide Transition Animation effect when changing slides
22 predefined slide transitions available

40 Slide Transition Example
<p:sld> <p:cSld>... <p:clrMapOvr>... <p:transition> <p:fade /> </p:transition> <p:timing>... </p:sld> Slide Transition

41 Animations

42 Timelines Dictates the order of animations Done through Time Nodes
Can have nested Time Nodes 3 types of time Nodes Timeline Start End <seq> Sequence Timeline Start End <par> Parallel Timeline Start End <excl> Exclusive <par> Stopped

43 Timeline Example A B1 B2 C

44 <seq> Time Container
Timeline Example <seq> Main Sequence <seq> Time Container A <par> Time Container B1 B2 C Timeline 3

45 Timeline Example <p:timing> <p:tnLst>
<p:seq concurrent="1" nextAc="seek"> <p:stCondLst>... <p:cTn id="2" dur="indefinite" nodeType="mainSeq"> <p:childTnLst> <p:seq> // Square A <p:seq> <par> // Square B1 <par> // Square B2 </p:seq> <p:seq> // Square C </p:childTnLst> </p:cTn> <p:prevCondLst>... <p:nextCondLst>... </seq> </p:tnLst> <p:bldLst>... </p:timing>

46 Animation Effects Six pre-defined animations effects – may be combined
Element Name / Example <anim> <animColor> <animEffect> <animMotion> <animRotation> <animScale> Animate Behavior Animate Color Animate Effect Animate Motion Animate Rotation Animate Scale

47 Light Bulb Animation Example <p:par> <p:cTn id="5">
<p:childTnLst> <p:animScale> // Animation Scale <p:cBhvr> // Animation Properties <p:cTn id="7" dur="500" autoRev="1" fill="hold"/> <p:tgtEl> // Target Element <p:spTgt spid="9"/> </p:tgtEl> </p:cBhvr> <p:by x="105000" y="105000"/> // Effect </p:animScale> <p:animEffect transition="out" filter="fade">... // Animation Effect </p:childTnLst> </p:cTn> </p:par>

48 Conditions Allow granular control of animations Description
Element Name Description <stCondLst> Start Condition Conditions that must be met for the time node to start. <prevCondLst> Previous Condition Conditions that must be met for a time node to go back to the previous node. <nextCondLst> Next Conditions Conditions that must be met for a time node to advance to the next node. <endCondLst> End Conditions Conditions that must be met for a time node to end.

49 Conditions Example <p:par>
<p:cTn id="5" nodeType="clickEffect"> <p:stCondLst> // Start Condition List <p:cond delay=“1000"/> // Condition </p:stCondLst> <p:childTnLst> <p:animRot by=" ">... </p:childTnLst> </p:cTn> </p:par>

50


Download ppt "PresentationML."

Similar presentations


Ads by Google