|
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 valid| Method Detail |
|---|
public IDocument constructNewDocument(java.lang.String documentType,
IDocumentDescriptor documentDescriptor)
throws NOAException
constructNewDocument in interface IDocumentServicedocumentType - document type to be useddocumentDescriptor - document descriptor to be used
NOAException - if the new document can not be constructed
public IDocument constructNewDocument(IFrame frame,
java.lang.String documentType,
IDocumentDescriptor documentDescriptor)
throws NOAException
IDocument.WRITERIDocument.CALCIDocument.IMPRESSIDocument.DRAWIDocument.MATHIDocument.WEBIDocument.BASEIDocument.GLOBAL
constructNewDocument in interface IDocumentServiceframe - frame to be useddocumentType - document type to be useddocumentDescriptor - document descriptor to be used
NOAException - if the new document can not be constructed
public IDocument constructNewHiddenDocument(java.lang.String documentType)
throws NOAException
IDocument.WRITERIDocument.CALCIDocument.IMPRESSIDocument.DRAWIDocument.MATHIDocument.WEBIDocument.BASEIDocument.GLOBAL
constructNewHiddenDocument in interface IDocumentServicedocumentType - document type to be constructed
NOAException - if the document can not be contructed
public IDocument loadDocument(java.lang.String url)
throws DocumentException
loadDocument in interface IDocumentServiceurl - URL of the document
DocumentException - if the document can not be loaded or the URL does
not locate an OpenOffice.org document
public IDocument loadDocument(java.lang.String url,
IDocumentDescriptor documentDescriptor)
throws NOAException
loadDocument in interface IDocumentServiceurl - 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 document
public IDocument loadDocument(java.io.InputStream inputStream,
IDocumentDescriptor documentDescriptor)
throws DocumentException
loadDocument in interface IDocumentServiceinputStream - input stream to be useddocumentDescriptor - document descriptor to be used
DocumentException - if the document can not be loaded
public 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 IDocumentServiceframe - frame to be used for the documentinputStream - input stream to be useddocumentDescriptor - document descriptor to be used
DocumentException - if the document can not be loaded
public IDocument loadDocument(IOfficeProgressMonitor officeProgressMonitor,
java.io.InputStream inputStream,
IDocumentDescriptor documentDescriptor)
throws DocumentException
loadDocument in interface IDocumentServiceofficeProgressMonitor - office progress monitor to be usedinputStream - input stream to be useddocumentDescriptor - document descriptor to be used
DocumentException - if the document can not be loaded
public 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 IDocumentServiceofficeProgressMonitor - 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 loaded
public IDocument loadDocument(IFrame frame,
java.lang.String url)
throws DocumentException
loadDocument in interface IDocumentServiceframe - 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 valid
public IDocument loadDocument(IFrame frame,
java.lang.String url,
IDocumentDescriptor documentDescriptor)
throws DocumentException
loadDocument in interface IDocumentServiceframe - 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 valid
public IDocument[] getCurrentDocuments()
throws DocumentException
getCurrentDocuments in interface IDocumentServiceDocumentException - 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 | ||||||||