|
Syntax
- void setRoot
(
- com::sun::star::uno::XInterface xRoot );
Description
sets an interface to an object as a scripting root.
If the root object implements the XInvocation interface,
then the engine uses this interface to set/get properties and
call methods.
Syntax
- com::sun::star::uno::XInterface getRoot
();
Description
gets an interface to the object which is the scripting root.
Syntax
- void setLibraryAccess
(
- com::sun::star::script::XLibraryAccess Library );
Description
sets an access object to get external functions.
Syntax
- boolean compile
(
- string ModuleName,
- string Script,
- boolean CreateDebugInfo );
Description
compiles a script module in the scope of the root object.
Syntax
- any run
(
- string aScript,
- com::sun::star::uno::XInterface xThis,
- sequence< any > aArgs );
Description
runs a script specified by a string.
The arguments given in aArgs can be ignored by
the engine. The Script is executed synchronously.
Syntax
- void runAsync
(
- string acript,
- com::sun::star::uno::XInterface xThis,
- sequence< any > args,
- com::sun::star::script::XEngineListener xCallback );
Description
runs the script specified by a string and makes callbacks.
The arguments given in aArgs can be ignored by
the engine. The script is executed asynchronously.
Syntax
- void cancel
();
Description
terminates the execution of the running script.
The waiting queue (see
) is
cleared too.
Syntax
- void addEngineListener
(
- com::sun::star::script::XEngineListener Listener );
Description
adds an engine listener.
Syntax
- void removeEngineListener
(
- com::sun::star::script::XEngineListener Listener );
Description
removes an engine listener.
|