public final class HeaderFooterRecord extends ContinuableRecord
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
HeaderFooterRecord() |
HeaderFooterRecord(RecordInputStream in)
construct a HeaderFooterRecord record.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getFooterEven() |
String |
getFooterFirst() |
byte[] |
getGuid()
If this header belongs to a specific sheet view , the sheet view?s GUID will be saved here.
|
String |
getHeaderEven() |
String |
getHeaderFirst() |
short |
getSid()
return the non static version of the id for this record.
|
boolean |
isAlignMargins()
Returns whether the left and right edges of the header and footer are
lined up with the left and right margins of the sheet.
|
boolean |
isCurrentSheet() |
boolean |
isDiffFirst()
Returns whether the first page use a different header and footer.
|
boolean |
isDiffOddEven()
Returns whether the odd and even pages use a different header and footer
|
boolean |
isScaleWithDoc()
Returns whether the header and footer is scaled with the sheet.
|
protected void |
serialize(ContinuableRecordOutput out)
Serializes this record's content to the supplied data output.
The standard BIFF header (ushort sid, ushort size) has been handled by the superclass, so only BIFF data should be written by this method. |
void |
setAlignMargins(boolean flag) |
void |
setDiffFirst(boolean flag)
Sets whether the first page use a different header and footer.
|
void |
setDiffOddEven(boolean flag)
Set whether the odd and even pages use a different header and footer.
|
void |
setFooterEven(String str) |
void |
setFooterFirst(String str) |
void |
setGuid(byte[] guid) |
void |
setHeaderEven(String str) |
void |
setHeaderFirst(String str) |
void |
setScaleWithDoc(boolean flag) |
String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
cloneViaReserialise, serialize
public static final short sid
public HeaderFooterRecord()
public HeaderFooterRecord(RecordInputStream in)
in
- the RecordInputstream to read the record frompublic short getSid()
Record
public byte[] getGuid()
If it is zero, it means the current sheet. Otherwise, this field MUST match the guid field
of the preceding UserSViewBegin
record.
public void setGuid(byte[] guid)
public boolean isCurrentSheet()
public boolean isDiffOddEven()
public void setDiffOddEven(boolean flag)
flag
- public boolean isDiffFirst()
public void setDiffFirst(boolean flag)
flag
- public boolean isScaleWithDoc()
public void setScaleWithDoc(boolean flag)
public boolean isAlignMargins()
public void setAlignMargins(boolean flag)
public String getHeaderEven()
public void setHeaderEven(String str)
public String getFooterEven()
public void setFooterEven(String str)
public String getHeaderFirst()
public void setHeaderFirst(String str)
public String getFooterFirst()
public void setFooterFirst(String str)
public String toString()
Record
protected void serialize(ContinuableRecordOutput out)
ContinuableRecord
LittleEndianOutput
methods. Methods from ContinuableRecordOutput
can be used to serialize strings (with ContinueRecord
s being written as required).
If necessary, implementors can explicitly start ContinueRecord
s (regardless of the
amount of remaining space).serialize
in class ContinuableRecord
out
- a data output streamCopyright © 2020. All rights reserved.