OneOffixx PowerPoint
By means of this document function OneOffixx PowerPoint can be controlled. The document function inserts a Custom-XML-Part into the presentation. Based on this information, OneOffixx for PowerPoint can then, for example, select the correct template or design and populate fields with document parameter inputs. The following fields can be configured:
Field | Value type | Description |
---|---|---|
UserInterfaceEnabled | "Boolean" true / false | Specifies whether the OneOffixx ribbon is displayed in the PowerPoint. |
DocumentLanguageId | "LCID" e.g. 2055 for CH-DE | Document Language |
ColorThemeId | "Integer" | Controls the color theme |
BrandId | "Integer" | Corresponds to the organizational unit in OneOffixx |
Title | Text | Presentation title |
SubTitle | Text | Presentation subtitle |
Date | Date in format 'YYYY-MM-DDThh:mm:ssZ | Date of presentation |
ShowSlideNumber | "Boolean" true / false | Specifies whether the slides are numbered. |
ShowTotalSlideNumber | "Boolean" true / false | Specifies whether the total number of slides is displayed. |
FirstSlideNumber | "Integer" | The slide numbering starts at this number. |
Footer1 | Text | Text that will be displayed in the first footer. |
Footer2 | Text | Text that will be displayed in the second footer. |
In addition, mapping can be used to dynamically write to document part contents such as profile data or Document parameters. When mapping, the document part can be accessed via Id, e.g. with Source="Id"
or in JavaScript via source('Id')
.
Example
Statically defined:
<?xml version="1.0" encoding="utf-16"?>
<OneOffixxPowerPoint xmlns="http://schema.oneoffixx.com/OneOffixxPowerPointPart/1" >
<UserInterfaceEnabled>true</UserInterfaceEnabled>
<DocumentLanguageId>2055</DocumentLanguageId>
<ColorThemeId>2</ColorThemeId>
<TemplateId>OneOffixx</TemplateId>
<BrandId>2</BrandId>
<Title>Title for this presentation</Title>
<SubTitle>Subtitle example</SubTitle>
<Date>2022-02-22T22:22:22Z</Date>
<ShowSlideNumber>true</ShowSlideNumber>
<ShowTotalSlideNumber>true</ShowTotalSlideNumber>
<FirstSlideNumber>1</FirstSlideNumber>
<Footer1>Field is not used in Trial</Footer1>
<Footer2>John Doe</Footer2>
</OneOffixxPowerPoint>
The following example reads values from the Document Parameter using mapping:
<?xml version="1.0" encoding="utf-16"?>
<OneOffixxPowerPoint xmlns="http://schema.oneoffixx.com/OneOffixxPowerPointPart/1" >
<UserInterfaceEnabled>true</UserInterfaceEnabled>
<DocumentLanguageId>2055</DocumentLanguageId>
<ColorThemeId>2</ColorThemeId>
<TemplateId>OneOffixx</TemplateId>
<BrandId>2</BrandId>
<Title>Title for this presentation</Title>
<SubTitle>Subtitle example</SubTitle>
<Date>2022-02-22T22:22:22Z</Date>
<ShowSlideNumber>true</ShowSlideNumber>
<ShowTotalSlideNumber>true</ShowTotalSlideNumber>
<FirstSlideNumber>1</FirstSlideNumber>
<Footer1>Field is not used in Trial</Footer1>
<Mapping>
<Map Source="DocParam.Subject" Target="Title" />
<Map SourceExpression="source('DocParam.Secondary')" Target="SubTitle" />
<Map Target="Footer1">
<Map.SourceExpression>
function main(){
return 'we can execute javascript';
}
</Map.SourceExpression>
</Map>
</Mapping>
</OneOffixxPowerPoint>