diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-06 15:19:33 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-06 15:19:33 +0000 |
commit | 3157848a0bb563569c77967dfa1c8b5cb9594f7d (patch) | |
tree | 23be2147e9f50697099da2d3c4af484e5afece7b /scripting | |
parent | 17278e537c71c6168dd5d207de17ad9d67f9e31c (diff) |
INTEGRATION: CWS odbmacros2 (1.6.90); FILE MERGED
2007/12/19 13:24:57 fs 1.6.90.1: #i49133# when invoking a script, temporarily set the XScriptInvocationContext as ThisComponent at the script
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/basprov/basscript.hxx | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/scripting/source/basprov/basscript.hxx b/scripting/source/basprov/basscript.hxx index 41dccd0707d5..9c7927c5ede1 100644 --- a/scripting/source/basprov/basscript.hxx +++ b/scripting/source/basprov/basscript.hxx @@ -4,9 +4,9 @@ * * $RCSfile: basscript.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2005-09-09 02:24:12 $ + * last change: $Author: kz $ $Date: 2008-03-06 16:19:33 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -39,6 +39,9 @@ #ifndef _COM_SUN_STAR_SCRIPT_PROVIDER_XSCRIPT_HPP_ #include <com/sun/star/script/provider/XScript.hpp> #endif +#ifndef _COM_SUN_STAR_DOCUMENT_XSCRIPTINVOCATIONCONTEXT_HPP_ +#include <com/sun/star/document/XScriptInvocationContext.hpp> +#endif #ifndef _CPPUHELPER_IMPLBASE1_HXX_ #include <cppuhelper/implbase1.hxx> #endif @@ -48,6 +51,8 @@ #endif +class BasicManager; + //......................................................................... namespace basprov { @@ -64,10 +69,23 @@ namespace basprov class BasicScriptImpl : public BasicScriptImpl_BASE { private: - SbMethodRef m_xMethod; - ::rtl::OUString m_funcName; + SbMethodRef m_xMethod; + ::rtl::OUString m_funcName; + BasicManager* m_documentBasicManager; + ::com::sun::star::uno::Reference< ::com::sun::star::document::XScriptInvocationContext > + m_xDocumentScriptContext; + public: - BasicScriptImpl( const ::rtl::OUString& funcName, SbMethodRef xMethod ); + BasicScriptImpl( + const ::rtl::OUString& funcName, + SbMethodRef xMethod + ); + BasicScriptImpl( + const ::rtl::OUString& funcName, + SbMethodRef xMethod, + BasicManager& documentBasicManager, + const ::com::sun::star::uno::Reference< ::com::sun::star::document::XScriptInvocationContext >& documentScriptContext + ); virtual ~BasicScriptImpl(); // XScript |