Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

:: drafts :: com :: sun :: star :: script :: provider ::

interface XScriptContext
Base Hierarchy
::com::sun::star::uno::XInterface
 |
 +-XScriptContext
Description
This interface is provided to scripts, and provides a means of access to the various interfaces which they might need to perform some action on a document. It is required to be passed as the first argument for any Java scripts.

Methods' Summary
getDocument Obtain the document reference on which the script can operate
getDesktop Obtain the desktop reference on which the script can operate
getComponentContext Obtain the component context which the script can use to create other uno components
Methods' Details
getDocument
::com::sun::star::frame::XModel
getDocument();
 
 

Description
Obtain the document reference on which the script can operate
Returns
com::sun::star::frame::XModel interface
getDesktop
::com::sun::star::frame::XDesktop
getDesktop();
 
 

Description
Obtain the desktop reference on which the script can operate
Returns
com::sun::star::frame::XDesktop interface
getComponentContext
::com::sun::star::uno::XComponentContext
getComponentContext();
 
 

Description
Obtain the component context which the script can use to create other uno components
Returns
com::sun::star::uno::XComponentContext interface
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.