public class ExOleObjAtom extends RecordAtom
Modifier and Type | Class and Description |
---|---|
static class |
ExOleObjAtom.OleType |
static class |
ExOleObjAtom.Subtype |
Modifier and Type | Field and Description |
---|---|
static int |
DRAW_ASPECT_DOCPRINT
The object is displayed on the screen as though it were printed to a printer.
(对象显示在屏幕上,就好像它被打印到打印机一样。)
|
static int |
DRAW_ASPECT_ICON
The object is displayed as an icon.
(对象显示为图标。)
|
static int |
DRAW_ASPECT_THUMBNAIL
The object is displayed as a thumbnail image.
(对象显示为缩略图。)
|
static int |
DRAW_ASPECT_VISIBLE
The object) is displayed as an embedded object inside of a container,
(对象)显示为容器内的嵌入对象,)
|
static int |
SUBTYPE_CLIPART_GALLERY |
static int |
SUBTYPE_DEFAULT |
static int |
SUBTYPE_EQUATION |
static int |
SUBTYPE_EXCEL |
static int |
SUBTYPE_EXCEL_CHART |
static int |
SUBTYPE_GRAPH |
static int |
SUBTYPE_IMAGE |
static int |
SUBTYPE_MEDIA_PLAYER |
static int |
SUBTYPE_NOTEIT |
static int |
SUBTYPE_ORGANIZATION_CHART |
static int |
SUBTYPE_POWERPOINT_PRESENTATION |
static int |
SUBTYPE_POWERPOINT_SLIDE |
static int |
SUBTYPE_PROJECT |
static int |
SUBTYPE_SOUND |
static int |
SUBTYPE_WORD_TABLE |
static int |
SUBTYPE_WORDART |
static int |
TYPE_CONTROL
The OLE object is an ActiveX control.
(OLE 对象是一个 ActiveX 控件。)
|
static int |
TYPE_EMBEDDED
An embedded OLE object; the object is serialized and saved within the file.
(嵌入的 OLE 对象;该对象被序列化并保存在文件中。)
|
static int |
TYPE_LINKED
A linked OLE object; the object is saved outside of the file.
(一个链接的 OLE 对象;对象保存在文件之外。)
|
Modifier | Constructor and Description |
---|---|
|
ExOleObjAtom()
Constructs a brand new link related atom record.
(构造一个全新的链接相关原子记录。)
|
protected |
ExOleObjAtom(byte[] source, int start, int len)
Constructs the link related atom record from its source data.
(从其源数据构造与链接相关的原子记录。)
|
Modifier and Type | Method and Description |
---|---|
int |
getDrawAspect()
Gets whether the object can be completely seen, or if only the icon is visible.
(获取是否可以完全看到对象,或者是否只有图标可见。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
boolean |
getIsBlank()
Gets whether the object's image is blank.
(获取对象的图像是否为空白。)
|
int |
getObjID()
Gets the unique identifier for the OLE object.
(获取 OLE 对象的唯一标识符。)
|
int |
getObjStgDataRef()
Gets the reference to the persistent object
(获取对持久对象的引用)
|
int |
getOptions()
Gets misc options (the last four bytes in the atom).
(获取其他选项(原子中的最后四个字节)。)
|
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4) that this class handles.
(返回此类处理的类型(以字节 3 和 4 中的小端序保存)。)
|
int |
getSubType()
Gets the type of OLE object.
(获取 OLE 对象的类型。)
|
int |
getType()
Gets whether the object is embedded or linked.
(获取对象是嵌入的还是链接的。)
|
void |
setDrawAspect(int aspect)
Sets whether the object can be completely seen, or if only the icon is visible.
(设置是否可以完全看到对象,或者是否只有图标可见。)
|
void |
setObjID(int id)
Sets the unique identifier for the OLE object.
(设置 OLE 对象的唯一标识符。)
|
void |
setObjStgDataRef(int ref)
Sets the reference to the persistent object
(设置对持久对象的引用)
|
void |
setOptions(int opts)
Sets misc options (the last four bytes in the atom).
(设置杂项选项(原子中的最后四个字节)。)
|
void |
setSubType(int type)
Sets the type of OLE object.
(设置 OLE 对象的类型。)
|
void |
setType(int type)
Sets whether the object is embedded or linked.
(设置对象是嵌入还是链接。)
|
java.lang.String |
toString() |
void |
writeOut(java.io.OutputStream out)
Have the contents printer out into an OutputStream, used when writing a file back out to disk (Normally, atom classes will keep their bytes around, but non atom classes will just request the bytes from their children, then chuck on their header and return)
(将内容打印机输出到 OutputStream 中,在将文件写回磁盘时使用(通常,原子类将保留它们的字节,但非原子类只会从它们的子类请求字节,然后夹在它们的标题上并返回))
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public static final int DRAW_ASPECT_VISIBLE
public static final int DRAW_ASPECT_THUMBNAIL
public static final int DRAW_ASPECT_ICON
public static final int DRAW_ASPECT_DOCPRINT
public static final int TYPE_EMBEDDED
public static final int TYPE_LINKED
public static final int TYPE_CONTROL
public static final int SUBTYPE_DEFAULT
public static final int SUBTYPE_CLIPART_GALLERY
public static final int SUBTYPE_WORD_TABLE
public static final int SUBTYPE_EXCEL
public static final int SUBTYPE_GRAPH
public static final int SUBTYPE_ORGANIZATION_CHART
public static final int SUBTYPE_EQUATION
public static final int SUBTYPE_WORDART
public static final int SUBTYPE_SOUND
public static final int SUBTYPE_IMAGE
public static final int SUBTYPE_POWERPOINT_PRESENTATION
public static final int SUBTYPE_POWERPOINT_SLIDE
public static final int SUBTYPE_PROJECT
public static final int SUBTYPE_NOTEIT
public static final int SUBTYPE_EXCEL_CHART
public static final int SUBTYPE_MEDIA_PLAYER
public ExOleObjAtom()
protected ExOleObjAtom(byte[] source, int start, int len)
source
- the source data as a byte array.
(source - 作为字节数组的源数据。)
start
- the start offset into the byte array.
(start - 字节数组的起始偏移量。)
len
- the length of the slice in the byte array.
(len - 字节数组中切片的长度。)
public int getDrawAspect()
DRAW_ASPECT_*
constants.
(绘制方面,DRAW_ASPECT_* 常量之一。)
public void setDrawAspect(int aspect)
aspect
- the draw aspect, one of the
DRAW_ASPECT_*
constants.
(aspect - 绘制方面,DRAW_ASPECT_* 常量之一。)
public int getType()
TYPE_EMBEDDED_*
constants.
(类型,TYPE_EMBEDDED_* 常量之一。)
public void setType(int type)
type
- the type, one of the
TYPE_EMBEDDED_*
constants.
(type - 类型,TYPE_EMBEDDED_* 常量之一。)
public int getObjID()
public void setObjID(int id)
id
- the object ID.
(id - 对象 ID。)
public int getSubType()
SUBTYPE_*
constants.
(子类型,SUBTYPE_* 常量之一。)
public void setSubType(int type)
type
- the sub-type, one of the
SUBTYPE_*
constants.
(type - 子类型,SUBTYPE_* 常量之一。)
public int getObjStgDataRef()
ExOleObjStg
storage container.
(对持久对象的引用,对应于 ExOleObjStg 存储容器。)
public void setObjStgDataRef(int ref)
ref
- the reference to the persistent object, corresponds with an
ExOleObjStg
storage container.
(ref - 对持久对象的引用,对应于 ExOleObjStg 存储容器。)
public boolean getIsBlank()
true
if the object's image is blank.
(如果对象的图像为空白,则为 true。)
public int getOptions()
true
if the object's image is blank.
(如果对象的图像为空白,则为 true。)
public void setOptions(int opts)
public long getRecordType()
getRecordType
in class
Record
(类 Record 中的 getRecordType)
public void writeOut(java.io.OutputStream out) throws java.io.IOException
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.