Package writer2latex.office
Class EmbeddedXMLObject
java.lang.Object
writer2latex.office.EmbeddedObject
writer2latex.office.EmbeddedXMLObject
This class represents those embedded objects in an ODF document that have an XML representation:
Formulas, charts, spreadsheets, text, drawings and presentations.
These object types are stored using a combination of content, settings and styles XML files.
The settings are application specific and ignored.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EmbeddedXMLObject
(String sName, String sType, OfficeDocument doc, SimpleZipReader source) Read an object from an ODF package document -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose thisEmbeddedObject
.Returns the content data for this embedded object.Returns the style data for this embedded object.Methods inherited from class writer2latex.office.EmbeddedObject
getName, getType
-
Field Details
-
contentDOM
-
stylesDOM
-
-
Constructor Details
-
EmbeddedXMLObject
Read an object from an ODF package document- Parameters:
sName
- The name of the object.sType
- The MIME-type of the object.source
- A ZIP reader providing the contents of the package
-
-
Method Details
-
getContentDOM
Returns the content data for this embedded object.- Returns:
- DOM representation of "content.xml"
- Throws:
SAXException
- If any parser error occursIOException
- If any IO error occurs
-
getStylesDOM
Returns the style data for this embedded object.- Returns:
- DOM representation of "styles.xml"
- Throws:
SAXException
- If any parser error occursIOException
- If any IO error occurs
-
dispose
public void dispose()Description copied from class:EmbeddedObject
Dispose thisEmbeddedObject
. This implies that the content is nullified and the object is removed from the collection in theOfficeDocument
.- Overrides:
dispose
in classEmbeddedObject
-