diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-07-23 13:09:20 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-07-23 13:09:20 +0000 |
commit | 242f66f55a528ef08a7bf9f240e1afcaf101aec0 (patch) | |
tree | accd0f52340b8aeb4b468841821bee2b4a0e719f /scripting | |
parent | 7912a91fa8dbaf17337f359391fd82fd37ef45bb (diff) |
INTEGRATION: CWS scriptingf7 (1.4.4); FILE MERGED
2004/06/12 08:42:34 npower 1.4.4.1: #i25269# Add support for pkgchk.
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/provider/ActiveMSPList.hxx | 48 |
1 files changed, 17 insertions, 31 deletions
diff --git a/scripting/source/provider/ActiveMSPList.hxx b/scripting/source/provider/ActiveMSPList.hxx index b77ac33d0f25..a55424b31475 100644 --- a/scripting/source/provider/ActiveMSPList.hxx +++ b/scripting/source/provider/ActiveMSPList.hxx @@ -2,9 +2,9 @@ * * $RCSfile: ActiveMSPList.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2004-05-19 08:27:33 $ + * last change: $Author: hr $ $Date: 2004-07-23 14:09:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,17 +88,11 @@ namespace func_provider //============================================================================= -struct MspInst -{ - css::uno::Reference< dcsss::provider::XScriptProvider > provider; - css::uno::Reference< dcsss::browse::XBrowseNode > node; -}; - typedef ::std::map < css::uno::Reference< css::frame::XModel >, - MspInst > Model_map; + css::uno::Reference< dcsss::provider::XScriptProvider > > Model_map; typedef ::std::hash_map< ::rtl::OUString, - MspInst, + css::uno::Reference< dcsss::provider::XScriptProvider >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > Msp_hash; @@ -108,38 +102,30 @@ class ActiveMSPList : public ::cppu::WeakImplHelper1< css::lang::XEventListener public: static ActiveMSPList& instance( const css::uno::Reference< css::uno::XComponentContext >& xContext ); - ~ActiveMSPList(); - void addActiveMSP( const css::uno::Reference< css::frame::XModel >& xModel, - const css::uno::Reference< dcsss::provider::XScriptProvider >& msp ); - //XEventListener - //====================================================================== - - virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) - 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 ); - + ~ActiveMSPList(); 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 ) + createMSP( const css::uno::Any& context ) throw ( css::uno::RuntimeException ); + css::uno::Sequence< css::uno::Reference< dcsss::provider::XScriptProvider > > + getActiveProviders(); + //XEventListener + //====================================================================== + virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) + throw ( css::uno::RuntimeException ); + +private: + void addActiveMSP( const css::uno::Reference< css::frame::XModel >& xModel, + const css::uno::Reference< dcsss::provider::XScriptProvider >& msp ); css::uno::Reference< dcsss::provider::XScriptProvider > - createNewMSP( const css::uno::Any& ) + createNewMSP( const ::rtl::OUString& ) throw ( css::uno::RuntimeException ); - void createNonDocMSPs(); Msp_hash m_hMsps; Model_map m_mModels; |