diff options
Diffstat (limited to 'sfx2/source/appl/appdispatchprovider.cxx')
-rw-r--r-- | sfx2/source/appl/appdispatchprovider.cxx | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/sfx2/source/appl/appdispatchprovider.cxx b/sfx2/source/appl/appdispatchprovider.cxx index 2f2a53d289c9..5a8fb6b2104d 100644 --- a/sfx2/source/appl/appdispatchprovider.cxx +++ b/sfx2/source/appl/appdispatchprovider.cxx @@ -68,37 +68,28 @@ public: SfxAppDispatchProvider() {} virtual void SAL_CALL initialize( - css::uno::Sequence<css::uno::Any> const & aArguments) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + css::uno::Sequence<css::uno::Any> const & aArguments) override; - virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName() override; - virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) - throw (css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override; - virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() - throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override; virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL, const OUString& sTargetFrameName, - FrameSearchFlags eSearchFlags ) - throw( css::uno::RuntimeException, std::exception ) override; + FrameSearchFlags eSearchFlags ) override; virtual css::uno::Sequence< css::uno::Reference < css::frame::XDispatch > > SAL_CALL queryDispatches( - const css::uno::Sequence < css::frame::DispatchDescriptor >& seqDescriptor ) - throw( css::uno::RuntimeException, std::exception ) override; + const css::uno::Sequence < css::frame::DispatchDescriptor >& seqDescriptor ) override; - virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedCommandGroups() - throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedCommandGroups() override; - virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation( sal_Int16 ) - throw (css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation( sal_Int16 ) override; }; void SfxAppDispatchProvider::initialize( css::uno::Sequence<css::uno::Any> const & aArguments) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) { css::uno::Reference<css::frame::XFrame> f; if (aArguments.getLength() != 1 || !(aArguments[0] >>= f)) { @@ -109,17 +100,17 @@ void SfxAppDispatchProvider::initialize( m_xFrame = f; } -OUString SAL_CALL SfxAppDispatchProvider::getImplementationName() throw( css::uno::RuntimeException, std::exception ) +OUString SAL_CALL SfxAppDispatchProvider::getImplementationName() { return OUString( "com.sun.star.comp.sfx2.AppDispatchProvider" ); } -sal_Bool SAL_CALL SfxAppDispatchProvider::supportsService( const OUString& sServiceName ) throw( css::uno::RuntimeException, std::exception ) +sal_Bool SAL_CALL SfxAppDispatchProvider::supportsService( const OUString& sServiceName ) { return cppu::supportsService(this, sServiceName); } -css::uno::Sequence< OUString > SAL_CALL SfxAppDispatchProvider::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) +css::uno::Sequence< OUString > SAL_CALL SfxAppDispatchProvider::getSupportedServiceNames() { css::uno::Sequence< OUString > seqServiceNames( 2 ); seqServiceNames.getArray()[0] = "com.sun.star.frame.ProtocolHandler"; @@ -130,7 +121,7 @@ css::uno::Sequence< OUString > SAL_CALL SfxAppDispatchProvider::getSupportedServ Reference < XDispatch > SAL_CALL SfxAppDispatchProvider::queryDispatch( const util::URL& aURL, const OUString& /*sTargetFrameName*/, - FrameSearchFlags /*eSearchFlags*/ ) throw( RuntimeException, std::exception ) + FrameSearchFlags /*eSearchFlags*/ ) { SolarMutexGuard guard; @@ -167,7 +158,6 @@ Reference < XDispatch > SAL_CALL SfxAppDispatchProvider::queryDispatch( } Sequence< Reference < XDispatch > > SAL_CALL SfxAppDispatchProvider::queryDispatches( const Sequence < DispatchDescriptor >& seqDescriptor ) -throw( RuntimeException, std::exception ) { sal_Int32 nCount = seqDescriptor.getLength(); uno::Sequence< uno::Reference < frame::XDispatch > > lDispatcher(nCount); @@ -179,7 +169,6 @@ throw( RuntimeException, std::exception ) } Sequence< sal_Int16 > SAL_CALL SfxAppDispatchProvider::getSupportedCommandGroups() -throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -209,7 +198,6 @@ throw (uno::RuntimeException, std::exception) } Sequence< frame::DispatchInformation > SAL_CALL SfxAppDispatchProvider::getConfigurableDispatchInformation( sal_Int16 nCmdGroup ) -throw (uno::RuntimeException, std::exception) { std::list< frame::DispatchInformation > aCmdList; |