INTEGRATION: CWS odbmacros2 (1.9.54); FILE MERGED
2007/12/17 12:43:37 fs 1.9.54.2: #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 2007/12/10 11:08:56 fs 1.9.54.1: #i49133# don't use an SfxObjectShell, there's UNO equivalents nowadays, which also includes non-SFX documents then
This commit is contained in:
parent
a043d16097
commit
1b15d686bf
1 changed files with 3 additions and 9 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: MasterScriptProviderFactory.cxx,v $
|
||||
*
|
||||
* $Revision: 1.9 $
|
||||
* $Revision: 1.10 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2006-09-16 12:28:29 $
|
||||
* last change: $Author: kz $ $Date: 2008-03-06 16:29:42 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -41,12 +41,6 @@
|
|||
#include <cppuhelper/exc_hlp.hxx>
|
||||
#include <cppuhelper/implbase1.hxx>
|
||||
|
||||
#include <com/sun/star/container/XEnumerationAccess.hpp>
|
||||
#include <com/sun/star/container/XEnumeration.hpp>
|
||||
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
|
||||
#include <com/sun/star/frame/XDesktop.hpp>
|
||||
#include <com/sun/star/frame/XModel.hpp>
|
||||
|
||||
#include <util/util.hxx>
|
||||
|
||||
#include "MasterScriptProviderFactory.hxx"
|
||||
|
@ -77,7 +71,7 @@ MasterScriptProviderFactory::~MasterScriptProviderFactory()
|
|||
Reference< provider::XScriptProvider > SAL_CALL
|
||||
MasterScriptProviderFactory::createScriptProvider( const Any& context ) throw ( lang::IllegalArgumentException, RuntimeException)
|
||||
{
|
||||
Reference< provider::XScriptProvider > xMsp( getActiveMSPList()->createMSP( context ), UNO_QUERY_THROW );
|
||||
Reference< provider::XScriptProvider > xMsp( getActiveMSPList() ->getMSPFromAnyContext( context ), UNO_QUERY_THROW );
|
||||
return xMsp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue