Package org.apache.poi.hslf.record
Class HeadersFootersContainer
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordContainer
-
- org.apache.poi.hslf.record.HeadersFootersContainer
-
public final class HeadersFootersContainer extends RecordContainer
A container record that specifies information about the footers on a presentation slide.It contains:
- 1.
HeadersFootersAtom- 2.
CString, Instance UserDate (0), optional: Stores the user's date. This is the date that the user wants in the footers, instead of today's date.- 3.
CString, Instance Header (1), optional: Stores the Header's contents.- 4.
CString, Instance Footer (2), optional: Stores the Footer's contents. - 1.
-
-
Field Summary
Fields Modifier and Type Field Description static intFOOTERATOMstatic intHEADERATOMstatic shortNotesHeadersFootersContainer"instance" field in the record header indicating that this HeadersFootersContaine is applied for notes and handoutsstatic shortSlideHeadersFootersContainer"instance" field in the record header indicating that this HeadersFootersContaine is applied for slidesstatic intUSERDATEATOM
-
Constructor Summary
Constructors Constructor Description HeadersFootersContainer(short options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CStringaddFooterAtom()Insert aCStringrecord that stores the user's date.CStringaddHeaderAtom()Insert aCStringrecord that stores the user's date.CStringaddUserDateAtom()Insert aCStringrecord that stores the user's date.CStringgetFooterAtom()ACStringrecord that stores the Footers's contents.CStringgetHeaderAtom()ACStringrecord that stores the Header's contents.HeadersFootersAtomgetHeadersFootersAtom()HeadersFootersAtom stores the basic information of the header and footer structure.intgetOptions()Must be eitherSlideHeadersFootersContainerorNotesHeadersFootersContainerlonggetRecordType()Return the type, which isRecordTypes.HeadersFootersCStringgetUserDateAtom()ACStringrecord that stores the user's date.voidwriteOut(java.io.OutputStream out)Write the contents of the record back, so it can be written to disk-
Methods inherited from class org.apache.poi.hslf.record.RecordContainer
addChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, handleParentAwareRecords, isAnAtom, moveChildBefore, moveChildrenAfter, moveChildrenBefore, removeChild, setChildRecord, writeOut
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
-
-
-
Field Detail
-
SlideHeadersFootersContainer
public static final short SlideHeadersFootersContainer
"instance" field in the record header indicating that this HeadersFootersContaine is applied for slides- See Also:
- Constant Field Values
-
NotesHeadersFootersContainer
public static final short NotesHeadersFootersContainer
"instance" field in the record header indicating that this HeadersFootersContaine is applied for notes and handouts- See Also:
- Constant Field Values
-
USERDATEATOM
public static final int USERDATEATOM
- See Also:
- Constant Field Values
-
HEADERATOM
public static final int HEADERATOM
- See Also:
- Constant Field Values
-
FOOTERATOM
public static final int FOOTERATOM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecordType
public long getRecordType()
Return the type, which isRecordTypes.HeadersFooters- Specified by:
getRecordTypein classRecord
-
getOptions
public int getOptions()
Must be eitherSlideHeadersFootersContainerorNotesHeadersFootersContainer- Returns:
- "instance" field in the record header
-
writeOut
public void writeOut(java.io.OutputStream out) throws java.io.IOExceptionWrite the contents of the record back, so it can be written to disk
-
getHeadersFootersAtom
public HeadersFootersAtom getHeadersFootersAtom()
HeadersFootersAtom stores the basic information of the header and footer structure.- Returns:
HeadersFootersAtom
-
getUserDateAtom
public CString getUserDateAtom()
ACStringrecord that stores the user's date.This is the date that the user wants in the footers, instead of today's date.
- Returns:
- A
CStringrecord that stores the user's date ornull
-
getHeaderAtom
public CString getHeaderAtom()
ACStringrecord that stores the Header's contents.- Returns:
- A
CStringrecord that stores the Header's contents ornull
-
getFooterAtom
public CString getFooterAtom()
ACStringrecord that stores the Footers's contents.- Returns:
- A
CStringrecord that stores the Footers's contents ornull
-
addUserDateAtom
public CString addUserDateAtom()
Insert aCStringrecord that stores the user's date.- Returns:
- the created
CStringrecord that stores the user's date.
-
addHeaderAtom
public CString addHeaderAtom()
Insert aCStringrecord that stores the user's date.- Returns:
- the created
CStringrecord that stores the user's date.
-
-