|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwriter2latex.xmerge.EmbeddedObject
writer2latex.xmerge.EmbeddedXMLObject
public class EmbeddedXMLObject
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 org.w3c.dom.Document |
contentDOM
|
protected org.w3c.dom.Document |
settingsDOM
|
protected org.w3c.dom.Document |
stylesDOM
|
Fields inherited from class writer2latex.xmerge.EmbeddedObject |
---|
hasChanged, objName, objType, zipFile |
Constructor Summary | |
---|---|
EmbeddedXMLObject(java.lang.String name,
java.lang.String type)
Constructor for an embedded object stored using an XML representation. |
Method Summary | |
---|---|
org.w3c.dom.Document |
getContentDOM()
Returns the content data for this embedded object. |
org.w3c.dom.Document |
getSettingsDOM()
Returns the settings data for this embedded object. |
org.w3c.dom.Document |
getStylesDOM()
Returns the style data for this embedded object. |
void |
setContentDOM(org.w3c.dom.Document content)
Sets the content data for the embedded object. |
void |
setSettingsDOM(org.w3c.dom.Document settings)
Sets the settings data for the embedded object. |
void |
setStylesDOM(org.w3c.dom.Document styles)
Sets the styles data for the embedded object. |
Methods inherited from class writer2latex.xmerge.EmbeddedObject |
---|
getName, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.w3c.dom.Document contentDOM
protected org.w3c.dom.Document settingsDOM
protected org.w3c.dom.Document stylesDOM
Constructor Detail |
---|
public EmbeddedXMLObject(java.lang.String name, java.lang.String type)
name
- The name of the object.type
- The mime-type of the object. See the class summary.Method Detail |
---|
public org.w3c.dom.Document getContentDOM() throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
- If any parser error occurs
java.io.IOException
- If any IO error occurspublic void setContentDOM(org.w3c.dom.Document content)
content
- DOM representation of the object's content.public org.w3c.dom.Document getSettingsDOM() throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
- If any parser error occurs
java.io.IOException
- If any IO error occurspublic void setSettingsDOM(org.w3c.dom.Document settings)
settings
- DOM representation of the object's settings.public org.w3c.dom.Document getStylesDOM() throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
- If any parser error occurs
java.io.IOException
- If any IO error occurspublic void setStylesDOM(org.w3c.dom.Document styles)
styles
- DOM representation of the object's styles.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |