PresentationML Presentation演示
The <p:presentation> element is the root element of the main content start part for the presentation (presentation.xml within the ppt folder of the package for Microsoft Powerpoint). <p:presentation>元素是演示的主要内容开始部分的根元素(presentation.xml位于Microsoft Powerpoint包的ppt文件夹中)。It is in the main presentation namespace: xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main". 它位于主表示命名空间:xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"中。It contains the specification of the various slides that comprise the presentation, as well as some presentation-wide properties.它包含构成演示文稿的各种幻灯片的规范,以及一些演示文稿范围的属性。
Elements:元素:
Below are the most commonly used child elements of <p:presentation>.下面是<p:presentation>中最常用的子元素。
<p:custShowLst> | |
<p:defaultTextStyle> | <p:presentation . . . >
. . .
<p:defaultTextStyle>
<a:defPPr>
<a:defRPr b="1"/>
</a:defPPr>
<a:lvl1pPr>
<a:defRPr b="1"/>
<a:lvl1pPr algn="r">
<a:buAutoNum type="alphaUcPeriod" startAt="2"/>
</a:lvl1pPr>
</p:defaultTextStyle>
</p:presentation>
|
<p:embeddedFontLst> | <p:presentation . . . >
. . .
<p:embeddedFontLst>
<p:font typeface="MyFont" pitchfamily="34" charset="0"/>
<p:regular r:id="rId3"/>
<p:bold r:id="rId4"/>
<p:italic r:id="rId5"/>
<p:boldItalic r:id="rId6"/>
</p:embeddedFontLst>
. . .
</p:presentation>
|
<p:handoutMasterIdLst> | <p:presentation . . . >
. . .
<p:handoutMasterIdLst>
<p:handoutMasterId r:id="rId7"/>
</p:handoutMasterIdLst>
. . .
</p:presentation>
The handout master is referenced above using the relationship ID rId7. That relationship within the .rels part for the presentation looks like this: <Relationship Id="rId7" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster" Target="handoutMasters/handoutMaster1.xml"/>. The actual master is specified in that part (handoutMaster1.xml). See ???? for the details of the handout master. |
<p:notesMasterIdLst> | A note slide is a slide that is specifically designed for the printing of slides together with any attached notes. The format and layout of the notes slides is specified in a notes master. The notes master for the presentation is specified within this element, using the child element <p:notesMasterId> which simply refers to a relationship within the .rels part for the presentation.
<p:presentation . . . >
. . .
<p:notesMasterIdLst>
<p:notesMasterId r:id="rId6"/>
</p:notesMasterIdLst>
. . .
</p:presentation>
The notes master is referenced above using the relationship ID rId6. That relationship within the .rels part for the presentation looks like this: <Relationship Id="rId6" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" Target="notesMasters/notesMaster1.xml"/>. The actual master is specified in that part (notesMaster1.xml). See ???? for the details of the notes master. |
<p:notesSz> | This element specifies the size of slide surface used for notes slides and handout slides. (The size of regular content or presentation slides is specified by the <p:sldSz> element.) The element is empty, with two attributes cx and cy for length and width, respectively, in EMUs.
<p:presentation . . . >
. . .
<p:notesSz cx="6858000" cy="9144000"/>
. . .
</p:presentation>
|
<p:sldIdLst> | The content slides in the presentation are specified within this element as a list of IDs, using the child elements <p:sldId>. Each <p:sldId> simply refers to a relationship within the .rels part for the presentation (presentation.rels.xml). Note that the order in which slides are listed is important, as it determines the order in which slides are shown, absent a custom show. Below is a presentation with three slides. Note that each has both an id attribute as well as a relationship id attribute id, which references the part for the slide.
<p:presentation . . . >
. . .
<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:presentation>
The first slide above is referenced using the relationship ID rId2. That relationship within the .rels part for the presentation looks like this: <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide1.xml"/>. The actual slide content is specified in that part (slide1.xml). See ???? for the details of the slide part. |
<p:sldMasterIdLst> | A master slide is the base or template upon which slides are built. It specifies such things as the theme to be used and the layouts that are available. Every presentation has at least one master slide; if you want slides to use different themes, then each theme will require a different master slide. The master slides for a presentation are specified within <p:sldMasterIdLst> element, using the child element <p:sldMasterId> for each master slide. This element simply refers to a relationship within the .rels part for the presentation.
<p:presentation . . . >
<p:sldMasterIdLst>
<p:sldMasterId id="2147483660" r:id="rId1"/>
</p:sldMasterIdLst>
. . .
</p:presentation>
The slide master above is referenced above using the relationship ID rId1. That relationship within the .rels part for the presentation (presentation.rels.xml) looks like this: <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>. The actual master is specified in that part (slideMaster1.xml). See Master Slide for the details of the master slide. |
<p:sldSz> | This element specifies the size of slide surface used for content or presentation slides. (The size of note and handout slides is specified by the <p:notesSz> element.) The element is empty, with attributes cx and cy for length and width, respectively, in EMUs, and a type attribute which specifies the kind of slide that should be used. This identifies the expected delivery platform. Possible values include:
<p:presentation . . . >
. . .
<p:sldSz cx="9144000" cy="6858000" type="screen4x3"/>
. . .
</p:presentation>
|