org.jopendocument.link
Class OOConnexion

java.lang.Object
  extended by org.jopendocument.link.OOConnexion

public abstract class OOConnexion
extends java.lang.Object

Connexion avec une instance d'OO

Author:
Administrateur

Constructor Summary
OOConnexion()
           
 
Method Summary
abstract  void closeConnexion()
           
static OOConnexion create()
          Return a connection to the default OpenOffice installation.
static OOConnexion create(OOInstallation ooInstall)
           
abstract  boolean isClosed()
          Whether the bridge is closed.
 Component loadDocument(java.io.File f, boolean hidden)
          Load a document in OpenOffice.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OOConnexion

public OOConnexion()
Method Detail

create

public static OOConnexion create()
                          throws java.lang.IllegalStateException
Return a connection to the default OpenOffice installation.

Returns:
a connection to the default OpenOffice or null if none is found.
Throws:
java.lang.IllegalStateException - if an error occurs while searching.

create

public static OOConnexion create(OOInstallation ooInstall)
                          throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

loadDocument

public final Component loadDocument(java.io.File f,
                                    boolean hidden)
                             throws java.io.IOException
Load a document in OpenOffice.

Parameters:
f - the file to load.
hidden - true if no frame should be visible.
Returns:
the new component.
Throws:
java.io.IOException - if an error occurs.

closeConnexion

public abstract void closeConnexion()

isClosed

public abstract boolean isClosed()
Whether the bridge is closed.

Returns:
true if closeConnexion() was called or OpenOffice is now longer running.