|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectag.ion.bion.officelayer.internal.document.DocumentService
public class DocumentService
Service for documents.
Constructor Summary | |
---|---|
DocumentService(IOfficeConnection officeConnection,
IServiceProvider serviceProvider)
Constructs new DocumentService. |
Method Summary | |
---|---|
IDocument |
constructNewDocument(IFrame frame,
java.lang.String documentType,
IDocumentDescriptor documentDescriptor)
Constructs new document in the submitted frame. |
IDocument |
constructNewDocument(java.lang.String documentType,
IDocumentDescriptor documentDescriptor)
Constructs new document. |
IDocument |
constructNewHiddenDocument(java.lang.String documentType)
Constructs new hidden document of the submitted type. |
void |
dispose()
Disposes all allocated resources. |
IDocument[] |
getCurrentDocuments()
Returns current documents of an application. |
IDocument |
loadDocument(IFrame frame,
java.io.InputStream inputStream,
IDocumentDescriptor documentDescriptor)
Loads document on the basis of the submitted stream. |
IDocument |
loadDocument(IFrame frame,
java.lang.String url)
Loads document into the submitted frame. |
IDocument |
loadDocument(IFrame frame,
java.lang.String url,
IDocumentDescriptor documentDescriptor)
Loads document into the submitted frame. |
IDocument |
loadDocument(java.io.InputStream inputStream,
IDocumentDescriptor documentDescriptor)
Loads document on the basis of the submitted stream. |
IDocument |
loadDocument(IOfficeProgressMonitor officeProgressMonitor,
IFrame frame,
java.io.InputStream inputStream,
IDocumentDescriptor documentDescriptor)
Loads document on the basis of the submitted stream. |
IDocument |
loadDocument(IOfficeProgressMonitor officeProgressMonitor,
java.io.InputStream inputStream,
IDocumentDescriptor documentDescriptor)
Loads document on the basis of the submitted stream. |
IDocument |
loadDocument(java.lang.String url)
Loads document on the basis of the submitted URL. |
IDocument |
loadDocument(java.lang.String url,
IDocumentDescriptor documentDescriptor)
Loads document on the basis of the submitted URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentService(IOfficeConnection officeConnection, IServiceProvider serviceProvider) throws java.lang.IllegalArgumentException
officeConnection
- office connection to be usedserviceProvider
- the service provider to be used
java.lang.IllegalArgumentException
- if the submitted office connection is not validMethod Detail |
---|
public IDocument constructNewDocument(java.lang.String documentType, IDocumentDescriptor documentDescriptor) throws NOAException
constructNewDocument
in interface IDocumentService
documentType
- document type to be useddocumentDescriptor
- document descriptor to be used
NOAException
- if the new document can not be constructedpublic IDocument constructNewDocument(IFrame frame, java.lang.String documentType, IDocumentDescriptor documentDescriptor) throws NOAException
IDocument.WRITER
IDocument.CALC
IDocument.IMPRESS
IDocument.DRAW
IDocument.MATH
IDocument.WEB
IDocument.BASE
IDocument.GLOBAL
constructNewDocument
in interface IDocumentService
frame
- frame to be useddocumentType
- document type to be useddocumentDescriptor
- document descriptor to be used
NOAException
- if the new document can not be constructedpublic IDocument constructNewHiddenDocument(java.lang.String documentType) throws NOAException
IDocument.WRITER
IDocument.CALC
IDocument.IMPRESS
IDocument.DRAW
IDocument.MATH
IDocument.WEB
IDocument.BASE
IDocument.GLOBAL
constructNewHiddenDocument
in interface IDocumentService
documentType
- document type to be constructed
NOAException
- if the document can not be contructedpublic IDocument loadDocument(java.lang.String url) throws DocumentException
loadDocument
in interface IDocumentService
url
- URL of the document
DocumentException
- if the document can not be loaded or the URL does
not locate an OpenOffice.org documentpublic IDocument loadDocument(java.lang.String url, IDocumentDescriptor documentDescriptor) throws NOAException
loadDocument
in interface IDocumentService
url
- URL of the documentdocumentDescriptor
- document descriptor to be used
NOAException
- if the document can not be loaded or the URL does
not locate an OpenOffice.org documentpublic IDocument loadDocument(java.io.InputStream inputStream, IDocumentDescriptor documentDescriptor) throws DocumentException
loadDocument
in interface IDocumentService
inputStream
- input stream to be useddocumentDescriptor
- document descriptor to be used
DocumentException
- if the document can not be loadedpublic IDocument loadDocument(IFrame frame, java.io.InputStream inputStream, IDocumentDescriptor documentDescriptor) throws DocumentException
IPersistenceService
. Furthermore
OpenOffice.org can not recognize if the document is already open -
therefore the document will be never opened in ReadOnly
mode.
loadDocument
in interface IDocumentService
frame
- frame to be used for the documentinputStream
- input stream to be useddocumentDescriptor
- document descriptor to be used
DocumentException
- if the document can not be loadedpublic IDocument loadDocument(IOfficeProgressMonitor officeProgressMonitor, java.io.InputStream inputStream, IDocumentDescriptor documentDescriptor) throws DocumentException
loadDocument
in interface IDocumentService
officeProgressMonitor
- office progress monitor to be usedinputStream
- input stream to be useddocumentDescriptor
- document descriptor to be used
DocumentException
- if the document can not be loadedpublic IDocument loadDocument(IOfficeProgressMonitor officeProgressMonitor, IFrame frame, java.io.InputStream inputStream, IDocumentDescriptor documentDescriptor) throws DocumentException
IPersistenceService
. Furthermore
OpenOffice.org can not recognize if the document is already open -
therefore the document will be never opened in ReadOnly
mode.
loadDocument
in interface IDocumentService
officeProgressMonitor
- office progress monitor to be usedframe
- frame to be used for the documentinputStream
- input stream to be useddocumentDescriptor
- document descriptor to be used
DocumentException
- if the document can not be loadedpublic IDocument loadDocument(IFrame frame, java.lang.String url) throws DocumentException
loadDocument
in interface IDocumentService
frame
- frame to be used for the documenturl
- URL of the document (must start with file:///)
DocumentException
- if the document can not be loaded, the URL does
not locate an OpenOffice.org document of the submitted frame or URL is not validpublic IDocument loadDocument(IFrame frame, java.lang.String url, IDocumentDescriptor documentDescriptor) throws DocumentException
loadDocument
in interface IDocumentService
frame
- frame to be used for the documenturl
- URL of the documentdocumentDescriptor
- document descriptor to be used
DocumentException
- if the document can not be loaded, the URL does
not locate an OpenOffice.org document or the submitted frame or URL is not validpublic IDocument[] getCurrentDocuments() throws DocumentException
getCurrentDocuments
in interface IDocumentService
DocumentException
- if the documents cannot be providedpublic void dispose()
dispose
in interface IDisposeable
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |