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.document
Class DocumentLoader

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.document.DocumentLoader

public class DocumentLoader
extends java.lang.Object

Document loading helper class.


Constructor Summary
DocumentLoader()
           
 
Method Summary
static IDocument getDocument(com.sun.star.lang.XComponent xComponent, IServiceProvider serviceProvider)
          Returns document on the basis of the submitted OpenOffice.org XComponent.
static IDocument loadDocument(IServiceProvider serviceProvider, java.lang.String URL)
          Loads document from submitted URL.
static IDocument loadDocument(IServiceProvider serviceProvider, java.lang.String URL, com.sun.star.beans.PropertyValue[] properties)
          Loads document from submitted URL.
static IDocument loadDocument(IServiceProvider serviceProvider, com.sun.star.frame.XFrame xFrame, java.lang.String URL, int searchFlags, com.sun.star.beans.PropertyValue[] properties)
          Loads document from the submitted URL into the OpenOffice.org frame.
static IDocument loadDocument(IServiceProvider serviceProvider, com.sun.star.io.XInputStream xInputStream)
          Loads document on the basis of the submitted XInputStream implementation.
static IDocument loadDocument(IServiceProvider serviceProvider, com.sun.star.io.XInputStream xInputStream, com.sun.star.beans.PropertyValue[] properties)
          Loads document on the basis of the submitted XInputStream implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentLoader

public DocumentLoader()
Method Detail

loadDocument

public static IDocument loadDocument(IServiceProvider serviceProvider,
                                     java.lang.String URL)
                              throws java.lang.Exception,
                                     java.io.IOException
Loads document from submitted URL.

Parameters:
serviceProvider - the service provider to be used
URL - URL of the document
Returns:
loaded document
Throws:
java.lang.Exception - if an OpenOffice.org communication error occurs
java.io.IOException - if document can not be found

loadDocument

public static IDocument loadDocument(IServiceProvider serviceProvider,
                                     java.lang.String URL,
                                     com.sun.star.beans.PropertyValue[] properties)
                              throws java.lang.Exception,
                                     java.io.IOException
Loads document from submitted URL.

Parameters:
serviceProvider - the service provider to be used
URL - URL of the document
properties - properties for OpenOffice.org
Returns:
loaded document
Throws:
java.lang.Exception - if an OpenOffice.org communication error occurs
java.io.IOException - if document can not be found

loadDocument

public static IDocument loadDocument(IServiceProvider serviceProvider,
                                     com.sun.star.io.XInputStream xInputStream)
                              throws java.lang.Exception,
                                     java.io.IOException
Loads document on the basis of the submitted XInputStream implementation.

Parameters:
serviceProvider - the service provider to be used
xInputStream - OpenOffice.org XInputStream inplementation
Returns:
loaded Document
Throws:
java.lang.Exception - if an OpenOffice.org communication error occurs
java.io.IOException - if document can not be found

loadDocument

public static IDocument loadDocument(IServiceProvider serviceProvider,
                                     com.sun.star.io.XInputStream xInputStream,
                                     com.sun.star.beans.PropertyValue[] properties)
                              throws java.lang.Exception,
                                     java.io.IOException
Loads document on the basis of the submitted XInputStream implementation.

Parameters:
serviceProvider - the service provider to be used
xInputStream - OpenOffice.org XInputStream inplementation
properties - properties for OpenOffice.org
Returns:
loaded Document
Throws:
java.lang.Exception - if an OpenOffice.org communication error occurs
java.io.IOException - if document can not be found

loadDocument

public static IDocument loadDocument(IServiceProvider serviceProvider,
                                     com.sun.star.frame.XFrame xFrame,
                                     java.lang.String URL,
                                     int searchFlags,
                                     com.sun.star.beans.PropertyValue[] properties)
                              throws java.lang.Exception,
                                     java.io.IOException
Loads document from the submitted URL into the OpenOffice.org frame.

Parameters:
serviceProvider - the service provider to be used
xFrame - frame to used for document
URL - URL of the document
searchFlags - search flags for the target frame
properties - properties for OpenOffice.org
Returns:
loaded document
Throws:
java.lang.Exception - if an OpenOffice.org communication error occurs
java.io.IOException - if document can not be found

getDocument

public static IDocument getDocument(com.sun.star.lang.XComponent xComponent,
                                    IServiceProvider serviceProvider)
Returns document on the basis of the submitted OpenOffice.org XComponent. Returns null if the document can not be builded.

Parameters:
xComponent - OpenOffice.org XComponent or null if the document can not be builded
serviceProvider - the service provider to be used for the documents
Returns:
constructed document or null

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