|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.ooffice.OOUtils
public class OOUtils
general utilities for OpenOffice This class implements ThirdParty for its use of OpenOffice libraries; see www.openoffice.org
| Nested Class Summary | |
|---|---|
static class |
OOUtils.TargetFrame
|
| Field Summary | |
|---|---|
static int |
ALL
search flag option |
static int |
CHILDREN
search flag option |
static int |
CREATE
search flag option |
static int |
GLOBAL
search flag option |
static int |
PARENT
search flag option |
static int |
SELF
search flag option |
static int |
SIBLINGS
search flag option |
static int |
TASKS
search flag option |
| Method Summary | ||
|---|---|---|
static void |
closeComponent(com.sun.star.lang.XComponent component)
closes and disposes the document; throws IOException (instead of others) so that implementing Closeable is easy for the given component |
|
static void |
debugPrintXProperties(com.sun.star.beans.XPropertySet ps)
|
|
static com.sun.star.lang.XComponent |
getActiveComponent()
|
|
static com.sun.star.frame.XComponentLoader |
getComponentLoader()
|
|
static String |
getStoreLocation(com.sun.star.lang.XComponent component)
|
|
static
|
loadDocument(Class<T> type,
File file,
Map<Object,Object> props,
OOUtils.TargetFrame target,
int searchFlag)
|
|
static
|
loadDocument(Class<T> type,
String url,
Map<Object,Object> props,
OOUtils.TargetFrame target,
int searchFlag)
|
|
static com.sun.star.beans.PropertyValue[] |
makePropertyValues(Map<Object,Object> props)
|
|
static String |
makeURLString(File file)
|
|
static void |
printComponent(com.sun.star.lang.XComponent component,
Map<Object,Object> printerProperties,
Map<Object,Object> jobProperties)
|
|
static void |
printComponent(com.sun.star.lang.XComponent component,
String printerName,
Map<Object,Object> props)
|
|
static
|
query(Class<T> c,
Object xObj)
utility method to ease access to the query interface of OpenOffice |
|
static void |
storeComponent(com.sun.star.lang.XComponent component)
|
|
static void |
storeComponent(com.sun.star.lang.XComponent component,
String url,
Map<Object,Object> props,
boolean representNewLocation)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PARENT
public static final int SELF
public static final int CHILDREN
public static final int CREATE
public static final int SIBLINGS
public static final int TASKS
public static final int ALL
public static final int GLOBAL
| Method Detail |
|---|
public static <T> T query(Class<T> c,
Object xObj)
public static <T> T loadDocument(Class<T> type,
File file,
Map<Object,Object> props,
OOUtils.TargetFrame target,
int searchFlag)
throws OfficeException,
IOException
OfficeException
IOExceptionpublic static String makeURLString(File file)
public static <T> T loadDocument(Class<T> type,
String url,
Map<Object,Object> props,
OOUtils.TargetFrame target,
int searchFlag)
throws OfficeException,
IOException
OfficeException
IOException
public static com.sun.star.lang.XComponent getActiveComponent()
throws OfficeException
OfficeException
public static com.sun.star.frame.XComponentLoader getComponentLoader()
throws OfficeException
OfficeExceptionpublic static String getStoreLocation(com.sun.star.lang.XComponent component)
public static void storeComponent(com.sun.star.lang.XComponent component)
throws IOException,
IllegalArgumentException
IOException
IllegalArgumentException
public static void storeComponent(com.sun.star.lang.XComponent component,
String url,
Map<Object,Object> props,
boolean representNewLocation)
throws IOException
IOException
public static void printComponent(com.sun.star.lang.XComponent component,
String printerName,
Map<Object,Object> props)
throws IllegalArgumentException
IllegalArgumentException
public static void printComponent(com.sun.star.lang.XComponent component,
Map<Object,Object> printerProperties,
Map<Object,Object> jobProperties)
throws IllegalArgumentException
IllegalArgumentException
public static void closeComponent(com.sun.star.lang.XComponent component)
throws IOException
IOExceptionpublic static com.sun.star.beans.PropertyValue[] makePropertyValues(Map<Object,Object> props)
public static void debugPrintXProperties(com.sun.star.beans.XPropertySet ps)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||