Export (0) Print
Expand All

3.9.4 Metacharacter Example

Office

The following example shows how a footer metacharacter is specified on presentation slide 6.

The following diagram shows the context of a footer placeholder on the main master slide.

The child-record hierarchy of the MainMasterContainer (section 2.5.3) record B from the table titled "Top-level record sequence in the PowerPoint Document Stream from sample.ppt" in section 3.3 is shown expanded in the following table.

MainMasterContainer child-record hierarchy

Offset

Size

Structure

00000CC5

09AC

MainMasterContainer - case of RT_MainMaster

00000CC5

0008

    RecordHeader- rh

00000CCD

0020

    SlideAtom- slideAtom

00000CED

0028

    SchemeListElementColorSchemeAtom- schemeListElementColorSchemeAtom

00000D15

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000D3D

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000D65

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000D8D

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000DB5

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000DDD

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000E05

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000E2D

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000E55

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000E7D

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000EA5

0028

    SchemeListElementColorSchemeAtom - schemeListElementColorSchemeAtom

00000ECD

0046

    TextMasterStyleAtom- textMasterStyleAtom

00000F13

0084

    TextMasterStyleAtom - textMasterStyleAtom

00000F97

0076

    TextMasterStyleAtom - textMasterStyleAtom

0000100D

005A

    TextMasterStyleAtom - textMasterStyleAtom

00001067

0014

    TextMasterStyleAtom - textMasterStyleAtom

0000107B

0046

    TextMasterStyleAtom - textMasterStyleAtom

000010C1

0046

    TextMasterStyleAtom - textMasterStyleAtom

00001107

04DE

    DrawingContainer- drawing

00001107

0008

        RecordHeader - rh

0000110F

04D6

        OfficeArtDgContainer - OfficeArtDg

0000110F

0008

            OfficeArtRecordHeader - rh

00001117

0010

            OfficeArtFDG - drawingData

00001127

046E

            A: OfficeArtSpgrContainer - groupShape

00001595

0050

            OfficeArtSpContainer - shape

000015E5

0028

    SlideSchemeColorSchemeAtom- slideSchemeColorSchemeAtom

0000160D

0040

    SlideProgTagsContainer- slideProgTagsContainer

0000164D

0024

    TemplateNameAtom- templateNameAtom

The child-record hierarchy of the OfficeArtSpgrContainer record A from the previous table is shown expanded in the following table.

OfficeArtSpgrContainer child-record hierarchy

Offset

Size

Structure

00001127

046E

OfficeArtSpgrContainer - groupShape

00001127

0008

    OfficeArtRecordHeader - rh

0000112F

0030

    OfficeArtSpContainer - case of msofbtSpContainer

0000115F

00DA

    OfficeArtSpContainer - case of msofbtSpContainer

00001239

011E

    OfficeArtSpContainer - case of msofbtSpContainer

00001357

00BE

    OfficeArtSpContainer - case of msofbtSpContainer

00001415

00C0

    OfficeArtSpContainer - case of msofbtSpContainer

00001415

0008

        OfficeArtRecordHeader - rh

0000141D

0010

        OfficeArtFSP - shapeProp

0000142D

0038

        OfficeArtFOPT - shapePrimaryOptions

00001465

0010

        OfficeArtClientAnchor- clientAnchor

00001475

0018

        OfficeArtClientData- clientData

0000148D

0048

        A: OfficeArtClientTextbox- clientTextbox

000014D5

00C0

    OfficeArtSpContainer - case of msofbtSpContainer

The child-record hierarchy of the OfficeArtClientTextbox record A from the previous table is shown expanded in the following table.

OfficeArtClientTextbox record A child-record hierarchy

Offset

Size

Structure

Value

0000148D

0048

OfficeArtClientTextbox - clientTextbox

0000148D

0008

    OfficeArtRecordHeader - rh

00001495

000C

    TextHeaderAtom- case of RT_TextHeaderAtom

00001495

0008

        RecordHeader - rh

0000149D

0004

        TextTypeEnum- textType

0x00000004

000014A1

000A

    TextCharsAtom- case of RT_TextCharsAtom

000014A1

0008

        RecordHeader - rh

000014A9

0002

        array of bytes - textChars

*

000014AB

001E

    StyleTextPropAtom- case of RT_StyleTextPropAtom

000014AB

0008

        RecordHeader - rh

000014B3

000C

        TextPFRun- textPFRun

000014BF

000A

        TextCFRun- textCFRun

000014BF

0004

            unsigned integer - count

0x00000002

000014C3

0006

            TextCFException- cf

000014C9

000C

    FooterMCAtom- case of RT_FooterMetaCharAtom

000014C9

0008

        RecordHeader - rh

000014D1

0004

        signed integer - position

0x00000000

case of RT_TextHeaderAtom.textType: 0x00000004 specifies that this text is of type Tx_TYPE_OTHER.

case of RT_TextCharsAtom.textChars: "*" is only used as a placeholder in this context.

case of RT_FooterMetaCharAtom.position: 0x00000000 specifies that a footer metacharacter exists as the first character in the placeholder.

The main master slide specified by the MainMasterContainer record is the main master slide for presentation slide 6. When presentation slide 6 contains a FooterAtom record, the text specified by the FooterAtom is placed into the shape specified by the OfficeArtClientTextBox on the main master slide.

Slide-level footer information is contained in the PerSlideHeadersFootersContainer record contained in the SlideContainer (section 2.5.1) for presentation slide 6.

The child-record hierarchy of the PerSlideHeadersFootersContainer record B from the table titled "SlideContainer record U child-record hierarchy" in section 3.5.2 is shown expanded in the following table.

PerSlideHeadersFooterContainer child-record hierarchy

Offset

Size

Structure

00007B1E

003A

PerSlideHeadersFootersContainer - perSlideHeadersFootersContainer

00007B1E

0008

    RecordHeader - rh

00007B26

000C

    A: HeadersFootersAtom- hfAtom

00007B32

0026

    B: FooterAtom - footerAtom

The child-record hierarchy of the HeadersFootersAtom record A from this section is shown expanded in the following table.

HeaderFootersAtom record A child-record hierarchy

Offset

Size

Structure

Value

00007B26

000C

A: HeadersFootersAtom - hfAtom

00007B26

0008

    RecordHeader - rh

00007B2E

0002

    signed integer - formatId

0x000D

00007B30

1 bit

    unsigned integer - fHasDate

0x0

00007B30

1 bit

    unsigned integer - fHasTodayDate

0x0

00007B30

1 bit

    unsigned integer - fHasUserDate

0x1

00007B30

1 bit

    unsigned integer - fHasSlideNumber

0x0

00007B30

1 bit

    unsigned integer - fHasHeader

0x0

00007B30

1 bit

    unsigned integer - fHasFooter

0x1

00007B30

10 bits

    unsigned integer - reserved

0x000

fHasFooter: 0x0001 specifies that this slide should show the footer.

The child-record hierarchy of the FooterAtom record B from this section is shown expanded in the following table.

FooterAtom record B child-record hierarchy

Offset

Size

Structure

Value

00007B32

0026

B: FooterAtom - footerAtom

00007B32

0008

    RecordHeader - rh

00007B32

4 bits

        unsigned integer - recVer

0x0

00007B32

12 bits

        unsigned integer - recInstance

0x002

00007B34

0002

        RecordType- recType

0x0FBA

00007B36

0004

        unsigned integer - recLen

0x0000001E

00007B3A

001E

    array of bytes - footer

text formatting

footer: "text formatting" specifies the characters to display for the footer metacharacter when it appears on this slide.

Show:
© 2014 Microsoft