|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OfficeDocument
| Method Summary | |
|---|---|
void |
addCloseListener(Runnable task)
allows to easily register a task that is to be executed when this frame is disposed |
Object |
dispatchCommand(String command,
String targetFrame,
Map<?,?> props)
allows to dispatch a UNO command on the document |
void |
dispose()
disposes the document (cutting the connection to it rather than closing the window) |
File |
exportToPDF(File file)
|
OODocType |
getDocumentType()
|
File |
getFile()
if this frame is associated with a store location, this method returns it as a file or null if no location is present (e.g. if the document has not been saved yet) |
com.sun.star.lang.XComponent |
getXComponent()
|
void |
print(Map<?,?> printerProperties,
Map<?,?> jobProperties)
|
void |
print(String printerName)
|
void |
print(String printerName,
int count)
|
void |
storeTo(OutputStream out,
Map<?,?> map)
|
void |
storeTo(URL url,
String filterName,
boolean representNewLocation)
|
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Methods inherited from interface com.antelmann.util.QueryMechanism |
|---|
query |
| Method Detail |
|---|
File getFile()
Object dispatchCommand(String command,
String targetFrame,
Map<?,?> props)
throws OfficeException
command - the command to be dispatchedtargetFrame - the frame to which the command is to be appliedprops - allows to specify additional properties to the command
OfficeExceptionvoid dispose()
void storeTo(URL url,
String filterName,
boolean representNewLocation)
throws IOException,
OfficeException
IOException
OfficeException
void storeTo(OutputStream out,
Map<?,?> map)
throws IOException,
OfficeException
IOException
OfficeExceptionvoid print(String printerName)
void print(String printerName,
int count)
throws OfficeException
OfficeException
void print(Map<?,?> printerProperties,
Map<?,?> jobProperties)
throws IllegalArgumentException
IllegalArgumentExceptioncom.sun.star.lang.XComponent getXComponent()
OODocType getDocumentType()
File exportToPDF(File file)
throws IOException,
OfficeException
IOException
OfficeExceptionvoid addCloseListener(Runnable task)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||