|
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.document.AbstractDocument
public abstract class AbstractDocument
OpenOffice.org base document implementation.
Field Summary | |
---|---|
protected com.sun.star.lang.XComponent |
xComponent
|
Fields inherited from interface ag.ion.bion.officelayer.document.IDocument |
---|
BASE, CALC, DRAW, EVENT_ON_ALPHA_CHAR_INPUT, EVENT_ON_FOCUS, EVENT_ON_INSERT_DONE, EVENT_ON_INSERT_START, EVENT_ON_LOAD, EVENT_ON_LOAD_DONE, EVENT_ON_LOAD_FINISHED, EVENT_ON_MODIFY_CHANGED, EVENT_ON_MOUSE_OUT, EVENT_ON_MOUSE_OVER, EVENT_ON_NEW, EVENT_ON_NON_ALPHA_CHAR_INPUT, EVENT_ON_SAVE, EVENT_ON_SAVE_AS, EVENT_ON_SAVE_AS_DONE, EVENT_ON_SAVE_DONE, EVENT_ON_SAVE_FINISHED, EVENT_ON_UNLOAD, GLOBAL, IMPRESS, MATH, WEB, WRITER |
Constructor Summary | |
---|---|
AbstractDocument(com.sun.star.lang.XComponent xComponent)
Constructs new OpenOffice.org document. |
Method Summary | |
---|---|
void |
addCloseListener(ICloseListener closeListener)
Adds listener for closing events to the document. |
void |
addDocumentListener(IDocumentListener documentListener)
Adds new document listener. |
void |
addDocumentModifyListener(IDocumentModifyListener documentModifyListener)
Adds new document modify listener. |
void |
close()
Closes the document. |
boolean |
equalsTo(IDocument compareDocument)
Checks if the document equals another document. |
void |
fireDocumentEvent(java.lang.String documentEventName)
Fires the document event for the submitted document event constant. |
IFilterProvider |
getFilterProvider()
Returns filter provider. |
IFormService |
getFormService()
Returns form service, or null if not available. |
IFrame |
getFrame()
Returns Frame of the document. |
java.net.URL |
getLocationURL()
Deprecated. Use the IPersistenceService instead. |
IPersistenceService |
getPersistenceService()
Returns persistence service. |
IPrintService |
getPrintService()
Returns the print service of the document. |
IScriptingService |
getScriptingService()
Returns scripting service of the document. |
IServiceProvider |
getServiceProvider()
Returns the applications service provider, or null if not available. |
com.sun.star.lang.XComponent |
getXComponent()
Returns OpenOffice.org XComponent interface. |
com.sun.star.frame.XFrame |
getXFrame()
Returns OpenOffice.org XFrame interface. |
boolean |
isModified()
Returns information whether the document was modified. |
boolean |
isOpen()
Returns information wheter the document is open. |
void |
print()
Prints the document. |
void |
reformat()
Reformats the document. |
void |
removeCloseListener(ICloseListener closeListener)
Removes listener for closing events to the document. |
protected void |
removeCloseListeners()
Removes all close listeners. |
void |
removeDocumentListener(IDocumentListener documentListener)
Removes document listener. |
protected void |
removeDocumentListeners()
Removes all document listeners. |
void |
removeDocumentModifyListener(IDocumentModifyListener documentModifyListener)
removes specified document modify listener. |
protected void |
removeModifyListeners()
Removes all modify listeners. |
void |
setModified(boolean modified)
Sets modified flag. |
void |
setSelection(ISelection selection)
Sets selection. |
void |
setServiceProvider(IServiceProvider serviceProvider)
Sets the service provider for the document. |
protected void |
setXInterfaceObjectSelection(IXInterfaceObjectSelection interfaceObject)
Sets selection on the XInterface object selection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ag.ion.bion.officelayer.document.IDocument |
---|
getDocumentType |
Field Detail |
---|
protected com.sun.star.lang.XComponent xComponent
Constructor Detail |
---|
public AbstractDocument(com.sun.star.lang.XComponent xComponent) throws java.lang.IllegalArgumentException
xComponent
- OpenOffice.org XComponent interface
java.lang.IllegalArgumentException
- if the submitted OpenOffice.org XComponent interface is not validMethod Detail |
---|
public com.sun.star.lang.XComponent getXComponent()
getXComponent
in interface IDocument
public com.sun.star.frame.XFrame getXFrame()
public IFrame getFrame()
getFrame
in interface IDocument
public IPersistenceService getPersistenceService()
getPersistenceService
in interface IDocument
public IScriptingService getScriptingService()
getScriptingService
in interface IDocument
public IFilterProvider getFilterProvider()
getFilterProvider
in interface IDocument
public IFormService getFormService()
getFormService
in interface IDocument
public void addDocumentModifyListener(IDocumentModifyListener documentModifyListener)
addDocumentModifyListener
in interface IDocument
documentModifyListener
- new document modify listenerpublic void addDocumentListener(IDocumentListener documentListener)
addDocumentListener
in interface IDocument
documentListener
- new document listenerpublic void removeDocumentModifyListener(IDocumentModifyListener documentModifyListener)
removeDocumentModifyListener
in interface IDocument
documentModifyListener
- the modif listener to be removedpublic void removeDocumentListener(IDocumentListener documentListener)
removeDocumentListener
in interface IDocument
documentListener
- document listenerpublic boolean isModified()
isModified
in interface IDocument
public void setModified(boolean modified) throws DocumentException
setModified
in interface IDocument
modified
- flag value
DocumentException
- if the status of the document can not be setpublic java.net.URL getLocationURL() throws DocumentException
getLocationURL
in interface IDocument
DocumentException
- if the URL is not validpublic void addCloseListener(ICloseListener closeListener)
addCloseListener
in interface IDocument
closeListener
- close listener
Andreas Bröckerpublic void removeCloseListener(ICloseListener closeListener)
removeCloseListener
in interface IDocument
closeListener
- close listenerpublic boolean isOpen()
isOpen
in interface IDocument
public void close()
close
in interface IDocument
public void print() throws DocumentException
print
in interface IDocument
DocumentException
- if printing failspublic IPrintService getPrintService()
getPrintService
in interface IDocument
public boolean equalsTo(IDocument compareDocument)
equalsTo
in interface IDocument
compareDocument
- document to be compared
public void reformat()
reformat
in interface IDocument
public void setSelection(ISelection selection) throws NOAException
setSelection
in interface ISelectionProvider
selection
- selection to be set
NOAException
- if the selection type is not supportedpublic void fireDocumentEvent(java.lang.String documentEventName)
fireDocumentEvent
in interface IDocument
documentEventName
- string constant for document eventIDocument.EVENT_ON_NEW
,
IDocument.EVENT_ON_LOAD
,
IDocument.EVENT_ON_LOAD_DONE
,
IDocument.EVENT_ON_LOAD_FINISHED
,
IDocument.EVENT_ON_SAVE_DONE
,
IDocument.EVENT_ON_SAVE_FINISHED
,
IDocument.EVENT_ON_SAVE
,
IDocument.EVENT_ON_SAVE_AS
,
IDocument.EVENT_ON_SAVE_AS_DONE
,
IDocument.EVENT_ON_MODIFY_CHANGED
,
IDocument.EVENT_ON_MOUSE_OVER
,
IDocument.EVENT_ON_MOUSE_OUT
,
IDocument.EVENT_ON_FOCUS
,
IDocument.EVENT_ON_ALPHA_CHAR_INPUT
,
IDocument.EVENT_ON_NON_ALPHA_CHAR_INPUT
,
IDocument.EVENT_ON_INSERT_DONE
,
IDocument.EVENT_ON_INSERT_START
,
IDocument.EVENT_ON_UNLOAD
public IServiceProvider getServiceProvider()
getServiceProvider
in interface IDocument
public void setServiceProvider(IServiceProvider serviceProvider)
serviceProvider
- the service provider to be setprotected void setXInterfaceObjectSelection(IXInterfaceObjectSelection interfaceObject) throws NOAException
interfaceObject
- XInterface object selection to be set
NOAException
- if the selection type is not supportedprotected void removeCloseListeners()
protected void removeModifyListeners()
protected void removeDocumentListeners()
|
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 |