20080913, rgf

Class ScriptImpl

  extended byorg.oorexx.ooo.scripting.framework.ScriptImpl
All Implemented Interfaces:
com.sun.star.uno.XInterface, com.sun.star.script.provider.XScript

class ScriptImpl
extends java.lang.Object
implements com.sun.star.script.provider.XScript

Field Summary
Fields inherited from interface com.sun.star.script.provider.XScript
Constructor Summary
(package private) ScriptImpl(com.sun.star.uno.XComponentContext ctx, com.sun.star.script.framework.container.ScriptMetaData metaData, com.sun.star.frame.XModel xModel)
Method Summary
 java.lang.Object invoke(java.lang.Object[] aParams, short[][] aOutParamIndex, java.lang.Object[][] aOutParam)
          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

Constructor Detail


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
Method Detail


public java.lang.Object invoke(java.lang.Object[] aParams,
                               short[][] aOutParamIndex,
                               java.lang.Object[][] aOutParam)
                        throws com.sun.star.script.provider.ScriptFrameworkErrorException,
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
aParams - All parameters; pure, out params are undefined in sequence, i.e., the value has to be ignored by the callee
aOutParamIndex - Out indices
aOutParam - Out parameters
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.

20080913, rgf