com.sun.star.script.framework.provider.oorexx
Class ScriptImpl
java.lang.Object
com.sun.star.script.framework.provider.oorexx.ScriptImpl
- All Implemented Interfaces:
- com.sun.star.script.provider.XScript, com.sun.star.uno.XInterface
class ScriptImpl
- extends java.lang.Object
- implements com.sun.star.script.provider.XScript
Fields inherited from interface com.sun.star.script.provider.XScript |
UNOTYPEINFO |
Constructor Summary |
ScriptImpl(com.sun.star.uno.XComponentContext ctx,
com.sun.star.script.framework.container.ScriptMetaData metaData,
com.sun.star.frame.XModel xModel)
|
ScriptImpl(com.sun.star.uno.XComponentContext ctx,
com.sun.star.script.framework.container.ScriptMetaData metaData,
com.sun.star.frame.XModel xModel,
java.lang.Object xInvocContext)
|
Method Summary |
java.lang.Object |
invoke(java.lang.Object[] aParams,
short[][] aOutParamsIndex,
java.lang.Object[][] aOutParams)
This method will be used to execute a script/macro if the user chooses
"Extras -> Macro -> execute". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptImpl
ScriptImpl(com.sun.star.uno.XComponentContext ctx,
com.sun.star.script.framework.container.ScriptMetaData metaData,
com.sun.star.frame.XModel xModel)
throws com.sun.star.uno.RuntimeException
- Throws:
com.sun.star.uno.RuntimeException
ScriptImpl
ScriptImpl(com.sun.star.uno.XComponentContext ctx,
com.sun.star.script.framework.container.ScriptMetaData metaData,
com.sun.star.frame.XModel xModel,
java.lang.Object xInvocContext)
throws com.sun.star.uno.RuntimeException
- Throws:
com.sun.star.uno.RuntimeException
invoke
public java.lang.Object invoke(java.lang.Object[] aParams,
short[][] aOutParamsIndex,
java.lang.Object[][] aOutParams)
throws com.sun.star.script.provider.ScriptFrameworkErrorException,
com.sun.star.reflection.InvocationTargetException
- This method will be used to execute a script/macro if the user chooses
"Extras -> Macro -> execute".
documentStorageID and document reference
for use in script name resolving
- Specified by:
invoke
in interface com.sun.star.script.provider.XScript
- Parameters:
aParams
- All parameters; pure, out params are
undefined in sequence, i.e., the value
has to be ignored by the calleeaOutParamIndex
- Out indicesaOutParam
- Out parameters
- Returns:
- The value returned from the function
being invoked
- Throws:
com.sun.star.lang.IllegalArgumentException
- If there is no matching script name
com.sun.star.script.CannotConvertException
- If args do not match or cannot
be converted the those of the
invokee
com.sun.star.reflection.InvocationTargetException
- If the running script throws
an exception this information
is captured and rethrown as
this exception type.
com.sun.star.script.provider.ScriptFrameworkErrorException