#ifndef __com_sun_star_scripting_XScriptContext_idl__ #define __com_sun_star_scripting_XScriptContext_idl__ #ifndef __com_sun_star_uno_XInterface_idl__ #include #endif //=========================================================================== module com { module sun { module star { module scripting { //=========================================================================== /** XScriptContext */ interface XScriptContext : com::sun::star::uno::XInterface { /** obtain an implementation of the ScriptStorage service The implementation of ScriptStorage should also contain a means for specifying the preferences for order of search, ie. look for in the document & then in the application. */ ScriptStorage getScriptStorage(); /** return the application context I presume this should in essence return the com.sun.star.frame.Desktop service, as is done for StarBasic in sfx2/source/appl/appbas SfxApplication::GetBasicManager */ XInterface getApplicationContext(); /** return the document context implementing this might be tricky. We can't, as is currently the case, assume that the CurrentDocuemtn is the one we want. It has been suggested that there might be an interface on the Desktop to create XScriptContext implementations, as it should know the document context?? */ XInterface getDocumentContext(); }; //=========================================================================== }; }; }; }; // com::sun::star::scripting #endif