Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

util
Class DesktopTools

java.lang.Object
  |
  +--util.DesktopTools

public class DesktopTools
extends Object

contains helper methods for the Desktop


Constructor Summary
DesktopTools()
           
 
Method Summary
static void closeDoc(XInterface DocumentToClose)
          closes a given document
static Object createDesktop(XMultiServiceFactory xMSF)
          Creates an Instance of the Desktop service
static XComponentLoader getCLoader(XMultiServiceFactory xMSF)
          Queries the XComponentLoader
static XComponent loadDoc(XMultiServiceFactory xMSF, String url, PropertyValue[] Args)
          loads a document of from a given url with arguments
static XComponent openNewDoc(XMultiServiceFactory xMSF, String kind, PropertyValue[] Args)
          Opens a new document of a given kind with arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopTools

public DesktopTools()
Method Detail

getCLoader

public static XComponentLoader getCLoader(XMultiServiceFactory xMSF)
Queries the XComponentLoader
Parameters:
xMSF - the MultiServiceFactory
Returns:
the gained XComponentLoader

createDesktop

public static Object createDesktop(XMultiServiceFactory xMSF)
Creates an Instance of the Desktop service
Parameters:
xMSF - the MultiServiceFactory
Returns:
the gained Object

openNewDoc

public static XComponent openNewDoc(XMultiServiceFactory xMSF,
                                    String kind,
                                    PropertyValue[] Args)
Opens a new document of a given kind with arguments
Parameters:
xMSF - the MultiServiceFactory
Returns:
the XComponent Interface of the document

loadDoc

public static XComponent loadDoc(XMultiServiceFactory xMSF,
                                 String url,
                                 PropertyValue[] Args)
loads a document of from a given url with arguments
Parameters:
xMSF - the MultiServiceFactory
Returns:
the XComponent Interface of the document

closeDoc

public static void closeDoc(XInterface DocumentToClose)
closes a given document
Parameters:
DocumentToClose -  

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.