class ScriptImpl
extends java.lang.Object
implements com.sun.star.script.provider.XScript
Constructor and Description |
---|
ScriptImpl(com.sun.star.uno.XComponentContext ctx,
ScriptMetaData metaData,
com.sun.star.frame.XModel xModel) |
ScriptImpl(com.sun.star.uno.XComponentContext ctx,
ScriptMetaData metaData,
com.sun.star.frame.XModel xModel,
java.lang.Object xInvocContext) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
copy2clipboard(java.lang.String s) |
(package private) static java.lang.String |
getThrowableInfos(java.lang.Throwable ta) |
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".
|
(package private) static void |
showErrorMessage(java.lang.String message) |
ScriptImpl(com.sun.star.uno.XComponentContext ctx, ScriptMetaData metaData, com.sun.star.frame.XModel xModel) throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeException
ScriptImpl(com.sun.star.uno.XComponentContext ctx, ScriptMetaData metaData, com.sun.star.frame.XModel xModel, java.lang.Object xInvocContext) throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeException
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
invoke
in interface com.sun.star.script.provider.XScript
aParams
- All parameters; pure, out params are
undefined in sequence, i.e., the value
has to be ignored by the calleeaOutParamsIndex
- Out indicesaOutParams
- Out parameterscom.sun.star.lang.IllegalArgumentException
- If there is no matching script namecom.sun.star.script.CannotConvertException
- If args do not match or cannot
be converted the those of the
invokeecom.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
static final void showErrorMessage(java.lang.String message)
static final java.lang.String getThrowableInfos(java.lang.Throwable ta)
static final void copy2clipboard(java.lang.String s)