diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-05-19 07:27:33 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-05-19 07:27:33 +0000 |
commit | 110a889f2b614803cb2536ad9dd93d1559d40746 (patch) | |
tree | b0189b381b006a068f78b1758df0cf379d9dc049 /scripting | |
parent | 61cbf88343be62725e13ab8b0e71e0660c881299 (diff) |
INTEGRATION: CWS scriptingf4 (1.3.12); FILE MERGED
2004/05/06 12:50:30 npower 1.3.12.1: #i28812# Adding support for new MasterScriptProviderFactory service.
ActiveMSP has been changes so that it no longer performs the aggregation of the browsenodes of all instances of MasterScriptProviders. Additionally it no longer supports the XBrowseNode interface ( this functionality now performed by the BrowseNodeFactory service/singleton [ BrowseNodeFactoryImpl.[ch]xx ]. Additional methods have been added so that this class can be resused by the MasterScriptProviderFactory service [ MasterScriptProviderFactory.[ch]xx ]
Issue number:
Submitted by:
Reviewed by:
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/provider/ActiveMSPList.hxx | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/scripting/source/provider/ActiveMSPList.hxx b/scripting/source/provider/ActiveMSPList.hxx index 78a2000df65a..b77ac33d0f25 100644 --- a/scripting/source/provider/ActiveMSPList.hxx +++ b/scripting/source/provider/ActiveMSPList.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ActiveMSPList.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: toconnor $ $Date: 2003-10-29 15:00:52 $ + * last change: $Author: rt $ $Date: 2004-05-19 08:27:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -67,7 +67,7 @@ #include <osl/mutex.hxx> #include <rtl/ustring> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase1.hxx> #include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> @@ -102,7 +102,7 @@ typedef ::std::hash_map< ::rtl::OUString, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > Msp_hash; -class ActiveMSPList : public ::cppu::WeakImplHelper2< css::lang::XEventListener , dcsss::browse::XBrowseNode > +class ActiveMSPList : public ::cppu::WeakImplHelper1< css::lang::XEventListener > { public: @@ -118,24 +118,28 @@ public: virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw ( css::uno::RuntimeException ); - //XBrowseNode implementation - //====================================================================== - - virtual ::rtl::OUString SAL_CALL getName() - throw ( css::uno::RuntimeException ); - virtual css::uno::Sequence< css::uno::Reference< dcsss::browse::XBrowseNode > > SAL_CALL getChildNodes() - throw ( css::uno::RuntimeException ); - virtual sal_Bool SAL_CALL hasChildNodes() - throw ( css::uno::RuntimeException ); - virtual sal_Int16 SAL_CALL getType() - throw ( css::uno::RuntimeException ); - + // Factory method for create MasterScriptProviders + css::uno::Reference< dcsss::provider::XScriptProvider > + createMSP( const css::uno::Any& context ) + throw ( css::uno::RuntimeException ); private: ActiveMSPList( const css::uno::Reference< css::uno::XComponentContext > & xContext ); ::rtl::OUString getDocNameOrURLFromModel( const css::uno::Reference< css::frame::XModel >& xModel ); + css::uno::Reference< dcsss::provider::XScriptProvider > + createMSP( const ::rtl::OUString& context ) + throw ( css::uno::RuntimeException ); + + css::uno::Reference< dcsss::provider::XScriptProvider > + createMSP( const css::uno::Reference< css::frame::XModel >& xModel ) + throw ( css::uno::RuntimeException ); + + css::uno::Reference< dcsss::provider::XScriptProvider > + createNewMSP( const css::uno::Any& ) + throw ( css::uno::RuntimeException ); + void createNonDocMSPs(); Msp_hash m_hMsps; Model_map m_mModels; |