Package writer2latex.xmerge
Class EmbeddedXMLObject
- java.lang.Object
-
- writer2latex.xmerge.EmbeddedObject
-
- writer2latex.xmerge.EmbeddedXMLObject
-
public class EmbeddedXMLObject extends EmbeddedObject
This class represents those embedded objects in an OpenOffice.org document that have an XML representation. Currently, according to the OpenOffice.org File Format 1.0 document, there are 6 such objects: Formulae created with Math (application/vnd.sun.xml.math) Charts created with Chart (application/vnd.sun.xml.chart) Spreadsheets created with Calc (application/vnd.sun.xml.calc) Text created with Writer (application/vnd.sun.xml.writer) Drawings created with Draw (application/vnd.sun.xml.draw) Presentations created with Impress (application/vnd.sun.xml.impress) These object types are stored using a combination of content, settings and styles XML files.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.DocumentcontentDOMprotected org.w3c.dom.DocumentsettingsDOMprotected org.w3c.dom.DocumentstylesDOM-
Fields inherited from class writer2latex.xmerge.EmbeddedObject
hasChanged, objName, objType, zipFile
-
-
Constructor Summary
Constructors Constructor Description EmbeddedXMLObject(java.lang.String name, java.lang.String type)Constructor for an embedded object stored using an XML representation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.DocumentgetContentDOM()Returns the content data for this embedded object.org.w3c.dom.DocumentgetSettingsDOM()Returns the settings data for this embedded object.org.w3c.dom.DocumentgetStylesDOM()Returns the style data for this embedded object.voidsetContentDOM(org.w3c.dom.Document content)Sets the content data for the embedded object.voidsetSettingsDOM(org.w3c.dom.Document settings)Sets the settings data for the embedded object.voidsetStylesDOM(org.w3c.dom.Document styles)Sets the styles data for the embedded object.-
Methods inherited from class writer2latex.xmerge.EmbeddedObject
getName, getType
-
-
-
-
Method Detail
-
getContentDOM
public org.w3c.dom.Document getContentDOM() throws org.xml.sax.SAXException, java.io.IOExceptionReturns the content data for this embedded object.- Returns:
- DOM represenation of "content.xml"
- Throws:
org.xml.sax.SAXException- If any parser error occursjava.io.IOException- If any IO error occurs
-
setContentDOM
public void setContentDOM(org.w3c.dom.Document content)
Sets the content data for the embedded object.- Parameters:
content- DOM representation of the object's content.
-
getSettingsDOM
public org.w3c.dom.Document getSettingsDOM() throws org.xml.sax.SAXException, java.io.IOExceptionReturns the settings data for this embedded object.- Returns:
- DOM represenation of "settings.xml"
- Throws:
org.xml.sax.SAXException- If any parser error occursjava.io.IOException- If any IO error occurs
-
setSettingsDOM
public void setSettingsDOM(org.w3c.dom.Document settings)
Sets the settings data for the embedded object.- Parameters:
settings- DOM representation of the object's settings.
-
getStylesDOM
public org.w3c.dom.Document getStylesDOM() throws org.xml.sax.SAXException, java.io.IOExceptionReturns the style data for this embedded object.- Returns:
- DOM represenation of "styles.xml"
- Throws:
org.xml.sax.SAXException- If any parser error occursjava.io.IOException- If any IO error occurs
-
setStylesDOM
public void setStylesDOM(org.w3c.dom.Document styles)
Sets the styles data for the embedded object.- Parameters:
styles- DOM representation of the object's styles.
-
-