HeadersFootersAtom (4058)

HeadersFootersAtom stores the basic information of the header and footer structure. It tells what format of the updated date is and tells the following information.

1) Is the date on for this slide.

2) Are we using a user defined date or are we using the updated date.

3) Is the slide number on for this slide.

4) Is the header on for this slide.

5) Is the footer on for this slide.

HeadersFooterDateAtom's fields

Offset

Type

Name

Content

0

sint2

FormatId

one of the 13 possible formats for the date. 0-12. See the Date and Time Dialog for details.

1

uint2

Flags

what is turned on. date, todayDate, userDate, slideNumber, header, footer


Example ....

const int S_HEADERFOOTER_DATE = 0x01;

const int S_HEADERFOOTER_TODAYDATE = 0x02;

const int S_HEADERFOOTER_USERDATE = 0x04;

const int S_HEADERFOOTER_SLIDENUMBER = 0x08;

const int S_HEADERFOOTER_HEADER = 0x10;

const int S_HEADERFOOTER_FOOTER = 0x20;

m_formatId = (unsigned char) rec.formatId;

m_date = ( (rec.flags & S_HEADERFOOTER_DATE) != 0 );

m_todayDate = ( (rec.flags & S_HEADERFOOTER_TODAYDATE) != 0 );

m_userDate = ( (rec.flags & S_HEADERFOOTER_USERDATE) != 0 );

m_slideNumber = ( (rec.flags & S_HEADERFOOTER_SLIDENUMBER) != 0 );

m_header = ( (rec.flags & S_HEADERFOOTER_HEADER) != 0 );

m_footer = ( (rec.flags & S_HEADERFOOTER_FOOTER) != 0 );