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
- All Implemented Interfaces:
GenericRecord
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final short
"instance" field in the record header indicating that this HeadersFootersContaine is applied for notes and handoutsstatic final short
"instance" field in the record header indicating that this HeadersFootersContaine is applied for slidesstatic final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInsert aCString
record that stores the user's date.Insert aCString
record that stores the user's date.Insert aCString
record that stores the user's date.ACString
record that stores the Footers's contents.ACString
record that stores the Header's contents.HeadersFootersAtom stores the basic information of the header and footer structure.int
Must be eitherSlideHeadersFootersContainer
orNotesHeadersFootersContainer
long
Return the type, which isRecordTypes.HeadersFooters
ACString
record that stores the user's date.void
writeOut
(OutputStream out) Write the contents of the record back, so it can be written to diskMethods inherited from class org.apache.poi.hslf.record.RecordContainer
addChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, getGenericProperties, handleParentAwareRecords, isAnAtom, removeChild, setChildRecord, writeOut
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
-
Field Details
-
USERDATEATOM
public static final int USERDATEATOM- See Also:
-
HEADERATOM
public static final int HEADERATOM- See Also:
-
FOOTERATOM
public static final int FOOTERATOM- See Also:
-
Constructor Details
-
HeadersFootersContainer
public HeadersFootersContainer(short options)
-
-
Method Details
-
getRecordType
public long getRecordType()Return the type, which isRecordTypes.HeadersFooters
- Specified by:
getRecordType
in classRecord
-
getOptions
public int getOptions()Must be eitherSlideHeadersFootersContainer
orNotesHeadersFootersContainer
- Returns:
- "instance" field in the record header
-
writeOut
Write the contents of the record back, so it can be written to disk- Specified by:
writeOut
in classRecord
- Throws:
IOException
-
getUserDateAtom
ACString
record that stores the user's date.This is the date that the user wants in the footers, instead of today's date.
- Returns:
- A
CString
record that stores the user's date ornull
-
getHeaderAtom
ACString
record that stores the Header's contents.- Returns:
- A
CString
record that stores the Header's contents ornull
-
addUserDateAtom
Insert aCString
record that stores the user's date.- Returns:
- the created
CString
record that stores the user's date.
-
addHeaderAtom
Insert aCString
record that stores the user's date.- Returns:
- the created
CString
record that stores the user's date.
-