public class ExOleObjAtom extends RecordAtom
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.
|
static int |
TYPE_EMBEDDED
An embedded OLE object; the object is serialized and saved within the file.
|
static int |
TYPE_LINKED
A linked OLE object; the object is saved outside of the file.
|
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.
|
boolean |
getIsBlank()
Gets whether the object's image is blank.
|
int |
getObjID()
Gets the unique identifier for the OLE object.
|
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.
|
int |
getSubType()
Gets the type of OLE object.
|
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.
|
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.
|
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)
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, 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.start
- the start offset into the byte array.len
- the length of the slice in the byte array.public int getDrawAspect()
DRAW_ASPECT_*
constants.public void setDrawAspect(int aspect)
aspect
- the draw aspect, one of the DRAW_ASPECT_*
constants.public int getType()
TYPE_EMBEDDED_*
constants.public void setType(int type)
type
- the type, one of the TYPE_EMBEDDED_*
constants.public int getObjID()
public void setObjID(int id)
id
- the object ID.public int getSubType()
SUBTYPE_*
constants.public void setSubType(int type)
type
- the sub-type, one of the SUBTYPE_*
constants.public int getObjStgDataRef()
ExOleObjStg
storage container.public void setObjStgDataRef(int ref)
ref
- the reference to the persistent object, corresponds with an
ExOleObjStg
storage container.public boolean getIsBlank()
true
if the object's image is blank.public int getOptions()
true
if the object's image is blank.public void setOptions(int opts)
public long getRecordType()
getRecordType
in class Record
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.