|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.init.service.ItsOdtIOManager
public class ItsOdtIOManager
Main Class for ODT File import and export.
Use this class to perform any processing concerning ITS markup in ODT files. In General this class SHALL be used to load and save TextDocument, that contain ITS markup. OpenOffice forbids the direct integration into the io processing, hence this class shall be called from a controller linked to some UI element: A toolbar or something.
Method Summary | |
---|---|
boolean |
exportDocument(java.net.URI resource,
com.sun.star.text.XTextDocument xDocument)
Exports (Saves) a document. |
static ItsOdtIOManager |
getIoManager(com.sun.star.frame.XComponentLoader loader)
Obtains an instance of the ItsOdtIOManager |
com.sun.star.text.XTextDocument |
importDocument(java.lang.String resource)
Imports an ODT Writer document |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ItsOdtIOManager getIoManager(com.sun.star.frame.XComponentLoader loader)
ItsOdtIOManager
loader
- the XComponentLoader
derived from XDesktop
ItsOdtIOManager
public com.sun.star.text.XTextDocument importDocument(java.lang.String resource) throws java.lang.Exception
resource
-
java.lang.Exception
public boolean exportDocument(java.net.URI resource, com.sun.star.text.XTextDocument xDocument) throws java.lang.Exception
In order to circumvent a direct ODT File Implementation, the ODT File will be saved natively via
the UNO API, the pre-saved document will be further processed by ItsProcessor
to insert the
appropriate data categories.
xDocument
- the XTextDocument
to savedoctype
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |