uk.ac.lancs.relate.gateways.testing
Class Helper

java.lang.Object
  extended by uk.ac.lancs.relate.gateways.testing.Helper

public class Helper
extends java.lang.Object


Constructor Summary
Helper()
           
 
Method Summary
static com.sun.star.uno.XComponentContext connect()
          Connect to an office, if no office is running a new instance is started.
static com.sun.star.lang.XComponent createDocument(com.sun.star.uno.XComponentContext xOfficeContext, java.lang.String sURL, java.lang.String sTargetFrame, int nSearchFlags, com.sun.star.beans.PropertyValue[] aArgs)
          creates and instantiates new document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Helper

public Helper()
Method Detail

connect

public static com.sun.star.uno.XComponentContext connect()
                                                  throws java.lang.Exception
Connect to an office, if no office is running a new instance is started. A new connection is established and the service manger from the running offic eis returned.

Throws:
java.lang.Exception

createDocument

public static com.sun.star.lang.XComponent createDocument(com.sun.star.uno.XComponentContext xOfficeContext,
                                                          java.lang.String sURL,
                                                          java.lang.String sTargetFrame,
                                                          int nSearchFlags,
                                                          com.sun.star.beans.PropertyValue[] aArgs)
                                                   throws java.lang.Exception
creates and instantiates new document

Throws:
java.lang.Exception