writer2latex.xmerge

Class 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

protected Document
contentDOM
protected Document
settingsDOM
protected Document
stylesDOM

Fields inherited from class writer2latex.xmerge.EmbeddedObject

hasChanged, objName, objType, zipFile

Constructor Summary

EmbeddedXMLObject(String name, String type)
Constructor for an embedded object stored using an XML representation.

Method Summary

Document
getContentDOM()
Returns the content data for this embedded object.
Document
getSettingsDOM()
Returns the settings data for this embedded object.
Document
getStylesDOM()
Returns the style data for this embedded object.
void
setContentDOM(Document content)
Sets the content data for the embedded object.
void
setSettingsDOM(Document settings)
Sets the settings data for the embedded object.
void
setStylesDOM(Document styles)
Sets the styles data for the embedded object.

Methods inherited from class writer2latex.xmerge.EmbeddedObject

getName, getType

Field Details

contentDOM

protected Document contentDOM

settingsDOM

protected Document settingsDOM

stylesDOM

protected Document stylesDOM

Constructor Details

EmbeddedXMLObject

public EmbeddedXMLObject(String name,
                         String type)
Constructor for an embedded object stored using an XML representation.
Parameters:
name - The name of the object.
type - The mime-type of the object. See the class summary.

Method Details

getContentDOM

public Document getContentDOM()
            throws SAXException,
                   IOException
Returns the content data for this embedded object.
Returns:
DOM represenation of "content.xml"

getSettingsDOM

public Document getSettingsDOM()
            throws SAXException,
                   IOException
Returns the settings data for this embedded object.
Returns:
DOM represenation of "settings.xml"

getStylesDOM

public Document getStylesDOM()
            throws SAXException,
                   IOException
Returns the style data for this embedded object.
Returns:
DOM represenation of "styles.xml"

setContentDOM

public void setContentDOM(Document content)
Sets the content data for the embedded object.
Parameters:
content - DOM representation of the object's content.

setSettingsDOM

public void setSettingsDOM(Document settings)
Sets the settings data for the embedded object.
Parameters:

setStylesDOM

public void setStylesDOM(Document styles)
Sets the styles data for the embedded object.
Parameters:
styles - DOM representation of the object's styles.