public final class HeadersFootersAtom extends RecordAtom
Modifier and Type | Class and Description |
---|---|
static class |
HeadersFootersAtom.FormatIndex
FormatIndex enum without LCID mapping
(没有 LCID 映射的 FormatIndex 枚举)
|
Modifier and Type | Field and Description |
---|---|
static int |
fHasDate
A bit that specifies whether the date is displayed in the footer.
(指定日期是否显示在页脚中的位。)
|
static int |
fHasFooter
bit that specifies whether the footer text is displayed.
(指定是否显示页脚文本的位。)
|
static int |
fHasHeader
bit that specifies whether the header text is displayed.
(指定是否显示标题文本的位。)
|
static int |
fHasSlideNumber
A bit that specifies whether the slide number is displayed in the footer.
(指定幻灯片编号是否显示在页脚中的位。)
|
static int |
fHasTodayDate
A bit that specifies whether the current datetime is used for displaying the datetime.
(指定当前日期时间是否用于显示日期时间的位。)
|
static int |
fHasUserDate
A bit that specifies whether the date specified in UserDateAtom record is used for displaying the datetime.
(指定 UserDateAtom 记录中指定的日期是否用于显示日期时间的位。)
|
Modifier | Constructor and Description |
---|---|
|
HeadersFootersAtom()
Create a new instance of
HeadersFootersAtom
(创建 HeadersFootersAtom 的新实例)
|
protected |
HeadersFootersAtom(byte[] source, int start, int len)
Build an instance of
HeadersFootersAtom from on-disk data
(从磁盘数据构建 HeadersFootersAtom 的实例)
|
Modifier and Type | Method and Description |
---|---|
boolean |
getFlag(int bit) |
int |
getFormatId()
A signed integer that specifies the format ID to be used to style the datetime.
(一个有符号整数,指定用于设置日期时间样式的格式 ID。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getMask()
A bit mask specifying options for displaying headers and footers A -
fHasDate (1 bit): A bit that specifies whether the date is displayed in the footer.
(指定用于显示页眉和页脚的选项的位掩码 A - fHasDate(1 位):指定日期是否显示在页脚中的位。)
|
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4) that this class handles
(返回此类处理的类型(在字节 3 和 4 中保持为小端序))
|
void |
setFlag(int bit, boolean value) |
void |
setFormatId(int formatId)
A signed integer that specifies the format ID to be used to style the datetime.
(一个有符号整数,指定用于设置日期时间样式的格式 ID。)
|
void |
setMask(int mask)
A bit mask specifying options for displaying headers and footers
(指定用于显示页眉和页脚的选项的位掩码)
|
java.lang.String |
toString() |
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk
(将记录的内容写回去,这样就可以写入磁盘了)
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public static final int fHasDate
getMask()
,
setMask(int)
,
Constant Field Values
public static final int fHasTodayDate
getMask()
,
setMask(int)
,
Constant Field Values
public static final int fHasUserDate
getMask()
,
setMask(int)
,
Constant Field Values
public static final int fHasSlideNumber
getMask()
,
setMask(int)
,
Constant Field Values
public static final int fHasHeader
getMask()
,
setMask(int)
,
Constant Field Values
public static final int fHasFooter
getMask()
,
setMask(int)
,
Constant Field Values
protected HeadersFootersAtom(byte[] source, int start, int len)
HeadersFootersAtom
from on-disk data
(从磁盘数据构建 HeadersFootersAtom 的实例)
public HeadersFootersAtom()
HeadersFootersAtom
(创建 HeadersFootersAtom 的新实例)
public long getRecordType()
Record
getRecordType
in class
Record
(类 Record 中的 getRecordType)
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public int getFormatId()
It MUST be in the range [0, 12].
This value is converted into a string as specified by the index field of the DateTimeMCAtom record. It MUST be ignored unless fHasTodayDate is TRUE.
public void setFormatId(int formatId)
formatId
- A signed integer that specifies the format ID to be used to style the datetime.
(formatId - 一个有符号整数,指定用于设置日期时间样式的格式 ID。)
public int getMask()
fHasDate
(1 bit): A bit that specifies whether the date is displayed in the footer. fHasTodayDate
(1 bit): A bit that specifies whether the current datetime is used for displaying the datetime. fHasUserDate
(1 bit): A bit that specifies whether the date specified in UserDateAtom record is used for displaying the datetime. fHasSlideNumber
(1 bit): A bit that specifies whether the slide number is displayed in the footer. fHasHeader
(1 bit): A bit that specifies whether the header text specified by HeaderAtom record is displayed. fHasFooter
(1 bit): A bit that specifies whether the footer text specified by FooterAtom record is displayed. public void setMask(int mask)
mask
- A bit mask specifying options for displaying headers and footers
public boolean getFlag(int bit)
bit
- the bit to check
public void setFlag(int bit, boolean value)
bit
- the bit to set
value
- whether the specified bit is set
public java.lang.String toString()
toString
in class
java.lang.Object
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.