INTEGRATION: CWS odbmacros2 (1.13.66); FILE MERGED

2007/12/17 12:43:37 fs 1.13.66.1: #i49133#
allow to create script providers for documents which do not support
embedded scripts themselves (i.e. don't have the XEmbeddedScripts
interface), but are able to point to such a do cument (via
XScriptInvocationContext) whose scripts they can execute
This commit is contained in:
Kurt Zenker
2008-03-06 15:29:00 +00:00
parent b2601a17c9
commit a043d16097

View File

@@ -4,9 +4,9 @@
*
* $RCSfile: MasterScriptProvider.hxx,v $
*
* $Revision: 1.13 $
* $Revision: 1.14 $
*
* last change: $Author: hr $ $Date: 2006-06-19 10:21:21 $
* last change: $Author: kz $ $Date: 2008-03-06 16:29:00 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -43,6 +43,7 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/document/XScriptInvocationContext.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
@@ -127,7 +128,7 @@ public:
css::uno::Reference< css::script::provider::XScriptProvider > getPkgProvider() { return m_xMSPPkg; }
// returns context string for this provider, eg
::rtl::OUString getContextString() { return m_sCtxString; }
css::uno::Reference< css::frame::XModel > getModel() { return m_xModel; }
private:
::rtl::OUString parseLocationName( const ::rtl::OUString& location );
void createPkgProvider();
@@ -137,11 +138,13 @@ private:
ProviderCache* providerCache();
/* to obtain other services if needed */
css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Reference< css::lang::XMultiComponentFactory > m_xMgr;
css::uno::Reference< css::frame::XModel > m_xModel;
css::uno::Sequence< css::uno::Any > m_sAargs;
::rtl::OUString m_sNodeName;
css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Reference< css::lang::XMultiComponentFactory > m_xMgr;
css::uno::Reference< css::frame::XModel > m_xModel;
css::uno::Reference< css::document::XScriptInvocationContext > m_xInvocationContext;
css::uno::Sequence< css::uno::Any > m_sAargs;
::rtl::OUString m_sNodeName;
// This component supports XInitialization, it can be created
// using createInstanceXXX() or createInstanceWithArgumentsXXX using
// the service Mangager.