Package com.independentsoft.office.odf
Class OfficeScripts
java.lang.Object
com.independentsoft.office.odf.OfficeScripts
Represents all script for a document.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the OfficeScripts class.OfficeScripts(InternalXMLStreamReader reader)Instantiates a new office scripts. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Contains a collection of listeners.Contains a collection of scripts.booleanReturns true if an office:scripts element was present in the source document.voidsetPresent(boolean present)Sets whether an office:scripts element should be emitted even when empty.toString()Converts the value of the current OfficeScripts object to its equivalent string representation.
-
Constructor Details
-
OfficeScripts
public OfficeScripts()Initializes a new instance of the OfficeScripts class. -
OfficeScripts
Instantiates a new office scripts.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
isPresent
public boolean isPresent()Returns true if an office:scripts element was present in the source document.- Returns:
- true if present
-
setPresent
public void setPresent(boolean present)Sets whether an office:scripts element should be emitted even when empty.- Parameters:
present- true to emit
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current OfficeScripts object to its equivalent string representation. -
getScripts
Contains a collection of scripts.- Returns:
- the scripts
-
getEventListeners
Contains a collection of listeners.- Returns:
- the event listeners
-