Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.application.connection
Class LocalOfficeConnection

java.lang.Object
  extended by ag.ion.bion.officelayer.application.connection.AbstractOfficeConnection
      extended by ag.ion.bion.officelayer.internal.application.connection.LocalOfficeConnection
All Implemented Interfaces:
IOfficeConnection

public class LocalOfficeConnection
extends AbstractOfficeConnection

Connection in order to communicate with local OpenOffice.org application.


Field Summary
 
Fields inherited from class ag.ion.bion.officelayer.application.connection.AbstractOfficeConnection
xBridge
 
Constructor Summary
LocalOfficeConnection()
           
 
Method Summary
 void closeConnection()
          Closes connection to OpenOffice.org.
 com.sun.star.comp.beans.OfficeWindow createLocalOfficeWindow(java.awt.Container container)
          Constructs new local window for OpenOffice.org.
 java.lang.String getHost()
          Returns host of the connection
 com.sun.star.frame.XFrame getOfficeFrame(java.awt.Container container)
          Returns OpenOffice.org frame integrated into the submitted Java AWT container.
 com.sun.star.frame.XFrame getOfficeFrame(NativeView nativeView)
          Returns OpenOffice.org frame integrated into the submitted native view.
 java.lang.String getPort()
          Returns port of the connection.
 com.sun.star.uno.XComponentContext getXComponentContext()
          Returns XComponentContext.
 com.sun.star.lang.XMultiComponentFactory getXMultiComponentFactory()
          Returns XMultiComponentFactory.
 com.sun.star.lang.XMultiServiceFactory getXMultiServiceFactory()
          Returns XMultiServiceFactory.
 boolean isConnected()
          Returns information whether the connection is active.
 boolean openConnection()
          Opens connection to OpenOffice.org.
 boolean openConnection(IOfficeProgressMonitor officeProgressMonitor)
          Opens connection to OpenOffice.org.
 void setHost(java.lang.String host)
          Sets host where Office instance is listening.
 void setOfficePath(java.lang.String officePath)
          Sets path to OpenOffice.org installation.
 void setPort(java.lang.String port)
          Sets port where Office instance is listening
 void setUseBridge(boolean useBridge)
          Sets information whether the connection uses a bridge.
 boolean usesBridge()
          Returns information whether the connection uses a bridge.
 
Methods inherited from class ag.ion.bion.officelayer.application.connection.AbstractOfficeConnection
addBridgeEventListener, createService, createServiceWithContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalOfficeConnection

public LocalOfficeConnection()
Method Detail

setOfficePath

public void setOfficePath(java.lang.String officePath)
Sets path to OpenOffice.org installation.

Parameters:
officePath - path to OpenOffice.org installation

setHost

public void setHost(java.lang.String host)
Sets host where Office instance is listening.

Parameters:
host - host where Office instance is listening

setPort

public void setPort(java.lang.String port)
Sets port where Office instance is listening

Parameters:
port - port where Office instance is listening

setUseBridge

public void setUseBridge(boolean useBridge)
Sets information whether the connection uses a bridge.

Parameters:
useBridge - information whether the connection uses a bridge

usesBridge

public boolean usesBridge()
Returns information whether the connection uses a bridge.

Returns:
information whether the connection uses a bridge

openConnection

public boolean openConnection(IOfficeProgressMonitor officeProgressMonitor)
                       throws java.lang.Exception
Opens connection to OpenOffice.org.

Parameters:
officeProgressMonitor - office progress monitor to be used
Returns:
information whether the connection is available
Throws:
java.lang.Exception - if any error occurs

openConnection

public boolean openConnection()
                       throws java.lang.Exception
Opens connection to OpenOffice.org.

Returns:
information whether the connection is available
Throws:
java.lang.Exception - if any error occurs

isConnected

public boolean isConnected()
Returns information whether the connection is active.

Returns:
information whether the connection is active

closeConnection

public void closeConnection()
Closes connection to OpenOffice.org.


getXComponentContext

public com.sun.star.uno.XComponentContext getXComponentContext()
Returns XComponentContext.

Returns:
XComponentContext

getXMultiServiceFactory

public com.sun.star.lang.XMultiServiceFactory getXMultiServiceFactory()
                                                               throws java.lang.Exception
Returns XMultiServiceFactory.

Returns:
XMultiServiceFactory
Throws:
java.lang.Exception - if anything fails

getXMultiComponentFactory

public com.sun.star.lang.XMultiComponentFactory getXMultiComponentFactory()
                                                                   throws java.lang.Exception
Returns XMultiComponentFactory.

Returns:
XMultiComponentFactory
Throws:
java.lang.Exception - if the closed connection could not be opened

getHost

public java.lang.String getHost()
Returns host of the connection

Returns:
host of the connection

getPort

public java.lang.String getPort()
Returns port of the connection.

Returns:
port of the connection.

createLocalOfficeWindow

public com.sun.star.comp.beans.OfficeWindow createLocalOfficeWindow(java.awt.Container container)
Constructs new local window for OpenOffice.org.

Parameters:
container - java AWT container
Returns:
new new local window for OpenOffice.org

getOfficeFrame

public com.sun.star.frame.XFrame getOfficeFrame(java.awt.Container container)
Returns OpenOffice.org frame integrated into the submitted Java AWT container.

Parameters:
container - java AWT container
Returns:
OpenOffice.org frame integrated into the submitted Java AWT container

getOfficeFrame

public com.sun.star.frame.XFrame getOfficeFrame(NativeView nativeView)
Returns OpenOffice.org frame integrated into the submitted native view.

Parameters:
nativeView - native view
Returns:
OpenOffice.org frame integrated into the submitted Java AWT container

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013