20091031, rgf

com.sun.star.script.framework.provider.oorexx
Class ScriptImpl

java.lang.Object
  extended by com.sun.star.script.framework.provider.oorexx.ScriptImpl

 class ScriptImpl
extends java.lang.Object


Constructor Summary
ScriptImpl(XComponentContext ctx, ScriptMetaData metaData, XModel xModel)
           
ScriptImpl(XComponentContext ctx, ScriptMetaData metaData, 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
 

Constructor Detail

ScriptImpl

ScriptImpl(XComponentContext ctx,
           ScriptMetaData metaData,
           XModel xModel)
     throws com.sun.star.uno.RuntimeException
Throws:
com.sun.star.uno.RuntimeException

ScriptImpl

ScriptImpl(XComponentContext ctx,
           ScriptMetaData metaData,
           XModel xModel,
           java.lang.Object xInvocContext)
     throws com.sun.star.uno.RuntimeException
Throws:
com.sun.star.uno.RuntimeException
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object[] aParams,
                               short[][] aOutParamsIndex,
                               java.lang.Object[][] aOutParams)
                        throws ScriptFrameworkErrorException,
                               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

Parameters:
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
Returns:
The value returned from the function being invoked
Throws:
java.lang.IllegalArgumentException - If there is no matching script name
CannotConvertException - If args do not match or cannot be converted the those of the invokee
InvocationTargetException - If the running script throws an exception this information is captured and rethrown as this exception type.
ScriptFrameworkErrorException

20091031, rgf