A Slide Can Contain a Link to Another Slide
PresentationML Slides - Overview
A slide every bit information technology appears in a presentation results from the combination of three components forming a hierarchy: (1) at the bottom is what is specified for the chief slide upon which the slide is based, (2) in the eye is the layout that is applied to the slide, and (three) at the top is the actual slide content.
The master slide is the template upon which the slide is built; it specifies such properties equally the font styles for the title, body, and footer, placeholder positions for text and objects, bullets styles, and groundwork. The layout is a second layer of design which may augment or override what is specified in the master slide. Finally, the slide itself volition specify content and formatting that is not already specified past the master slide and slide layout. Properties and content defined in a slide layout will override similar properties and content specified in the main slide, and properties and conetent specified in the slide volition override like properties and content defines in the layout.
Each of these three components is a divide part (due east.thou., slideMaster1.xml, slideLayout1.xml, and slide1.xml), with dissimilar root elements (<p:sldMaster>, <p:sldLayout>, and <p:sld>). They each accept slightly dissimilar content models, but they share some common elements. Beneath is a tabular array showing the slide types and the elements that they can incorporate.
Slide Master | Slide Layout | Slide | Notes Master | Notes | Handout Master | |
---|---|---|---|---|---|---|
<p:clrMap> | 10 | X | X | |||
<p:cSld> | 10 | X | X | Ten | X | X |
<p:hf> | X | Ten | 10 | Ten | ||
<p:notesStyle> | X | |||||
<p:clrMapOvr> | X | Ten | X | |||
<p:sldLayoutLst> | X | |||||
<p:timing> | Ten | X | X | |||
<p:transition> | 10 | X | 10 | |||
<p:txStyles> | X |
Placeholders, Slide/Layout/Master Hierarchy, and Overriding Properties and Content
To understand how the slide hierarchy works, 1 must understand the use of placeholders. Placeholders link the three layers together then that overriding is possible. Slides, layouts, and masters are all similiarly synthetic out of shapes. Notation from the table higher up that each slide type has a <p:cSld> or common slide data element. Within that element is a grouping of one or more shapes, whether they be geometric shapes, text boxes, slide number fields, date fields, footers, etc.--they are all inside shapes (<p:sp> elements). Each shape chemical element contains a set of non-visual backdrop (<p:nvSpPr>). Within that chemical element is a <p:nvPr> for non-visual backdrop, and that element can contain a <p:ph> chemical element for a placeholder. The placeholder element is empty but does have several possible attributes. Information technology is using the idx and type attributes that the shapes are linked across the three slide types.
Placeholders are created at the master and layout levels. That is, they can be added and deleted at those levels but not at the slide level. At the slide level they are only referenced or linked to the lower layout layer. That is, a slide can reference a placeholder at the layout level but not at the master level. Similarly a layout can reference a placeholder at the master slide level.
The <p:ph> element has the following possible attributes. At that place are no child elements.
Attribute | Description |
---|---|
hasCustomPrompt | Indicates whether the placeholder should have a client prompt. Values are booleans. |
idx | Specifies the index of the placeholder. This is used when applying templates or changing layouts to match a placeholder on one template or master to another. |
sz | Specifies the size of the placeholder. Possible values are full, half, and quarter. |
blazon | Specifies what content type the placeholder is to contain. Possible values are
|
Below are examples of a main slide, layout, and presentation slide, with respective placeholders in the same colour.
Slide Master
The sample principal slide below specifies v shapes that are placeholders for a championship, content, appointment, footer, and slide number. The master can specify formatting for the content of the placeholder, or it can be omitted and specified at the layout slide or at the slide level.
<p:sldMaster . . . >
<p:cSld>
. . .
<p:spTree>
. . .
<p:sp>
<p:nvSpPr>
<p:cNvPr id="22" proper name="Title Placeholder 21"/>
. . .
<p:nvPr>
<p:ph type="title"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="13" proper name="Text Placeholder 12"/>
. . .
<p:nvPr>
<p:ph type="body" idx="1"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="xiv" proper name="Date Placeholder 13"/>
. . .
<p:nvPr>
<p:ph type="dt" sz="half" idx="two"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="3" name="Footer Placeholder 2"/>
. . .
<p:nvPr>
<p:ph type="ftr" sz="quarter" idx="three"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="23" name="Slide Number Placeholder 22"/>
. . .
<p:nvPr>
<p:ph type="sldNum" sz="quarter" idx="4"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
</p:spTree>
</p:cSld>
</p:sldMaster>
Slide Layout
The slide layout to be used for a given slide is specified in the .rels part for the slide. Beneath is the layout for the second slide in the presentation. In the slide2.xml.rels file is the post-obit human relationship: <Human relationship Id="rId1" Blazon="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" Target="../slideLayouts/slideLayout2.xml"/>. Below is one possible layout for the above master slide.
<p:sldLayout . . . >
<p:cSld>
<p:spTree>
. . .
<p:sp>
<p:nvSpPr>
<p:cNvPr id="2" proper name="Championship 1"/>
. . .
<p:nvPr>
<p:ph type="title"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="iv" name="Date Placeholder 3"/>
. . .
<p:nvPr>
<p:ph type="dt" sz="half" idx="10"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="5" proper noun="Footer Placeholder 4"/>
. . .
<p:nvPr>
<p:ph type="ftr" sz="quarter" idx="xi"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="6" name="Slide Number Placeholder five"/>
. . .
<p:nvPr>
<p:ph blazon="sldNum" sz="quarter" idx="12"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="8" name="Content Placeholder 7"/>
. . .
<p:nvPr>
<p:ph sz="quarter" idx="1"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
</p:spTree>
</p:cSld>
</p:sldLayout>
Presentation Slide
Presentation slide content may be linked to layout placeholders with the idx and type attributes of the <p:ph> element. If more than one placeholder of a given type is specified in a layout, then each placeholder must apply a unique idx value matching the corressponding placeholder of the layout that is practical. Of course content on a presentation slide need not be based on a placeholder; in that example no <p:ph> element is specified for the shape that contains the content. Below is a sample slide using the layout from above.
<p:sld . . . >
<p:cSld>
<p:spTree>
. . .
<p:sp>
<p:nvSpPr>
<p:cNvPr id="2" proper noun="Championship one"/>
. . .
<p:nvPr>
<p:ph type="title"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="3" proper noun="Content Placeholder 2"/>
. . .
<p:nvPr>
<p:ph sz="quarter" idx="1"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="4" name="Appointment Placeholder three"/>
. . .
<p:nvPr>
<p:ph blazon="dt" sz="one-half" idx="10"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="5" name="Slide Number Placeholder iv"/>
. . .
<p:nvPr>
<p:ph type="sldNum" sz="quarter" idx="12"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="six" name="Footer Placeholder 5"/>
. . .
<p:nvPr>
<p:ph blazon="ftr" sz="quarter" idx="11"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
</p:spTree>
</p:cSld>
</p:sld>
Nosotros could take the layout from above and add two more content placeholders, as shown below.
<p:sldLayout . . . >
<p:cSld>
<p:spTree>
. . .
<p:sp>
<p:nvSpPr>
<p:cNvPr id="2" proper noun="Title one"/>
. . .
<p:nvPr>
<p:ph blazon="championship"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="4" name="Date Placeholder 3"/>
. . .
<p:nvPr>
<p:ph blazon="dt" sz="half" idx="10"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="5" name="Footer Placeholder 4"/>
. . .
<p:nvPr>
<p:ph type="ftr" sz="quarter" idx="11"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="half dozen" name="Slide Number Placeholder five"/>
. . .
<p:nvPr>
<p:ph type="sldNum" sz="quarter" idx="12"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="8" name="Content Placeholder vii"/>
. . .
<p:nvPr>
<p:ph sz="quarter" idx="i"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="19" proper noun="Content Placeholder 18"/>
. . .
<p:nvPr>
<p:ph sz="quarter" idx="13"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="21" proper name="Text Placeholder 20"/>
. . .
<p:nvPr>
<p:ph blazon="torso" sz="quarter" idx="fourteen"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
</p:spTree>
</p:cSld>
</p:sldLayout>
Below is a presentation slide based on the above edited layout, plus an additional text box that is not based on a placeholder.
<p:sld . . . >
<p:cSld>
<p:spTree>
. . .
<p:sp>
<p:nvSpPr>
<p:cNvPr id="2" name="Championship ane"/>
. . .
<p:nvPr>
<p:ph type="title"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="iv" proper noun="Appointment Placeholder 3"/>
. . .
<p:nvPr>
<p:ph type="dt" sz="half" idx="10"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="6" proper noun="Footer Placeholder 5"/>
. . .
<p:nvPr>
<p:ph blazon="ftr" sz="quarter" idx="11"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="5" name="Slide Number Placeholder 4"/>
. . .
<p:nvPr>
<p:ph blazon="sldNum" sz="quarter" idx="12"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="3" name="Content Placeholder two"/>
. . .
<p:nvPr>
<p:ph sz="quarter" idx="1"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="11" name="Content Placeholder 10"/>
. . .
<p:nvPr>
<p:ph sz="quarter" idx="13"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="12" proper noun="Text Placeholder eleven"/>
. . .
<p:nvPr>
<p:ph type="trunk" sz="quarter" idx="14"/>
</p:nvPr>
</p:nvSpPr>
. . .
</p:sp>
<p:sp>
<p:nvSpPr>
<p:cNvPr id="9" name="TextBox viii"/>
. . .
<p:nvPr/>
</p:nvSpPr>
. . .
</p:sp>
</p:spTree>
</p:cSld>
</p:sld>
locklearclearders.blogspot.com
Source: http://officeopenxml.com/prSlide.php
0 Response to "A Slide Can Contain a Link to Another Slide"
Post a Comment