Package org.apache.poi.hslf.record
Class ExOleObjAtom
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.ExOleObjAtom
-
public class ExOleObjAtom extends RecordAtom
Atom storing information for an OLE object.
-
-
Field Summary
Fields Modifier and Type Field Description static intDRAW_ASPECT_DOCPRINTThe object is displayed on the screen as though it were printed to a printer.static intDRAW_ASPECT_ICONThe object is displayed as an icon.static intDRAW_ASPECT_THUMBNAILThe object is displayed as a thumbnail image.static intDRAW_ASPECT_VISIBLEThe object) is displayed as an embedded object inside of a container,static intSUBTYPE_CLIPART_GALLERYstatic intSUBTYPE_DEFAULTstatic intSUBTYPE_EQUATIONstatic intSUBTYPE_EXCELstatic intSUBTYPE_EXCEL_CHARTstatic intSUBTYPE_GRAPHstatic intSUBTYPE_IMAGEstatic intSUBTYPE_MEDIA_PLAYERstatic intSUBTYPE_NOTEITstatic intSUBTYPE_ORGANIZATION_CHARTstatic intSUBTYPE_POWERPOINT_PRESENTATIONstatic intSUBTYPE_POWERPOINT_SLIDEstatic intSUBTYPE_PROJECTstatic intSUBTYPE_SOUNDstatic intSUBTYPE_WORD_TABLEstatic intSUBTYPE_WORDARTstatic intTYPE_CONTROLThe OLE object is an ActiveX control.static intTYPE_EMBEDDEDAn embedded OLE object; the object is serialized and saved within the file.static intTYPE_LINKEDA linked OLE object; the object is saved outside of the file.
-
Constructor Summary
Constructors Constructor Description ExOleObjAtom()Constructs a brand new link related atom record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDrawAspect()Gets whether the object can be completely seen, or if only the icon is visible.booleangetIsBlank()Gets whether the object's image is blank.intgetObjID()Gets the unique identifier for the OLE object.intgetObjStgDataRef()Gets the reference to the persistent objectintgetOptions()Gets misc options (the last four bytes in the atom).longgetRecordType()Returns the type (held as a little endian in bytes 3 and 4) that this class handles.intgetSubType()Gets the type of OLE object.intgetType()Gets whether the object is embedded or linked.voidsetDrawAspect(int aspect)Sets whether the object can be completely seen, or if only the icon is visible.voidsetObjID(int id)Sets the unique identifier for the OLE object.voidsetObjStgDataRef(int ref)Sets the reference to the persistent objectvoidsetOptions(int opts)Sets misc options (the last four bytes in the atom).voidsetSubType(int type)Sets the type of OLE object.voidsetType(int type)Sets whether the object is embedded or linked.java.lang.StringtoString()voidwriteOut(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)-
Methods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, isAnAtom
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
-
-
-
Field Detail
-
DRAW_ASPECT_VISIBLE
public static final int DRAW_ASPECT_VISIBLE
The object) is displayed as an embedded object inside of a container,- See Also:
- Constant Field Values
-
DRAW_ASPECT_THUMBNAIL
public static final int DRAW_ASPECT_THUMBNAIL
The object is displayed as a thumbnail image.- See Also:
- Constant Field Values
-
DRAW_ASPECT_ICON
public static final int DRAW_ASPECT_ICON
The object is displayed as an icon.- See Also:
- Constant Field Values
-
DRAW_ASPECT_DOCPRINT
public static final int DRAW_ASPECT_DOCPRINT
The object is displayed on the screen as though it were printed to a printer.- See Also:
- Constant Field Values
-
TYPE_EMBEDDED
public static final int TYPE_EMBEDDED
An embedded OLE object; the object is serialized and saved within the file.- See Also:
- Constant Field Values
-
TYPE_LINKED
public static final int TYPE_LINKED
A linked OLE object; the object is saved outside of the file.- See Also:
- Constant Field Values
-
TYPE_CONTROL
public static final int TYPE_CONTROL
The OLE object is an ActiveX control.- See Also:
- Constant Field Values
-
SUBTYPE_DEFAULT
public static final int SUBTYPE_DEFAULT
- See Also:
- Constant Field Values
-
SUBTYPE_CLIPART_GALLERY
public static final int SUBTYPE_CLIPART_GALLERY
- See Also:
- Constant Field Values
-
SUBTYPE_WORD_TABLE
public static final int SUBTYPE_WORD_TABLE
- See Also:
- Constant Field Values
-
SUBTYPE_EXCEL
public static final int SUBTYPE_EXCEL
- See Also:
- Constant Field Values
-
SUBTYPE_GRAPH
public static final int SUBTYPE_GRAPH
- See Also:
- Constant Field Values
-
SUBTYPE_ORGANIZATION_CHART
public static final int SUBTYPE_ORGANIZATION_CHART
- See Also:
- Constant Field Values
-
SUBTYPE_EQUATION
public static final int SUBTYPE_EQUATION
- See Also:
- Constant Field Values
-
SUBTYPE_WORDART
public static final int SUBTYPE_WORDART
- See Also:
- Constant Field Values
-
SUBTYPE_SOUND
public static final int SUBTYPE_SOUND
- See Also:
- Constant Field Values
-
SUBTYPE_IMAGE
public static final int SUBTYPE_IMAGE
- See Also:
- Constant Field Values
-
SUBTYPE_POWERPOINT_PRESENTATION
public static final int SUBTYPE_POWERPOINT_PRESENTATION
- See Also:
- Constant Field Values
-
SUBTYPE_POWERPOINT_SLIDE
public static final int SUBTYPE_POWERPOINT_SLIDE
- See Also:
- Constant Field Values
-
SUBTYPE_PROJECT
public static final int SUBTYPE_PROJECT
- See Also:
- Constant Field Values
-
SUBTYPE_NOTEIT
public static final int SUBTYPE_NOTEIT
- See Also:
- Constant Field Values
-
SUBTYPE_EXCEL_CHART
public static final int SUBTYPE_EXCEL_CHART
- See Also:
- Constant Field Values
-
SUBTYPE_MEDIA_PLAYER
public static final int SUBTYPE_MEDIA_PLAYER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDrawAspect
public int getDrawAspect()
Gets whether the object can be completely seen, or if only the icon is visible.- Returns:
- the draw aspect, one of the
DRAW_ASPECT_*constants.
-
setDrawAspect
public void setDrawAspect(int aspect)
Sets whether the object can be completely seen, or if only the icon is visible.- Parameters:
aspect- the draw aspect, one of theDRAW_ASPECT_*constants.
-
getType
public int getType()
Gets whether the object is embedded or linked.- Returns:
- the type, one of the
TYPE_EMBEDDED_*constants.
-
setType
public void setType(int type)
Sets whether the object is embedded or linked.- Parameters:
type- the type, one of theTYPE_EMBEDDED_*constants.
-
getObjID
public int getObjID()
Gets the unique identifier for the OLE object.- Returns:
- the object ID.
-
setObjID
public void setObjID(int id)
Sets the unique identifier for the OLE object.- Parameters:
id- the object ID.
-
getSubType
public int getSubType()
Gets the type of OLE object.- Returns:
- the sub-type, one of the
SUBTYPE_*constants.
-
setSubType
public void setSubType(int type)
Sets the type of OLE object.- Parameters:
type- the sub-type, one of theSUBTYPE_*constants.
-
getObjStgDataRef
public int getObjStgDataRef()
Gets the reference to the persistent object- Returns:
- the reference to the persistent object, corresponds with an
ExOleObjStgstorage container.
-
setObjStgDataRef
public void setObjStgDataRef(int ref)
Sets the reference to the persistent object- Parameters:
ref- the reference to the persistent object, corresponds with anExOleObjStgstorage container.
-
getIsBlank
public boolean getIsBlank()
Gets whether the object's image is blank.- Returns:
trueif the object's image is blank.
-
getOptions
public int getOptions()
Gets misc options (the last four bytes in the atom).- Returns:
trueif the object's image is blank.
-
setOptions
public void setOptions(int opts)
Sets misc options (the last four bytes in the atom).
-
getRecordType
public long getRecordType()
Returns the type (held as a little endian in bytes 3 and 4) that this class handles.- Specified by:
getRecordTypein classRecord
-
writeOut
public void writeOut(java.io.OutputStream out) throws java.io.IOExceptionHave 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)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-