LibreOffice Module xmerge (master) 1
|
This class represents those embedded objects in an OpenOffice.org document that have an XML representation. More...
Public Member Functions | |
EmbeddedXMLObject (String name, String type) | |
Constructor for an embedded object stored using an XML representation. More... | |
Document | getContentDOM () throws SAXException, IOException |
Returns the content data for this embedded object. More... | |
void | setContentDOM (Document content) |
Sets the content data for the embedded object. More... | |
Document | getSettingsDOM () throws SAXException, IOException |
Returns the settings data for this embedded object. More... | |
void | setSettingsDOM (Document settings) |
Sets the settings data for the embedded object. More... | |
Document | getStylesDOM () throws SAXException, IOException |
Returns the style data for this embedded object. More... | |
void | setStylesDOM (Document styles) |
Sets the styles data for the embedded object. More... | |
Public Member Functions inherited from org.openoffice.xmerge.converter.xml.EmbeddedObject | |
EmbeddedObject (String name, String type) | |
Constructor for an embedded object stored using an XML representation. More... | |
final String | getName () |
Retrieves the name of the embedded object represented by an instance of this class. More... | |
final String | getType () |
Retrieves the type of the embedded object represented by an instance of this class. More... | |
Private Member Functions | |
Document | getNamedDOM (String name) throws SAXException, IOException |
This method extracts the data for the given XML file from the SX? file and creates a DOM representation of it. More... | |
Private Attributes | |
Document | contentDOM = null |
Document | settingsDOM = null |
Document | stylesDOM = null |
DocumentBuilder | builder = null |
Additional Inherited Members | |
Protected Attributes inherited from org.openoffice.xmerge.converter.xml.EmbeddedObject | |
String | objName |
String | objType |
OfficeZip | zipFile = null |
Representation of the file from which this object was read. More... | |
boolean | hasChanged = false |
Flag indicating if this document has changed since reading or is new. More... | |
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:
Description Object Formula 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.
Definition at line 63 of file EmbeddedXMLObject.java.
|
inline |
Constructor for an embedded object stored using an XML representation.
name | The name of the object. |
type | The mime-type of the object. See the class summary. |
Definition at line 78 of file EmbeddedXMLObject.java.
|
inline |
Returns the content data for this embedded object.
SAXException | If any parser error occurs. |
IOException | If any IO error occurs. |
Definition at line 103 of file EmbeddedXMLObject.java.
References org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.contentDOM, Document, and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getNamedDOM().
|
inlineprivate |
This method extracts the data for the given XML file from the SX? file and creates a DOM representation of it.
name | The name of the XML file to retrieve. It is paired with the object name to access the SX? file. |
SAXException | If any parser error occurs. |
IOException | If any IO error occurs. |
Definition at line 188 of file EmbeddedXMLObject.java.
References org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.builder, Document, name, org.openoffice.xmerge.converter.xml.EmbeddedObject.objName, and org.openoffice.xmerge.converter.xml.EmbeddedObject.zipFile.
Referenced by org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getContentDOM(), org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getSettingsDOM(), and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getStylesDOM().
|
inline |
Returns the settings data for this embedded object.
SAXException | If any parser error occurs. |
IOException | If any IO error occurs. |
Definition at line 130 of file EmbeddedXMLObject.java.
References Document, org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getNamedDOM(), and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.settingsDOM.
|
inline |
Returns the style data for this embedded object.
SAXException | If any parser error occurs. |
IOException | If any IO error occurs. |
Definition at line 157 of file EmbeddedXMLObject.java.
References Document, org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getNamedDOM(), and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.stylesDOM.
|
inline |
Sets the content data for the embedded object.
content | DOM representation of the object's content. |
Definition at line 117 of file EmbeddedXMLObject.java.
References org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.contentDOM, and org.openoffice.xmerge.converter.xml.EmbeddedObject.hasChanged.
|
inline |
Sets the settings data for the embedded object.
settings | DOM representation of the object's styles. |
Definition at line 144 of file EmbeddedXMLObject.java.
References org.openoffice.xmerge.converter.xml.EmbeddedObject.hasChanged, and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.settingsDOM.
|
inline |
Sets the styles data for the embedded object.
styles | DOM representation of the object's styles. |
Definition at line 171 of file EmbeddedXMLObject.java.
References org.openoffice.xmerge.converter.xml.EmbeddedObject.hasChanged, styles, and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.stylesDOM.
|
private |
Definition at line 70 of file EmbeddedXMLObject.java.
Referenced by org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getNamedDOM().
|
private |
Definition at line 66 of file EmbeddedXMLObject.java.
Referenced by org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getContentDOM(), and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.setContentDOM().
|
private |
Definition at line 67 of file EmbeddedXMLObject.java.
Referenced by org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getSettingsDOM(), and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.setSettingsDOM().
|
private |
Definition at line 68 of file EmbeddedXMLObject.java.
Referenced by org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.getStylesDOM(), and org.openoffice.xmerge.converter.xml.EmbeddedXMLObject.setStylesDOM().