summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /sfx2/source
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/appl/appdispatchprovider.cxx36
-rw-r--r--sfx2/source/appl/appinit.cxx24
-rw-r--r--sfx2/source/appl/appuno.cxx18
-rw-r--r--sfx2/source/appl/childwin.cxx2
-rw-r--r--sfx2/source/appl/helpdispatch.cxx6
-rw-r--r--sfx2/source/appl/helpdispatch.hxx6
-rw-r--r--sfx2/source/appl/helpinterceptor.cxx26
-rw-r--r--sfx2/source/appl/helpinterceptor.hxx32
-rw-r--r--sfx2/source/appl/imestatuswindow.cxx8
-rw-r--r--sfx2/source/appl/imestatuswindow.hxx6
-rw-r--r--sfx2/source/appl/macroloader.cxx13
-rw-r--r--sfx2/source/appl/sfxpicklist.cxx3
-rw-r--r--sfx2/source/appl/shutdownicon.cxx25
-rw-r--r--sfx2/source/appl/shutdownicon.hxx35
-rw-r--r--sfx2/source/appl/shutdowniconaqua.mm3
-rw-r--r--sfx2/source/appl/workwin.cxx5
-rw-r--r--sfx2/source/appl/xpackcreator.cxx13
-rw-r--r--sfx2/source/bastyp/fltlst.cxx10
-rw-r--r--sfx2/source/bastyp/fltlst.hxx4
-rw-r--r--sfx2/source/control/sfxstatuslistener.cxx6
-rw-r--r--sfx2/source/control/statcach.cxx4
-rw-r--r--sfx2/source/control/thumbnailviewacc.cxx56
-rw-r--r--sfx2/source/control/thumbnailviewacc.hxx109
-rw-r--r--sfx2/source/control/unoctitm.cxx19
-rw-r--r--sfx2/source/dialog/backingcomp.cxx80
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx14
-rw-r--r--sfx2/source/dialog/filedlgimpl.hxx14
-rw-r--r--sfx2/source/dialog/mailmodel.cxx10
-rw-r--r--sfx2/source/doc/DocumentMetadataAccess.cxx30
-rw-r--r--sfx2/source/doc/Metadatable.cxx6
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx284
-rw-r--r--sfx2/source/doc/docfilt.cxx2
-rw-r--r--sfx2/source/doc/docstoragemodifylistener.cxx4
-rw-r--r--sfx2/source/doc/doctemplates.cxx46
-rw-r--r--sfx2/source/doc/doctemplateslocal.cxx11
-rw-r--r--sfx2/source/doc/doctemplateslocal.hxx25
-rw-r--r--sfx2/source/doc/docundomanager.cxx44
-rw-r--r--sfx2/source/doc/iframe.cxx70
-rw-r--r--sfx2/source/doc/objserv.cxx12
-rw-r--r--sfx2/source/doc/objxtor.cxx12
-rw-r--r--sfx2/source/doc/ownsubfilterservice.cxx19
-rw-r--r--sfx2/source/doc/printhelper.cxx26
-rw-r--r--sfx2/source/doc/printhelper.hxx14
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx262
-rw-r--r--sfx2/source/doc/sfxmodelfactory.cxx20
-rw-r--r--sfx2/source/inc/docundomanager.hxx44
-rw-r--r--sfx2/source/inc/eventsupplier.hxx22
-rw-r--r--sfx2/source/inc/fltoptint.hxx10
-rw-r--r--sfx2/source/inc/macroloader.hxx35
-rw-r--r--sfx2/source/inc/statcach.hxx4
-rw-r--r--sfx2/source/inc/workwin.hxx10
-rw-r--r--sfx2/source/notify/eventsupplier.cxx16
-rw-r--r--sfx2/source/notify/globalevents.cxx73
-rw-r--r--sfx2/source/sidebar/Accessible.cxx1
-rw-r--r--sfx2/source/sidebar/ControllerItem.cxx6
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx5
-rw-r--r--sfx2/source/sidebar/SidebarPanelBase.cxx13
-rw-r--r--sfx2/source/sidebar/Theme.cxx23
-rw-r--r--sfx2/source/sidebar/UnoDeck.cxx12
-rw-r--r--sfx2/source/sidebar/UnoDecks.cxx13
-rw-r--r--sfx2/source/sidebar/UnoPanel.cxx13
-rw-r--r--sfx2/source/sidebar/UnoPanels.cxx14
-rw-r--r--sfx2/source/sidebar/UnoSidebar.cxx6
-rw-r--r--sfx2/source/statbar/stbitem.cxx8
-rw-r--r--sfx2/source/toolbox/tbxitem.cxx17
-rw-r--r--sfx2/source/view/classificationcontroller.cxx24
-rw-r--r--sfx2/source/view/classificationhelper.cxx33
-rw-r--r--sfx2/source/view/frmload.cxx22
-rw-r--r--sfx2/source/view/ipclient.cxx76
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx102
-rw-r--r--sfx2/source/view/userinputinterception.cxx8
-rw-r--r--sfx2/source/view/viewsh.cxx8
72 files changed, 692 insertions, 1400 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;
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index 93f634958c83..be792e5ddb05 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -79,25 +79,25 @@ class SfxTerminateListener_Impl : public ::cppu::WeakImplHelper< XTerminateListe
public:
// XTerminateListener
- virtual void SAL_CALL queryTermination( const EventObject& aEvent ) throw( TerminationVetoException, RuntimeException, std::exception ) override;
- virtual void SAL_CALL notifyTermination( const EventObject& aEvent ) throw( RuntimeException, std::exception ) override;
- virtual void SAL_CALL disposing( const EventObject& Source ) throw( RuntimeException, std::exception ) override;
+ virtual void SAL_CALL queryTermination( const EventObject& aEvent ) override;
+ virtual void SAL_CALL notifyTermination( const EventObject& aEvent ) override;
+ virtual void SAL_CALL disposing( const EventObject& Source ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) throw (RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
-void SAL_CALL SfxTerminateListener_Impl::disposing( const EventObject& ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxTerminateListener_Impl::disposing( const EventObject& )
{
}
-void SAL_CALL SfxTerminateListener_Impl::queryTermination( const EventObject& ) throw(TerminationVetoException, RuntimeException, std::exception )
+void SAL_CALL SfxTerminateListener_Impl::queryTermination( const EventObject& )
{
}
-void SAL_CALL SfxTerminateListener_Impl::notifyTermination( const EventObject& aEvent ) throw(RuntimeException, std::exception )
+void SAL_CALL SfxTerminateListener_Impl::notifyTermination( const EventObject& aEvent )
{
Reference< XDesktop > xDesktop( aEvent.Source, UNO_QUERY );
if( xDesktop.is() )
@@ -126,17 +126,17 @@ void SAL_CALL SfxTerminateListener_Impl::notifyTermination( const EventObject& a
Application::Quit();
}
-OUString SAL_CALL SfxTerminateListener_Impl::getImplementationName() throw (RuntimeException, std::exception)
+OUString SAL_CALL SfxTerminateListener_Impl::getImplementationName()
{
return OUString("com.sun.star.comp.sfx2.SfxTerminateListener");
}
-sal_Bool SAL_CALL SfxTerminateListener_Impl::supportsService( const OUString& sServiceName ) throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxTerminateListener_Impl::supportsService( const OUString& sServiceName )
{
return cppu::supportsService(this, sServiceName);
}
-Sequence< OUString > SAL_CALL SfxTerminateListener_Impl::getSupportedServiceNames() throw (RuntimeException, std::exception)
+Sequence< OUString > SAL_CALL SfxTerminateListener_Impl::getSupportedServiceNames()
{
// Note: That service does not really exists .-)
// But this implementation is not thought to be registered really within our service.rdb.
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx
index 9d6e641b28f7..d7bc5ff8d7b9 100644
--- a/sfx2/source/appl/appuno.cxx
+++ b/sfx2/source/appl/appuno.cxx
@@ -1655,14 +1655,12 @@ void TransformItems( sal_uInt16 nSlotId, const SfxItemSet& rSet, uno::Sequence<b
void SAL_CALL FilterOptionsContinuation::setFilterOptions(
const uno::Sequence<beans::PropertyValue>& rProps )
- throw (uno::RuntimeException, std::exception)
{
rProperties = rProps;
}
uno::Sequence< beans::PropertyValue > SAL_CALL
FilterOptionsContinuation::getFilterOptions()
- throw (uno::RuntimeException, std::exception)
{
return rProperties;
}
@@ -1685,14 +1683,12 @@ RequestFilterOptions::RequestFilterOptions( uno::Reference< frame::XModel > cons
}
uno::Any SAL_CALL RequestFilterOptions::getRequest()
- throw( uno::RuntimeException, std::exception )
{
return m_aRequest;
}
uno::Sequence< uno::Reference< task::XInteractionContinuation > >
SAL_CALL RequestFilterOptions::getContinuations()
- throw( uno::RuntimeException, std::exception )
{
return { m_xAbort.get(), m_xOptions.get() };
}
@@ -1707,9 +1703,8 @@ class RequestPackageReparation_Impl : public ::cppu::WeakImplHelper< task::XInte
public:
explicit RequestPackageReparation_Impl( const OUString& aName );
bool isApproved();
- virtual uno::Any SAL_CALL getRequest() throw( uno::RuntimeException, std::exception ) override;
- virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations()
- throw( uno::RuntimeException, std::exception ) override;
+ virtual uno::Any SAL_CALL getRequest() override;
+ virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations() override;
};
RequestPackageReparation_Impl::RequestPackageReparation_Impl( const OUString& aName )
@@ -1728,14 +1723,12 @@ bool RequestPackageReparation_Impl::isApproved()
}
uno::Any SAL_CALL RequestPackageReparation_Impl::getRequest()
- throw( uno::RuntimeException, std::exception )
{
return m_aRequest;
}
uno::Sequence< uno::Reference< task::XInteractionContinuation > >
SAL_CALL RequestPackageReparation_Impl::getContinuations()
- throw( uno::RuntimeException, std::exception )
{
return { m_xApprove.get(), m_xDisapprove.get() };
}
@@ -1767,9 +1760,8 @@ class NotifyBrokenPackage_Impl : public ::cppu::WeakImplHelper< task::XInteracti
public:
explicit NotifyBrokenPackage_Impl(const OUString& rName);
- virtual uno::Any SAL_CALL getRequest() throw( uno::RuntimeException, std::exception ) override;
- virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations()
- throw( uno::RuntimeException, std::exception ) override;
+ virtual uno::Any SAL_CALL getRequest() override;
+ virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations() override;
};
NotifyBrokenPackage_Impl::NotifyBrokenPackage_Impl( const OUString& aName )
@@ -1782,14 +1774,12 @@ NotifyBrokenPackage_Impl::NotifyBrokenPackage_Impl( const OUString& aName )
}
uno::Any SAL_CALL NotifyBrokenPackage_Impl::getRequest()
- throw( uno::RuntimeException, std::exception )
{
return m_aRequest;
}
uno::Sequence< uno::Reference< task::XInteractionContinuation > >
SAL_CALL NotifyBrokenPackage_Impl::getContinuations()
- throw( uno::RuntimeException, std::exception )
{
return { m_xAbort.get() };
}
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index f9735e23b2f1..84cfd12d1703 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -75,7 +75,7 @@ class DisposeListener : public ::cppu::WeakImplHelper< css::lang::XEventListener
, m_pData ( pData )
{}
- virtual void SAL_CALL disposing( const css::lang::EventObject& aSource ) throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL disposing( const css::lang::EventObject& aSource ) override
{
css::uno::Reference< css::lang::XEventListener > xSelfHold( this );
diff --git a/sfx2/source/appl/helpdispatch.cxx b/sfx2/source/appl/helpdispatch.cxx
index 57e11602715e..9a631f90e6ab 100644
--- a/sfx2/source/appl/helpdispatch.cxx
+++ b/sfx2/source/appl/helpdispatch.cxx
@@ -50,7 +50,7 @@ HelpDispatch_Impl::~HelpDispatch_Impl()
void SAL_CALL HelpDispatch_Impl::dispatch(
- const URL& aURL, const Sequence< PropertyValue >& aArgs ) throw( RuntimeException, std::exception )
+ const URL& aURL, const Sequence< PropertyValue >& aArgs )
{
DBG_ASSERT( m_xRealDispatch.is(), "invalid dispatch" );
@@ -89,7 +89,7 @@ void SAL_CALL HelpDispatch_Impl::dispatch(
void SAL_CALL HelpDispatch_Impl::addStatusListener(
- const Reference< XStatusListener >& xControl, const URL& aURL ) throw( RuntimeException, std::exception )
+ const Reference< XStatusListener >& xControl, const URL& aURL )
{
DBG_ASSERT( m_xRealDispatch.is(), "invalid dispatch" );
@@ -99,7 +99,7 @@ void SAL_CALL HelpDispatch_Impl::addStatusListener(
void SAL_CALL HelpDispatch_Impl::removeStatusListener(
- const Reference< XStatusListener >& xControl, const URL& aURL ) throw( RuntimeException, std::exception )
+ const Reference< XStatusListener >& xControl, const URL& aURL )
{
DBG_ASSERT( m_xRealDispatch.is(), "invalid dispatch" );
diff --git a/sfx2/source/appl/helpdispatch.hxx b/sfx2/source/appl/helpdispatch.hxx
index dce297d4647c..b0494c6d0232 100644
--- a/sfx2/source/appl/helpdispatch.hxx
+++ b/sfx2/source/appl/helpdispatch.hxx
@@ -37,9 +37,9 @@ public:
virtual ~HelpDispatch_Impl() override;
// XDispatch
- virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) override;
+ virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) override;
+ virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) override;
};
#endif // INCLUDED_SFX2_SOURCE_APPL_HELPDISPATCH_HXX
diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx
index c4d4c1a5bff4..4e97836a0e6b 100644
--- a/sfx2/source/appl/helpinterceptor.cxx
+++ b/sfx2/source/appl/helpinterceptor.cxx
@@ -127,8 +127,6 @@ Reference< XDispatch > SAL_CALL HelpInterceptor_Impl::queryDispatch(
const URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags )
- throw( RuntimeException, std::exception )
-
{
Reference< XDispatch > xResult;
if ( m_xSlaveDispatcher.is() )
@@ -151,8 +149,6 @@ Sequence < Reference < XDispatch > > SAL_CALL HelpInterceptor_Impl::queryDispatc
const Sequence< DispatchDescriptor >& aDescripts )
- throw( RuntimeException, std::exception )
-
{
Sequence< Reference< XDispatch > > aReturn( aDescripts.getLength() );
Reference< XDispatch >* pReturn = aReturn.getArray();
@@ -169,8 +165,6 @@ Sequence < Reference < XDispatch > > SAL_CALL HelpInterceptor_Impl::queryDispatc
Reference< XDispatchProvider > SAL_CALL HelpInterceptor_Impl::getSlaveDispatchProvider()
- throw( RuntimeException, std::exception )
-
{
return m_xSlaveDispatcher;
}
@@ -178,8 +172,6 @@ Reference< XDispatchProvider > SAL_CALL HelpInterceptor_Impl::getSlaveDispatchPr
void SAL_CALL HelpInterceptor_Impl::setSlaveDispatchProvider( const Reference< XDispatchProvider >& xNewSlave )
- throw( RuntimeException, std::exception )
-
{
m_xSlaveDispatcher = xNewSlave;
}
@@ -187,8 +179,6 @@ void SAL_CALL HelpInterceptor_Impl::setSlaveDispatchProvider( const Reference< X
Reference< XDispatchProvider > SAL_CALL HelpInterceptor_Impl::getMasterDispatchProvider()
- throw( RuntimeException, std::exception )
-
{
return m_xMasterDispatcher;
}
@@ -196,8 +186,6 @@ Reference< XDispatchProvider > SAL_CALL HelpInterceptor_Impl::getMasterDispatchP
void SAL_CALL HelpInterceptor_Impl::setMasterDispatchProvider( const Reference< XDispatchProvider >& xNewMaster )
- throw( RuntimeException, std::exception )
-
{
m_xMasterDispatcher = xNewMaster;
}
@@ -207,8 +195,6 @@ void SAL_CALL HelpInterceptor_Impl::setMasterDispatchProvider( const Reference<
Sequence< OUString > SAL_CALL HelpInterceptor_Impl::getInterceptedURLs()
- throw( RuntimeException, std::exception )
-
{
Sequence<OUString> aURLList { "vnd.sun.star.help://*" };
return aURLList;
@@ -218,7 +204,7 @@ Sequence< OUString > SAL_CALL HelpInterceptor_Impl::getInterceptedURLs()
// XDispatch
void SAL_CALL HelpInterceptor_Impl::dispatch(
- const URL& aURL, const Sequence< css::beans::PropertyValue >& ) throw( RuntimeException, std::exception )
+ const URL& aURL, const Sequence< css::beans::PropertyValue >& )
{
bool bBack = aURL.Complete == ".uno:Backward";
if ( bBack || aURL.Complete == ".uno:Forward" )
@@ -256,7 +242,7 @@ void SAL_CALL HelpInterceptor_Impl::dispatch(
void SAL_CALL HelpInterceptor_Impl::addStatusListener(
- const Reference< XStatusListener >& xControl, const URL& ) throw( RuntimeException, std::exception )
+ const Reference< XStatusListener >& xControl, const URL& )
{
DBG_ASSERT( !m_xListener.is(), "listener already exists" );
m_xListener = xControl;
@@ -264,7 +250,7 @@ void SAL_CALL HelpInterceptor_Impl::addStatusListener(
void SAL_CALL HelpInterceptor_Impl::removeStatusListener(
- const Reference< XStatusListener >&, const URL&) throw( RuntimeException, std::exception )
+ const Reference< XStatusListener >&, const URL&)
{
m_xListener = nullptr;
}
@@ -279,7 +265,6 @@ HelpListener_Impl::HelpListener_Impl( HelpInterceptor_Impl* pInter )
void SAL_CALL HelpListener_Impl::statusChanged( const css::frame::FeatureStateEvent& Event )
- throw( css::uno::RuntimeException, std::exception )
{
INetURLObject aObj( Event.FeatureURL.Complete );
aFactory = aObj.GetHost();
@@ -288,7 +273,6 @@ void SAL_CALL HelpListener_Impl::statusChanged( const css::frame::FeatureStateEv
void SAL_CALL HelpListener_Impl::disposing( const css::lang::EventObject& )
- throw( css::uno::RuntimeException, std::exception )
{
pInterceptor->removeStatusListener( this, css::util::URL() );
pInterceptor = nullptr;
@@ -307,12 +291,12 @@ HelpStatusListener_Impl::~HelpStatusListener_Impl()
}
void HelpStatusListener_Impl::statusChanged(
- const FeatureStateEvent& rEvent ) throw( RuntimeException, std::exception )
+ const FeatureStateEvent& rEvent )
{
aStateEvent = rEvent;
}
-void HelpStatusListener_Impl::disposing( const EventObject& ) throw( RuntimeException, std::exception )
+void HelpStatusListener_Impl::disposing( const EventObject& )
{
xDispatch->removeStatusListener(this, css::util::URL());
xDispatch = nullptr;
diff --git a/sfx2/source/appl/helpinterceptor.hxx b/sfx2/source/appl/helpinterceptor.hxx
index 96836a09415f..f557d35c82f7 100644
--- a/sfx2/source/appl/helpinterceptor.hxx
+++ b/sfx2/source/appl/helpinterceptor.hxx
@@ -84,26 +84,26 @@ public:
// XDispatchProvider
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL
- queryDispatch( const css::util::URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags ) throw(css::uno::RuntimeException, std::exception) override;
+ queryDispatch( const css::util::URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags ) override;
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL
- queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& aDescripts ) throw(css::uno::RuntimeException, std::exception) override;
+ queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& aDescripts ) override;
// XDispatchProviderInterceptor
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL
- getSlaveDispatchProvider( ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setSlaveDispatchProvider( const css::uno::Reference< css::frame::XDispatchProvider >& xNewSlave ) throw(css::uno::RuntimeException, std::exception) override;
+ getSlaveDispatchProvider( ) override;
+ virtual void SAL_CALL setSlaveDispatchProvider( const css::uno::Reference< css::frame::XDispatchProvider >& xNewSlave ) override;
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL
- getMasterDispatchProvider( ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMasterDispatchProvider( const css::uno::Reference< css::frame::XDispatchProvider >& xNewMaster ) throw(css::uno::RuntimeException, std::exception) override;
+ getMasterDispatchProvider( ) override;
+ virtual void SAL_CALL setMasterDispatchProvider( const css::uno::Reference< css::frame::XDispatchProvider >& xNewMaster ) override;
// XInterceptorInfo
virtual css::uno::Sequence< OUString > SAL_CALL
- getInterceptedURLs( ) throw(css::uno::RuntimeException, std::exception) override;
+ getInterceptedURLs( ) override;
// XDispatch
- virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) override;
+ virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) override;
+ virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) override;
// extras
void InitWaiter( SfxHelpWindow_Impl* pWindow )
@@ -123,10 +123,8 @@ private:
public:
explicit HelpListener_Impl( HelpInterceptor_Impl* pInter );
- virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event )
- throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL disposing( const css::lang::EventObject& obj )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& obj ) override;
void SetChangeHdl( const Link<HelpListener_Impl&,void>& rLink ) { aChangeLink = rLink; }
const OUString& GetFactory() const { return aFactory; }
@@ -145,10 +143,8 @@ public:
css::util::URL& rURL);
virtual ~HelpStatusListener_Impl() override;
- virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event )
- throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL disposing( const css::lang::EventObject& obj )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& obj ) override;
const css::frame::FeatureStateEvent&
GetStateEvent() const {return aStateEvent;}
};
diff --git a/sfx2/source/appl/imestatuswindow.cxx b/sfx2/source/appl/imestatuswindow.cxx
index db58ef5c40e9..58c0f15184d2 100644
--- a/sfx2/source/appl/imestatuswindow.cxx
+++ b/sfx2/source/appl/imestatuswindow.cxx
@@ -55,8 +55,7 @@ class WeakPropertyChangeListener : public ::cppu::WeakImplHelper<css::beans::XPr
{
}
- virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &rEvent )
- throw(css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &rEvent ) override
{
css::uno::Reference<css::beans::XPropertyChangeListener> xOwner(mxOwner.get(),
css::uno::UNO_QUERY);
@@ -66,8 +65,7 @@ class WeakPropertyChangeListener : public ::cppu::WeakImplHelper<css::beans::XPr
}
// lang.XEventListener
- virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent)
- throw(css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent) override
{
css::uno::Reference<css::beans::XPropertyChangeListener> xOwner(mxOwner.get(),
css::uno::UNO_QUERY);
@@ -164,7 +162,6 @@ ImeStatusWindow::~ImeStatusWindow()
}
void SAL_CALL ImeStatusWindow::disposing(css::lang::EventObject const & )
- throw (css::uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard(m_aMutex);
m_xConfig = nullptr;
@@ -173,7 +170,6 @@ void SAL_CALL ImeStatusWindow::disposing(css::lang::EventObject const & )
void SAL_CALL
ImeStatusWindow::propertyChange(css::beans::PropertyChangeEvent const & )
- throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SfxApplication* pApp = SfxApplication::Get();
diff --git a/sfx2/source/appl/imestatuswindow.hxx b/sfx2/source/appl/imestatuswindow.hxx
index 8af134a21016..f9df1c623950 100644
--- a/sfx2/source/appl/imestatuswindow.hxx
+++ b/sfx2/source/appl/imestatuswindow.hxx
@@ -93,12 +93,10 @@ private:
virtual ~ImeStatusWindow() override;
virtual void SAL_CALL
- disposing(css::lang::EventObject const & rSource)
- throw (css::uno::RuntimeException, std::exception) override;
+ disposing(css::lang::EventObject const & rSource) override;
virtual void SAL_CALL
- propertyChange(css::beans::PropertyChangeEvent const & rEvent)
- throw (css::uno::RuntimeException, std::exception) override;
+ propertyChange(css::beans::PropertyChangeEvent const & rEvent) override;
css::uno::Reference< css::beans::XPropertySet >
getConfig();
diff --git a/sfx2/source/appl/macroloader.cxx b/sfx2/source/appl/macroloader.cxx
index 92ecab7313c7..19737c90b22a 100644
--- a/sfx2/source/appl/macroloader.cxx
+++ b/sfx2/source/appl/macroloader.cxx
@@ -48,7 +48,6 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::util;
SfxMacroLoader::SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArguments)
- throw (css::uno::Exception, css::uno::RuntimeException)
{
Reference < XFrame > xFrame;
if ( aArguments.getLength() )
@@ -59,19 +58,16 @@ SfxMacroLoader::SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArgum
}
OUString SAL_CALL SfxMacroLoader::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("com.sun.star.comp.sfx2.SfxMacroLoader");
}
sal_Bool SAL_CALL SfxMacroLoader::supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence<OUString> SAL_CALL SfxMacroLoader::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" };
return aSeq;
@@ -101,7 +97,7 @@ SfxObjectShell* SfxMacroLoader::GetObjectShell_Impl()
uno::Reference<frame::XDispatch> SAL_CALL SfxMacroLoader::queryDispatch(
const util::URL& aURL ,
const OUString& /*sTargetFrameName*/,
- sal_Int32 /*nSearchFlags*/ ) throw( uno::RuntimeException, std::exception )
+ sal_Int32 /*nSearchFlags*/ )
{
uno::Reference<frame::XDispatch> xDispatcher;
if(aURL.Complete.startsWith("macro:"))
@@ -112,7 +108,6 @@ uno::Reference<frame::XDispatch> SAL_CALL SfxMacroLoader::queryDispatch(
uno::Sequence< uno::Reference<frame::XDispatch> > SAL_CALL
SfxMacroLoader::queryDispatches( const uno::Sequence < frame::DispatchDescriptor >& seqDescriptor )
- throw( uno::RuntimeException, std::exception )
{
sal_Int32 nCount = seqDescriptor.getLength();
uno::Sequence< uno::Reference<frame::XDispatch> > lDispatcher(nCount);
@@ -127,7 +122,6 @@ uno::Sequence< uno::Reference<frame::XDispatch> > SAL_CALL
void SAL_CALL SfxMacroLoader::dispatchWithNotification(
const util::URL& aURL, const uno::Sequence<beans::PropertyValue>& /*lArgs*/,
const uno::Reference<frame::XDispatchResultListener>& xListener )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -151,7 +145,6 @@ void SAL_CALL SfxMacroLoader::dispatchWithNotification(
uno::Any SAL_CALL SfxMacroLoader::dispatchWithReturnValue(
const util::URL& aURL, const uno::Sequence<beans::PropertyValue>& )
- throw (uno::RuntimeException, std::exception)
{
uno::Any aRet;
loadMacro( aURL.Complete, aRet, GetObjectShell_Impl() );
@@ -160,7 +153,6 @@ uno::Any SAL_CALL SfxMacroLoader::dispatchWithReturnValue(
void SAL_CALL SfxMacroLoader::dispatch(
const util::URL& aURL, const uno::Sequence<beans::PropertyValue>& /*lArgs*/ )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -171,7 +163,6 @@ void SAL_CALL SfxMacroLoader::dispatch(
void SAL_CALL SfxMacroLoader::addStatusListener(
const uno::Reference< frame::XStatusListener >& ,
const util::URL& )
- throw (uno::RuntimeException, std::exception)
{
/* TODO
How we can handle different listener for further coming or currently running dispatch() jobs
@@ -183,12 +174,10 @@ void SAL_CALL SfxMacroLoader::addStatusListener(
void SAL_CALL SfxMacroLoader::removeStatusListener(
const uno::Reference< frame::XStatusListener >&,
const util::URL& )
- throw (uno::RuntimeException, std::exception)
{
}
ErrCode SfxMacroLoader::loadMacro( const OUString& rURL, css::uno::Any& rRetval, SfxObjectShell* pSh )
- throw ( ucb::ContentCreationException, uno::RuntimeException, std::exception )
{
#if !HAVE_FEATURE_SCRIPTING
(void) rURL;
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index 38754445e180..be1eef7aaf13 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -68,8 +68,7 @@ class StringLength : public ::cppu::WeakImplHelper< XStringWidth >
StringLength() {}
// XStringWidth
- sal_Int32 SAL_CALL queryStringWidth( const OUString& aString )
- throw (css::uno::RuntimeException, std::exception) override
+ sal_Int32 SAL_CALL queryStringWidth( const OUString& aString ) override
{
return aString.getLength();
}
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index b1127a4880a7..80552baf2e01 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -88,33 +88,30 @@ extern "C" { static void SAL_CALL thisModule() {} }
class SfxNotificationListener_Impl : public cppu::WeakImplHelper< XDispatchResultListener >
{
public:
- virtual void SAL_CALL dispatchFinished( const DispatchResultEvent& aEvent ) throw( RuntimeException, std::exception ) override;
- virtual void SAL_CALL disposing( const EventObject& aEvent ) throw( RuntimeException, std::exception ) override;
+ virtual void SAL_CALL dispatchFinished( const DispatchResultEvent& aEvent ) override;
+ virtual void SAL_CALL disposing( const EventObject& aEvent ) override;
};
-void SAL_CALL SfxNotificationListener_Impl::dispatchFinished( const DispatchResultEvent& ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxNotificationListener_Impl::dispatchFinished( const DispatchResultEvent& )
{
ShutdownIcon::LeaveModalMode();
}
-void SAL_CALL SfxNotificationListener_Impl::disposing( const EventObject& ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxNotificationListener_Impl::disposing( const EventObject& )
{
}
OUString SAL_CALL ShutdownIcon::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("com.sun.star.comp.desktop.QuickstartWrapper");
}
sal_Bool SAL_CALL ShutdownIcon::supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence<OUString> SAL_CALL ShutdownIcon::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.office.Quickstart" };
return aSeq;
@@ -559,7 +556,7 @@ ShutdownIcon* ShutdownIcon::createInstance()
return pShutdownIcon;
}
-void ShutdownIcon::init() throw( css::uno::Exception, std::exception )
+void ShutdownIcon::init()
{
// access resource system and sfx only protected by solarmutex
::SolarMutexGuard aSolarGuard;
@@ -585,14 +582,12 @@ void SAL_CALL ShutdownIcon::disposing()
// XEventListener
void SAL_CALL ShutdownIcon::disposing( const css::lang::EventObject& )
- throw(css::uno::RuntimeException, std::exception)
{
}
// XTerminateListener
void SAL_CALL ShutdownIcon::queryTermination( const css::lang::EventObject& )
-throw(css::frame::TerminationVetoException, css::uno::RuntimeException, std::exception)
{
SAL_INFO("sfx.appl", "ShutdownIcon::queryTermination: veto is " << m_bVeto);
::osl::ClearableMutexGuard aGuard( m_aMutex );
@@ -603,13 +598,11 @@ throw(css::frame::TerminationVetoException, css::uno::RuntimeException, std::exc
void SAL_CALL ShutdownIcon::notifyTermination( const css::lang::EventObject& )
-throw(css::uno::RuntimeException, std::exception)
{
}
void SAL_CALL ShutdownIcon::initialize( const css::uno::Sequence< css::uno::Any>& aArguments )
- throw( css::uno::Exception, std::exception )
{
::osl::ResettableMutexGuard aGuard( m_aMutex );
@@ -825,11 +818,6 @@ static const ::sal_Int32 PROPHANDLE_TERMINATEVETOSTATE = 0;
// XFastPropertySet
void SAL_CALL ShutdownIcon::setFastPropertyValue( ::sal_Int32 nHandle,
const css::uno::Any& aValue )
- throw (css::beans::UnknownPropertyException,
- css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
switch(nHandle)
{
@@ -853,9 +841,6 @@ void SAL_CALL ShutdownIcon::setFastPropertyValue( ::sal_Int32
// XFastPropertySet
css::uno::Any SAL_CALL ShutdownIcon::getFastPropertyValue( ::sal_Int32 nHandle )
- throw (css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
css::uno::Any aValue;
switch(nHandle)
diff --git a/sfx2/source/appl/shutdownicon.hxx b/sfx2/source/appl/shutdownicon.hxx
index 963c343529c5..1d49954c5a6e 100644
--- a/sfx2/source/appl/shutdownicon.hxx
+++ b/sfx2/source/appl/shutdownicon.hxx
@@ -89,14 +89,11 @@ class SFX2_DLLPUBLIC ShutdownIcon : public ShutdownIconServiceBase
virtual ~ShutdownIcon() 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;
static ShutdownIcon* getInstance();
static ShutdownIcon* createInstance();
@@ -114,7 +111,7 @@ class SFX2_DLLPUBLIC ShutdownIcon : public ShutdownIconServiceBase
static bool bModalMode;
/// @throws css::uno::Exception
- void init() throw( css::uno::Exception, std::exception );
+ void init();
OUString GetResString( int id );
static OUString GetUrlDescription( const OUString& aUrl );
@@ -130,31 +127,19 @@ class SFX2_DLLPUBLIC ShutdownIcon : public ShutdownIconServiceBase
virtual void SAL_CALL disposing() override;
// XEventListener
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
// XTerminateListener
- virtual void SAL_CALL queryTermination( const css::lang::EventObject& aEvent )
- throw(css::frame::TerminationVetoException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryTermination( const css::lang::EventObject& aEvent ) override;
+ virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent ) override;
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
- throw( css::uno::Exception, std::exception ) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
// XFastPropertySet
virtual void SAL_CALL setFastPropertyValue( ::sal_Int32 nHandle,
- const css::uno::Any& aValue )
- throw (css::beans::UnknownPropertyException,
- css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getFastPropertyValue( ::sal_Int32 nHandle )
- throw (css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Any& aValue ) override;
+ virtual css::uno::Any SAL_CALL getFastPropertyValue( ::sal_Int32 nHandle ) override;
css::uno::Reference< css::frame::XDesktop2 > m_xDesktop;
diff --git a/sfx2/source/appl/shutdowniconaqua.mm b/sfx2/source/appl/shutdowniconaqua.mm
index 3c04333531f4..8a36273e2ec1 100644
--- a/sfx2/source/appl/shutdowniconaqua.mm
+++ b/sfx2/source/appl/shutdowniconaqua.mm
@@ -135,8 +135,7 @@ class RecentFilesStringLength : public ::cppu::WeakImplHelper< css::util::XStrin
RecentFilesStringLength() {}
// XStringWidth
- sal_Int32 SAL_CALL queryStringWidth( const ::rtl::OUString& aString )
- throw ( css::uno::RuntimeException ) override
+ sal_Int32 SAL_CALL queryStringWidth( const ::rtl::OUString& aString ) override
{
return aString.getLength();
}
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index 1c15d90bffe9..10e3366b3dc3 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -197,20 +197,17 @@ void LayoutManagerListener::setFrame( const css::uno::Reference< css::frame::XFr
void SAL_CALL LayoutManagerListener::addEventListener(
const css::uno::Reference< css::lang::XEventListener >& )
-throw (css::uno::RuntimeException, std::exception)
{
// do nothing, only internal class
}
void SAL_CALL LayoutManagerListener::removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& )
-throw (css::uno::RuntimeException, std::exception)
{
// do nothing, only internal class
}
void SAL_CALL LayoutManagerListener::dispose()
-throw( css::uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
@@ -257,7 +254,6 @@ throw( css::uno::RuntimeException, std::exception )
void SAL_CALL LayoutManagerListener::disposing(
const css::lang::EventObject& )
-throw( css::uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
m_pWrkWin = nullptr;
@@ -272,7 +268,6 @@ void SAL_CALL LayoutManagerListener::layoutEvent(
const css::lang::EventObject&,
::sal_Int16 eLayoutEvent,
const css::uno::Any& )
-throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if ( m_pWrkWin )
diff --git a/sfx2/source/appl/xpackcreator.cxx b/sfx2/source/appl/xpackcreator.cxx
index 8e1a2eec043d..3980c3204618 100644
--- a/sfx2/source/appl/xpackcreator.cxx
+++ b/sfx2/source/appl/xpackcreator.cxx
@@ -45,19 +45,17 @@ public:
OPackageStructureCreator() {}
// XPackageStructureCreator
- virtual void SAL_CALL convertToPackage( const OUString& aFolderUrl, const uno::Reference< io::XOutputStream >& xTargetStream ) throw (io::IOException, uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL convertToPackage( const OUString& aFolderUrl, const uno::Reference< io::XOutputStream >& xTargetStream ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (uno::RuntimeException, std::exception) override;
- virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
void SAL_CALL OPackageStructureCreator::convertToPackage( const OUString& aFolderUrl,
const uno::Reference< io::XOutputStream >& xTargetStream )
- throw ( io::IOException,
- uno::RuntimeException, std::exception )
{
uno::Reference< ucb::XCommandEnvironment > xComEnv;
@@ -148,19 +146,16 @@ void SAL_CALL OPackageStructureCreator::convertToPackage( const OUString& aFolde
}
OUString SAL_CALL OPackageStructureCreator::getImplementationName()
- throw ( uno::RuntimeException, std::exception )
{
return OUString("com.sun.star.comp.embed.PackageStructureCreator");
}
sal_Bool SAL_CALL OPackageStructureCreator::supportsService( const OUString& ServiceName )
- throw ( uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL OPackageStructureCreator::getSupportedServiceNames()
- throw ( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet(2);
aRet[0] = "com.sun.star.embed.PackageStructureCreator";
diff --git a/sfx2/source/bastyp/fltlst.cxx b/sfx2/source/bastyp/fltlst.cxx
index d20c668c3546..0ac727c52187 100644
--- a/sfx2/source/bastyp/fltlst.cxx
+++ b/sfx2/source/bastyp/fltlst.cxx
@@ -48,15 +48,13 @@ class SfxRefreshListener : public ::cppu::WeakImplHelper<css::util::XRefreshList
}
// util.XRefreshListener
- virtual void SAL_CALL refreshed( const css::lang::EventObject& rEvent )
- throw(css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL refreshed( const css::lang::EventObject& rEvent ) override
{
m_pOwner->refreshed(rEvent);
}
// lang.XEventListener
- virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent)
- throw(css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent) override
{
m_pOwner->disposing(rEvent);
}
@@ -92,7 +90,7 @@ SfxFilterListener::~SfxFilterListener()
{
}
-void SAL_CALL SfxFilterListener::refreshed( const lang::EventObject& aSource ) throw( uno::RuntimeException, std::exception )
+void SAL_CALL SfxFilterListener::refreshed( const lang::EventObject& aSource )
{
SolarMutexGuard aGuard;
uno::Reference< util::XRefreshable > xContainer( aSource.Source, uno::UNO_QUERY );
@@ -105,7 +103,7 @@ void SAL_CALL SfxFilterListener::refreshed( const lang::EventObject& aSource ) t
}
}
-void SAL_CALL SfxFilterListener::disposing( const lang::EventObject& aSource ) throw( uno::RuntimeException )
+void SAL_CALL SfxFilterListener::disposing( const lang::EventObject& aSource )
{
SolarMutexGuard aGuard;
uno::Reference< util::XRefreshable > xNotifier( aSource.Source, uno::UNO_QUERY );
diff --git a/sfx2/source/bastyp/fltlst.hxx b/sfx2/source/bastyp/fltlst.hxx
index 8fd5a9af4196..bf4d348a0e44 100644
--- a/sfx2/source/bastyp/fltlst.hxx
+++ b/sfx2/source/bastyp/fltlst.hxx
@@ -42,10 +42,10 @@ class SfxFilterListener final
public:
// XRefreshListener
/// @throws css::uno::RuntimeException
- void SAL_CALL refreshed( const css::lang::EventObject& aSource ) throw( css::uno::RuntimeException, std::exception );
+ void SAL_CALL refreshed( const css::lang::EventObject& aSource );
// XEventListener
/// @throws css::uno::RuntimeException
- void SAL_CALL disposing( const css::lang::EventObject& aSource ) throw( css::uno::RuntimeException );
+ void SAL_CALL disposing( const css::lang::EventObject& aSource );
};
diff --git a/sfx2/source/control/sfxstatuslistener.cxx b/sfx2/source/control/sfxstatuslistener.cxx
index dab426adf6b2..918e70c8f04f 100644
--- a/sfx2/source/control/sfxstatuslistener.cxx
+++ b/sfx2/source/control/sfxstatuslistener.cxx
@@ -99,7 +99,7 @@ void SfxStatusListener::ReBind()
}
// new UNO API
-void SAL_CALL SfxStatusListener::dispose() throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL SfxStatusListener::dispose()
{
if ( m_xDispatch.is() && !m_aCommand.Complete.isEmpty() )
{
@@ -118,19 +118,16 @@ void SAL_CALL SfxStatusListener::dispose() throw( css::uno::RuntimeException, st
}
void SAL_CALL SfxStatusListener::addEventListener( const Reference< XEventListener >& )
-throw ( RuntimeException, std::exception )
{
// do nothing - this is a wrapper class which does not support listeners
}
void SAL_CALL SfxStatusListener::removeEventListener( const Reference< XEventListener >& )
-throw ( RuntimeException, std::exception )
{
// do nothing - this is a wrapper class which does not support listeners
}
void SAL_CALL SfxStatusListener::disposing( const EventObject& Source )
-throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
@@ -141,7 +138,6 @@ throw( RuntimeException, std::exception )
}
void SAL_CALL SfxStatusListener::statusChanged( const FeatureStateEvent& rEvent)
-throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx
index c39c7eff154a..8465c33dfa85 100644
--- a/sfx2/source/control/statcach.cxx
+++ b/sfx2/source/control/statcach.cxx
@@ -65,7 +65,7 @@ BindDispatch_Impl::BindDispatch_Impl( const css::uno::Reference< css::frame::XDi
aStatus.IsEnabled = true;
}
-void SAL_CALL BindDispatch_Impl::disposing( const css::lang::EventObject& ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL BindDispatch_Impl::disposing( const css::lang::EventObject& )
{
if ( xDisp.is() )
{
@@ -74,7 +74,7 @@ void SAL_CALL BindDispatch_Impl::disposing( const css::lang::EventObject& ) thro
}
}
-void SAL_CALL BindDispatch_Impl::statusChanged( const css::frame::FeatureStateEvent& rEvent ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL BindDispatch_Impl::statusChanged( const css::frame::FeatureStateEvent& rEvent )
{
aStatus = rEvent;
if ( !pCache )
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx
index d298b19e16f9..32551122c55b 100644
--- a/sfx2/source/control/thumbnailviewacc.cxx
+++ b/sfx2/source/control/thumbnailviewacc.cxx
@@ -119,14 +119,12 @@ void ThumbnailViewAcc::LoseFocus()
}
uno::Reference< accessibility::XAccessibleContext > SAL_CALL ThumbnailViewAcc::getAccessibleContext()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
return this;
}
sal_Int32 SAL_CALL ThumbnailViewAcc::getAccessibleChildCount()
- throw (uno::RuntimeException, std::exception)
{
const SolarMutexGuard aSolarGuard;
ThrowIfDisposed();
@@ -136,7 +134,6 @@ sal_Int32 SAL_CALL ThumbnailViewAcc::getAccessibleChildCount()
}
uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getAccessibleChild( sal_Int32 i )
- throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -152,7 +149,6 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getAcces
}
uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getAccessibleParent()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -166,7 +162,6 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getAcces
}
sal_Int32 SAL_CALL ThumbnailViewAcc::getAccessibleIndexInParent()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -191,7 +186,6 @@ sal_Int32 SAL_CALL ThumbnailViewAcc::getAccessibleIndexInParent()
}
sal_Int16 SAL_CALL ThumbnailViewAcc::getAccessibleRole()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
// #i73746# As the Java Access Bridge (v 2.0.1) uses "managesDescendants"
@@ -202,14 +196,12 @@ sal_Int16 SAL_CALL ThumbnailViewAcc::getAccessibleRole()
}
OUString SAL_CALL ThumbnailViewAcc::getAccessibleDescription()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
return OUString("ThumbnailView");
}
OUString SAL_CALL ThumbnailViewAcc::getAccessibleName()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -230,14 +222,12 @@ OUString SAL_CALL ThumbnailViewAcc::getAccessibleName()
}
uno::Reference< accessibility::XAccessibleRelationSet > SAL_CALL ThumbnailViewAcc::getAccessibleRelationSet()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
return uno::Reference< accessibility::XAccessibleRelationSet >();
}
uno::Reference< accessibility::XAccessibleStateSet > SAL_CALL ThumbnailViewAcc::getAccessibleStateSet()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
::utl::AccessibleStateSetHelper* pStateSet = new ::utl::AccessibleStateSetHelper();
@@ -257,7 +247,6 @@ uno::Reference< accessibility::XAccessibleStateSet > SAL_CALL ThumbnailViewAcc::
}
lang::Locale SAL_CALL ThumbnailViewAcc::getLocale()
- throw (accessibility::IllegalAccessibleComponentStateException, uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -276,7 +265,6 @@ lang::Locale SAL_CALL ThumbnailViewAcc::getLocale()
}
void SAL_CALL ThumbnailViewAcc::addAccessibleEventListener( const uno::Reference< accessibility::XAccessibleEventListener >& rxListener )
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
::osl::MutexGuard aGuard (m_aMutex);
@@ -300,7 +288,6 @@ void SAL_CALL ThumbnailViewAcc::addAccessibleEventListener( const uno::Reference
}
void SAL_CALL ThumbnailViewAcc::removeAccessibleEventListener( const uno::Reference< accessibility::XAccessibleEventListener >& rxListener )
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
::osl::MutexGuard aGuard (m_aMutex);
@@ -316,7 +303,6 @@ void SAL_CALL ThumbnailViewAcc::removeAccessibleEventListener( const uno::Refere
}
sal_Bool SAL_CALL ThumbnailViewAcc::containsPoint( const awt::Point& aPoint )
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const awt::Rectangle aRect( getBounds() );
@@ -327,7 +313,6 @@ sal_Bool SAL_CALL ThumbnailViewAcc::containsPoint( const awt::Point& aPoint )
}
uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getAccessibleAtPoint( const awt::Point& aPoint )
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -349,7 +334,6 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getAcces
}
awt::Rectangle SAL_CALL ThumbnailViewAcc::getBounds()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -366,7 +350,6 @@ awt::Rectangle SAL_CALL ThumbnailViewAcc::getBounds()
}
awt::Point SAL_CALL ThumbnailViewAcc::getLocation()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const awt::Rectangle aRect( getBounds() );
@@ -379,7 +362,6 @@ awt::Point SAL_CALL ThumbnailViewAcc::getLocation()
}
awt::Point SAL_CALL ThumbnailViewAcc::getLocationOnScreen()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -393,7 +375,6 @@ awt::Point SAL_CALL ThumbnailViewAcc::getLocationOnScreen()
}
awt::Size SAL_CALL ThumbnailViewAcc::getSize()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const awt::Rectangle aRect( getBounds() );
@@ -406,7 +387,6 @@ awt::Size SAL_CALL ThumbnailViewAcc::getSize()
}
void SAL_CALL ThumbnailViewAcc::grabFocus()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -414,7 +394,6 @@ void SAL_CALL ThumbnailViewAcc::grabFocus()
}
sal_Int32 SAL_CALL ThumbnailViewAcc::getForeground( )
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetWindowTextColor().GetColor();
@@ -422,7 +401,6 @@ sal_Int32 SAL_CALL ThumbnailViewAcc::getForeground( )
}
sal_Int32 SAL_CALL ThumbnailViewAcc::getBackground( )
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetWindowColor().GetColor();
@@ -430,7 +408,6 @@ sal_Int32 SAL_CALL ThumbnailViewAcc::getBackground( )
}
void SAL_CALL ThumbnailViewAcc::selectAccessibleChild( sal_Int32 nChildIndex )
- throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -445,7 +422,6 @@ void SAL_CALL ThumbnailViewAcc::selectAccessibleChild( sal_Int32 nChildIndex )
}
sal_Bool SAL_CALL ThumbnailViewAcc::isAccessibleChildSelected( sal_Int32 nChildIndex )
- throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -461,21 +437,18 @@ sal_Bool SAL_CALL ThumbnailViewAcc::isAccessibleChildSelected( sal_Int32 nChildI
}
void SAL_CALL ThumbnailViewAcc::clearAccessibleSelection()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
}
void SAL_CALL ThumbnailViewAcc::selectAllAccessibleChildren()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
// unsupported due to single selection only
}
sal_Int32 SAL_CALL ThumbnailViewAcc::getSelectedAccessibleChildCount()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -493,7 +466,6 @@ sal_Int32 SAL_CALL ThumbnailViewAcc::getSelectedAccessibleChildCount()
}
uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex )
- throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -511,7 +483,6 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getSelec
}
void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 nChildIndex )
- throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception)
{
ThrowIfDisposed();
const SolarMutexGuard aSolarGuard;
@@ -522,7 +493,7 @@ void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 nChildIndex )
(void) nChildIndex;
}
-sal_Int64 SAL_CALL ThumbnailViewAcc::getSomething( const uno::Sequence< sal_Int8 >& rId ) throw( uno::RuntimeException, std::exception )
+sal_Int64 SAL_CALL ThumbnailViewAcc::getSomething( const uno::Sequence< sal_Int8 >& rId )
{
sal_Int64 nRet;
@@ -580,7 +551,6 @@ ThumbnailViewItem* ThumbnailViewAcc::getItem (sal_uInt16 nIndex) const
}
void ThumbnailViewAcc::ThrowIfDisposed()
- throw (css::lang::DisposedException)
{
if (rBHelper.bDisposed || rBHelper.bInDispose)
{
@@ -665,25 +635,21 @@ ThumbnailViewItemAcc* ThumbnailViewItemAcc::getImplementation( const uno::Refere
}
uno::Reference< accessibility::XAccessibleContext > SAL_CALL ThumbnailViewItemAcc::getAccessibleContext()
- throw (uno::RuntimeException, std::exception)
{
return this;
}
sal_Int32 SAL_CALL ThumbnailViewItemAcc::getAccessibleChildCount()
- throw (uno::RuntimeException, std::exception)
{
return 0;
}
uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewItemAcc::getAccessibleChild( sal_Int32 )
- throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception)
{
throw lang::IndexOutOfBoundsException();
}
uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewItemAcc::getAccessibleParent()
- throw (uno::RuntimeException, std::exception)
{
const SolarMutexGuard aSolarGuard;
uno::Reference< accessibility::XAccessible > xRet;
@@ -695,7 +661,6 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewItemAcc::getA
}
sal_Int32 SAL_CALL ThumbnailViewItemAcc::getAccessibleIndexInParent()
- throw (uno::RuntimeException, std::exception)
{
const SolarMutexGuard aSolarGuard;
// The index defaults to -1 to indicate the child does not belong to its
@@ -735,19 +700,16 @@ sal_Int32 SAL_CALL ThumbnailViewItemAcc::getAccessibleIndexInParent()
}
sal_Int16 SAL_CALL ThumbnailViewItemAcc::getAccessibleRole()
- throw (uno::RuntimeException, std::exception)
{
return accessibility::AccessibleRole::LIST_ITEM;
}
OUString SAL_CALL ThumbnailViewItemAcc::getAccessibleDescription()
- throw (uno::RuntimeException, std::exception)
{
return OUString();
}
OUString SAL_CALL ThumbnailViewItemAcc::getAccessibleName()
- throw (uno::RuntimeException, std::exception)
{
const SolarMutexGuard aSolarGuard;
OUString aRet;
@@ -768,13 +730,11 @@ OUString SAL_CALL ThumbnailViewItemAcc::getAccessibleName()
}
uno::Reference< accessibility::XAccessibleRelationSet > SAL_CALL ThumbnailViewItemAcc::getAccessibleRelationSet()
- throw (uno::RuntimeException, std::exception)
{
return uno::Reference< accessibility::XAccessibleRelationSet >();
}
uno::Reference< accessibility::XAccessibleStateSet > SAL_CALL ThumbnailViewItemAcc::getAccessibleStateSet()
- throw (uno::RuntimeException, std::exception)
{
const SolarMutexGuard aSolarGuard;
::utl::AccessibleStateSetHelper* pStateSet = new ::utl::AccessibleStateSetHelper;
@@ -804,7 +764,6 @@ uno::Reference< accessibility::XAccessibleStateSet > SAL_CALL ThumbnailViewItemA
}
lang::Locale SAL_CALL ThumbnailViewItemAcc::getLocale()
- throw (accessibility::IllegalAccessibleComponentStateException, uno::RuntimeException, std::exception)
{
const SolarMutexGuard aSolarGuard;
uno::Reference< accessibility::XAccessible > xParent( getAccessibleParent() );
@@ -822,7 +781,6 @@ lang::Locale SAL_CALL ThumbnailViewItemAcc::getLocale()
}
void SAL_CALL ThumbnailViewItemAcc::addAccessibleEventListener( const uno::Reference< accessibility::XAccessibleEventListener >& rxListener )
- throw (uno::RuntimeException, std::exception)
{
const ::osl::MutexGuard aGuard( maMutex );
@@ -845,7 +803,6 @@ void SAL_CALL ThumbnailViewItemAcc::addAccessibleEventListener( const uno::Refer
}
void SAL_CALL ThumbnailViewItemAcc::removeAccessibleEventListener( const uno::Reference< accessibility::XAccessibleEventListener >& rxListener )
- throw (uno::RuntimeException, std::exception)
{
const ::osl::MutexGuard aGuard( maMutex );
@@ -860,7 +817,6 @@ void SAL_CALL ThumbnailViewItemAcc::removeAccessibleEventListener( const uno::Re
}
sal_Bool SAL_CALL ThumbnailViewItemAcc::containsPoint( const awt::Point& aPoint )
- throw (uno::RuntimeException, std::exception)
{
const awt::Rectangle aRect( getBounds() );
const Point aSize( aRect.Width, aRect.Height );
@@ -870,14 +826,12 @@ sal_Bool SAL_CALL ThumbnailViewItemAcc::containsPoint( const awt::Point& aPoint
}
uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewItemAcc::getAccessibleAtPoint( const awt::Point& )
- throw (uno::RuntimeException, std::exception)
{
uno::Reference< accessibility::XAccessible > xRet;
return xRet;
}
awt::Rectangle SAL_CALL ThumbnailViewItemAcc::getBounds()
- throw (uno::RuntimeException, std::exception)
{
const SolarMutexGuard aSolarGuard;
awt::Rectangle aRet;
@@ -900,7 +854,6 @@ awt::Rectangle SAL_CALL ThumbnailViewItemAcc::getBounds()
}
awt::Point SAL_CALL ThumbnailViewItemAcc::getLocation()
- throw (uno::RuntimeException, std::exception)
{
const awt::Rectangle aRect( getBounds() );
awt::Point aRet;
@@ -912,7 +865,6 @@ awt::Point SAL_CALL ThumbnailViewItemAcc::getLocation()
}
awt::Point SAL_CALL ThumbnailViewItemAcc::getLocationOnScreen()
- throw (uno::RuntimeException, std::exception)
{
const SolarMutexGuard aSolarGuard;
awt::Point aRet;
@@ -930,7 +882,6 @@ awt::Point SAL_CALL ThumbnailViewItemAcc::getLocationOnScreen()
}
awt::Size SAL_CALL ThumbnailViewItemAcc::getSize()
- throw (uno::RuntimeException, std::exception)
{
const awt::Rectangle aRect( getBounds() );
awt::Size aRet;
@@ -942,25 +893,22 @@ awt::Size SAL_CALL ThumbnailViewItemAcc::getSize()
}
void SAL_CALL ThumbnailViewItemAcc::grabFocus()
- throw (uno::RuntimeException, std::exception)
{
// nothing to do
}
sal_Int32 SAL_CALL ThumbnailViewItemAcc::getForeground( )
- throw (uno::RuntimeException, std::exception)
{
sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetWindowTextColor().GetColor();
return static_cast<sal_Int32>(nColor);
}
sal_Int32 SAL_CALL ThumbnailViewItemAcc::getBackground( )
- throw (uno::RuntimeException, std::exception)
{
return static_cast<sal_Int32>(Application::GetSettings().GetStyleSettings().GetWindowColor().GetColor());
}
-sal_Int64 SAL_CALL ThumbnailViewItemAcc::getSomething( const uno::Sequence< sal_Int8 >& rId ) throw( uno::RuntimeException, std::exception )
+sal_Int64 SAL_CALL ThumbnailViewItemAcc::getSomething( const uno::Sequence< sal_Int8 >& rId )
{
sal_Int64 nRet;
diff --git a/sfx2/source/control/thumbnailviewacc.hxx b/sfx2/source/control/thumbnailviewacc.hxx
index 33eb205187a4..fb2cdc591be3 100644
--- a/sfx2/source/control/thumbnailviewacc.hxx
+++ b/sfx2/source/control/thumbnailviewacc.hxx
@@ -78,46 +78,46 @@ public:
void LoseFocus();
// XAccessible
- virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override;
// XAccessibleEventBroadcaster
- virtual void SAL_CALL addAccessibleEventListener( const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeAccessibleEventListener( const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addAccessibleEventListener( const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener ) override;
+ virtual void SAL_CALL removeAccessibleEventListener( const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener ) override;
// XAccessibleContext
- virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getAccessibleDescription( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getAccessibleName( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::lang::Locale SAL_CALL getLocale( ) throw (css::accessibility::IllegalAccessibleComponentStateException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override;
+ virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) override;
+ virtual sal_Int16 SAL_CALL getAccessibleRole( ) override;
+ virtual OUString SAL_CALL getAccessibleDescription( ) override;
+ virtual OUString SAL_CALL getAccessibleName( ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override;
+ virtual css::lang::Locale SAL_CALL getLocale( ) override;
// XAccessibleComponent
- virtual sal_Bool SAL_CALL containsPoint( const css::awt::Point& aPoint ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Rectangle SAL_CALL getBounds( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Point SAL_CALL getLocation( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Point SAL_CALL getLocationOnScreen( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Size SAL_CALL getSize( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL grabFocus( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getForeground( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBackground( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL containsPoint( const css::awt::Point& aPoint ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
+ virtual css::awt::Rectangle SAL_CALL getBounds( ) override;
+ virtual css::awt::Point SAL_CALL getLocation( ) override;
+ virtual css::awt::Point SAL_CALL getLocationOnScreen( ) override;
+ virtual css::awt::Size SAL_CALL getSize( ) override;
+ virtual void SAL_CALL grabFocus( ) override;
+ virtual sal_Int32 SAL_CALL getForeground( ) override;
+ virtual sal_Int32 SAL_CALL getBackground( ) override;
// XAccessibleSelection
- virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL clearAccessibleSelection( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL selectAllAccessibleChildren( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) override;
+ virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) override;
+ virtual void SAL_CALL clearAccessibleSelection( ) override;
+ virtual void SAL_CALL selectAllAccessibleChildren( ) override;
+ virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) override;
+ virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) override;
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) override;
private:
::std::vector< css::uno::Reference<
@@ -156,8 +156,7 @@ private:
@throws css::lang::DisposedException
*/
- void ThrowIfDisposed()
- throw (css::lang::DisposedException);
+ void ThrowIfDisposed();
};
class ThumbnailViewItemAcc : public ::cppu::WeakImplHelper< css::accessibility::XAccessible,
@@ -192,37 +191,37 @@ public:
public:
// XAccessible
- virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override;
// XAccessibleEventBroadcaster
- virtual void SAL_CALL addAccessibleEventListener( const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeAccessibleEventListener( const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addAccessibleEventListener( const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener ) override;
+ virtual void SAL_CALL removeAccessibleEventListener( const css::uno::Reference< css::accessibility::XAccessibleEventListener >& xListener ) override;
// XAccessibleContext
- virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getAccessibleDescription( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getAccessibleName( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::lang::Locale SAL_CALL getLocale( ) throw (css::accessibility::IllegalAccessibleComponentStateException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override;
+ virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) override;
+ virtual sal_Int16 SAL_CALL getAccessibleRole( ) override;
+ virtual OUString SAL_CALL getAccessibleDescription( ) override;
+ virtual OUString SAL_CALL getAccessibleName( ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override;
+ virtual css::lang::Locale SAL_CALL getLocale( ) override;
// XAccessibleComponent
- virtual sal_Bool SAL_CALL containsPoint( const css::awt::Point& aPoint ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Rectangle SAL_CALL getBounds( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Point SAL_CALL getLocation( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Point SAL_CALL getLocationOnScreen( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Size SAL_CALL getSize( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL grabFocus( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getForeground( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL getBackground( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL containsPoint( const css::awt::Point& aPoint ) override;
+ virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
+ virtual css::awt::Rectangle SAL_CALL getBounds( ) override;
+ virtual css::awt::Point SAL_CALL getLocation( ) override;
+ virtual css::awt::Point SAL_CALL getLocationOnScreen( ) override;
+ virtual css::awt::Size SAL_CALL getSize( ) override;
+ virtual void SAL_CALL grabFocus( ) override;
+ virtual sal_Int32 SAL_CALL getForeground( ) override;
+ virtual sal_Int32 SAL_CALL getBackground( ) override;
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rId ) override;
};
#endif // INCLUDED_SFX2_SOURCE_CONTROL_THUMBNAILVIEWACC_HXX
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 33d5314ff262..9eca383e71a4 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -120,14 +120,14 @@ void SfxStatusDispatcher::ReleaseAll()
aListeners.disposeAndClear( aObject );
}
-void SAL_CALL SfxStatusDispatcher::dispatch( const css::util::URL&, const css::uno::Sequence< css::beans::PropertyValue >& ) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL SfxStatusDispatcher::dispatch( const css::util::URL&, const css::uno::Sequence< css::beans::PropertyValue >& )
{
}
void SAL_CALL SfxStatusDispatcher::dispatchWithNotification(
const css::util::URL&,
const css::uno::Sequence< css::beans::PropertyValue >&,
- const css::uno::Reference< css::frame::XDispatchResultListener >& ) throw( css::uno::RuntimeException, std::exception )
+ const css::uno::Reference< css::frame::XDispatchResultListener >& )
{
}
@@ -136,7 +136,7 @@ SfxStatusDispatcher::SfxStatusDispatcher()
{
}
-void SAL_CALL SfxStatusDispatcher::addStatusListener(const css::uno::Reference< css::frame::XStatusListener > & aListener, const css::util::URL& aURL) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL SfxStatusDispatcher::addStatusListener(const css::uno::Reference< css::frame::XStatusListener > & aListener, const css::util::URL& aURL)
{
aListeners.addInterface( aURL.Complete, aListener );
if ( aURL.Complete == ".uno:LifeTime" )
@@ -150,14 +150,14 @@ void SAL_CALL SfxStatusDispatcher::addStatusListener(const css::uno::Reference<
}
}
-void SAL_CALL SfxStatusDispatcher::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener > & aListener, const css::util::URL& aURL ) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL SfxStatusDispatcher::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener > & aListener, const css::util::URL& aURL )
{
aListeners.removeInterface( aURL.Complete, aListener );
}
// XUnoTunnel
-sal_Int64 SAL_CALL SfxOfficeDispatch::getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) throw(css::uno::RuntimeException, std::exception)
+sal_Int64 SAL_CALL SfxOfficeDispatch::getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier )
{
if ( aIdentifier == impl_getStaticIdentifier() )
return sal::static_int_cast< sal_Int64 >( reinterpret_cast< sal_IntPtr >( this ));
@@ -219,7 +219,7 @@ std::unique_ptr< css::uno::ContextLayer > EnsureJavaContext()
}
#endif
-void SAL_CALL SfxOfficeDispatch::dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL SfxOfficeDispatch::dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs )
{
// ControllerItem is the Impl class
if ( pImpl )
@@ -233,7 +233,7 @@ void SAL_CALL SfxOfficeDispatch::dispatch( const css::util::URL& aURL, const css
void SAL_CALL SfxOfficeDispatch::dispatchWithNotification( const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& aArgs,
- const css::uno::Reference< css::frame::XDispatchResultListener >& rListener ) throw( css::uno::RuntimeException, std::exception )
+ const css::uno::Reference< css::frame::XDispatchResultListener >& rListener )
{
// ControllerItem is the Impl class
if ( pImpl )
@@ -245,7 +245,7 @@ void SAL_CALL SfxOfficeDispatch::dispatchWithNotification( const css::util::URL&
}
}
-void SAL_CALL SfxOfficeDispatch::addStatusListener(const css::uno::Reference< css::frame::XStatusListener > & aListener, const css::util::URL& aURL) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL SfxOfficeDispatch::addStatusListener(const css::uno::Reference< css::frame::XStatusListener > & aListener, const css::util::URL& aURL)
{
GetListeners().addInterface( aURL.Complete, aListener );
if ( pImpl )
@@ -605,7 +605,6 @@ void collectUsageInformation(const util::URL& rURL, const uno::Sequence<beans::P
void SAL_CALL SfxDispatchController_Impl::dispatch( const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& aArgs,
const css::uno::Reference< css::frame::XDispatchResultListener >& rListener )
- throw (css::uno::RuntimeException, std::exception)
{
collectUsageInformation(aURL, aArgs);
@@ -816,7 +815,7 @@ SfxDispatcher* SfxDispatchController_Impl::GetDispatcher()
return pDispatcher;
}
-void SAL_CALL SfxDispatchController_Impl::addStatusListener(const css::uno::Reference< css::frame::XStatusListener > & aListener, const css::util::URL& aURL) throw ( css::uno::RuntimeException )
+void SAL_CALL SfxDispatchController_Impl::addStatusListener(const css::uno::Reference< css::frame::XStatusListener > & aListener, const css::util::URL& aURL)
{
SolarMutexGuard aGuard;
if ( !pDispatch )
diff --git a/sfx2/source/dialog/backingcomp.cxx b/sfx2/source/dialog/backingcomp.cxx
index f08306d6be8e..db2d583df39b 100644
--- a/sfx2/source/dialog/backingcomp.cxx
+++ b/sfx2/source/dialog/backingcomp.cxx
@@ -99,51 +99,51 @@ public:
explicit BackingComp(const css::uno::Reference< css::uno::XComponentContext >& xContext);
// XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
virtual void SAL_CALL acquire ( ) throw( ) override;
virtual void SAL_CALL release ( ) throw( ) override;
// XTypeProvide
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () throw(css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName ( ) throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService ( const OUString& sServiceName ) throw(css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName ( ) override;
+ virtual sal_Bool SAL_CALL supportsService ( const OUString& sServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& lArgs ) throw(css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& lArgs ) override;
// XController
- virtual void SAL_CALL attachFrame( const css::uno::Reference< css::frame::XFrame >& xFrame ) throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL attachModel( const css::uno::Reference< css::frame::XModel >& xModel ) throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL suspend( sal_Bool bSuspend ) throw(css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getViewData() throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL restoreViewData( const css::uno::Any& aData ) throw(css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::frame::XModel > SAL_CALL getModel() throw(css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::frame::XFrame > SAL_CALL getFrame() throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL attachFrame( const css::uno::Reference< css::frame::XFrame >& xFrame ) override;
+ virtual sal_Bool SAL_CALL attachModel( const css::uno::Reference< css::frame::XModel >& xModel ) override;
+ virtual sal_Bool SAL_CALL suspend( sal_Bool bSuspend ) override;
+ virtual css::uno::Any SAL_CALL getViewData() override;
+ virtual void SAL_CALL restoreViewData( const css::uno::Any& aData ) override;
+ virtual css::uno::Reference< css::frame::XModel > SAL_CALL getModel() override;
+ virtual css::uno::Reference< css::frame::XFrame > SAL_CALL getFrame() override;
// XKeyListener
- virtual void SAL_CALL keyPressed ( const css::awt::KeyEvent& aEvent ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL keyReleased( const css::awt::KeyEvent& aEvent ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL keyPressed ( const css::awt::KeyEvent& aEvent ) override;
+ virtual void SAL_CALL keyReleased( const css::awt::KeyEvent& aEvent ) override;
// XEventListener
- virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) override;
// XComponent
- virtual void SAL_CALL dispose ( ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addEventListener ( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL dispose ( ) override;
+ virtual void SAL_CALL addEventListener ( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
+ virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
// XDispatchProvider
- virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL, const OUString& sTargetFrameName , sal_Int32 nSearchFlags ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptions ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL, const OUString& sTargetFrameName , sal_Int32 nSearchFlags ) override;
+ virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptions ) override;
// XDispatch
- virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener, const css::util::URL& aURL ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener, const css::util::URL& aURL ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) override;
+ virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener, const css::util::URL& aURL ) override;
+ virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener, const css::util::URL& aURL ) override;
};
BackingComp::BackingComp( const css::uno::Reference< css::uno::XComponentContext >& xContext )
@@ -167,7 +167,6 @@ BackingComp::BackingComp( const css::uno::Reference< css::uno::XComponentContext
*/
css::uno::Any SAL_CALL BackingComp::queryInterface( /*IN*/ const css::uno::Type& aType )
- throw(css::uno::RuntimeException, std::exception)
{
css::uno::Any aResult;
@@ -236,7 +235,6 @@ void SAL_CALL BackingComp::release()
*/
css::uno::Sequence< css::uno::Type > SAL_CALL BackingComp::getTypes()
- throw(css::uno::RuntimeException, std::exception)
{
static ::cppu::OTypeCollection* pTypeCollection = nullptr;
if (!pTypeCollection)
@@ -283,25 +281,21 @@ css::uno::Sequence< css::uno::Type > SAL_CALL BackingComp::getTypes()
*/
css::uno::Sequence< sal_Int8 > SAL_CALL BackingComp::getImplementationId()
- throw(css::uno::RuntimeException, std::exception)
{
return css::uno::Sequence<sal_Int8>();
}
OUString SAL_CALL BackingComp::getImplementationName()
- throw(css::uno::RuntimeException, std::exception)
{
return OUString("com.sun.star.comp.sfx2.BackingComp");
}
sal_Bool SAL_CALL BackingComp::supportsService( /*IN*/ const OUString& sServiceName )
- throw(css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, sServiceName);
}
css::uno::Sequence< OUString > SAL_CALL BackingComp::getSupportedServiceNames()
- throw(css::uno::RuntimeException, std::exception)
{
css::uno::Sequence< OUString > lNames(2);
lNames[0] = "com.sun.star.frame.StartModule";
@@ -364,7 +358,6 @@ css::uno::Sequence< OUString > SAL_CALL BackingComp::getSupportedServiceNames()
*/
void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::frame::XFrame >& xFrame )
- throw (css::uno::RuntimeException, std::exception)
{
/* SAFE */
SolarMutexGuard aGuard;
@@ -454,7 +447,6 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f
*/
sal_Bool SAL_CALL BackingComp::attachModel( /*IN*/ const css::uno::Reference< css::frame::XModel >& )
- throw (css::uno::RuntimeException, std::exception)
{
return false;
}
@@ -469,7 +461,6 @@ sal_Bool SAL_CALL BackingComp::attachModel( /*IN*/ const css::uno::Reference< cs
*/
css::uno::Reference< css::frame::XModel > SAL_CALL BackingComp::getModel()
- throw (css::uno::RuntimeException, std::exception)
{
return css::uno::Reference< css::frame::XModel >();
}
@@ -481,7 +472,6 @@ css::uno::Reference< css::frame::XModel > SAL_CALL BackingComp::getModel()
*/
css::uno::Any SAL_CALL BackingComp::getViewData()
- throw (css::uno::RuntimeException, std::exception)
{
return css::uno::Any();
}
@@ -494,7 +484,6 @@ css::uno::Any SAL_CALL BackingComp::getViewData()
*/
void SAL_CALL BackingComp::restoreViewData( /*IN*/ const css::uno::Any& )
- throw (css::uno::RuntimeException, std::exception)
{
}
@@ -508,7 +497,6 @@ void SAL_CALL BackingComp::restoreViewData( /*IN*/ const css::uno::Any& )
*/
css::uno::Reference< css::frame::XFrame > SAL_CALL BackingComp::getFrame()
- throw (css::uno::RuntimeException, std::exception)
{
/* SAFE { */
SolarMutexGuard aGuard;
@@ -531,7 +519,6 @@ css::uno::Reference< css::frame::XFrame > SAL_CALL BackingComp::getFrame()
*/
sal_Bool SAL_CALL BackingComp::suspend( /*IN*/ sal_Bool )
- throw (css::uno::RuntimeException, std::exception)
{
/* FIXME ... implemented by using default :-( */
return true;
@@ -554,7 +541,6 @@ sal_Bool SAL_CALL BackingComp::suspend( /*IN*/ sal_Bool )
*/
void SAL_CALL BackingComp::disposing( /*IN*/ const css::lang::EventObject& aEvent )
- throw(css::uno::RuntimeException, std::exception)
{
// Attention: don't free m_pAccExec here! see comments inside dtor and
// keyPressed() for further details.
@@ -582,7 +568,6 @@ void SAL_CALL BackingComp::disposing( /*IN*/ const css::lang::EventObject& aEven
*/
void SAL_CALL BackingComp::dispose()
- throw(css::uno::RuntimeException, std::exception)
{
/* SAFE { */
SolarMutexGuard aGuard;
@@ -629,7 +614,6 @@ void SAL_CALL BackingComp::dispose()
*/
void SAL_CALL BackingComp::addEventListener( /*IN*/ const css::uno::Reference< css::lang::XEventListener >& )
- throw(css::uno::RuntimeException, std::exception)
{
throw css::uno::RuntimeException(
OUString("not supported"),
@@ -646,7 +630,6 @@ void SAL_CALL BackingComp::addEventListener( /*IN*/ const css::uno::Reference< c
*/
void SAL_CALL BackingComp::removeEventListener( /*IN*/ const css::uno::Reference< css::lang::XEventListener >& )
- throw(css::uno::RuntimeException, std::exception)
{
}
@@ -670,7 +653,6 @@ void SAL_CALL BackingComp::removeEventListener( /*IN*/ const css::uno::Reference
*/
void SAL_CALL BackingComp::initialize( /*IN*/ const css::uno::Sequence< css::uno::Any >& lArgs )
- throw(css::uno::Exception, css::uno::RuntimeException, std::exception)
{
/* SAFE { */
SolarMutexGuard aGuard;
@@ -718,7 +700,6 @@ void SAL_CALL BackingComp::initialize( /*IN*/ const css::uno::Sequence< css::uno
*/
void SAL_CALL BackingComp::keyPressed( /*IN*/ const css::awt::KeyEvent& )
- throw(css::uno::RuntimeException, std::exception)
{
}
@@ -727,7 +708,6 @@ void SAL_CALL BackingComp::keyPressed( /*IN*/ const css::awt::KeyEvent& )
*/
void SAL_CALL BackingComp::keyReleased( /*IN*/ const css::awt::KeyEvent& )
- throw(css::uno::RuntimeException, std::exception)
{
/* Attention
Please use keyPressed() instead of this method. Otherwhise it would be possible, that
@@ -739,7 +719,7 @@ void SAL_CALL BackingComp::keyReleased( /*IN*/ const css::awt::KeyEvent& )
}
// XDispatchProvider
-css::uno::Reference< css::frame::XDispatch > SAL_CALL BackingComp::queryDispatch( const css::util::URL& aURL, const OUString& /*sTargetFrameName*/, sal_Int32 /*nSearchFlags*/ ) throw( css::uno::RuntimeException, std::exception )
+css::uno::Reference< css::frame::XDispatch > SAL_CALL BackingComp::queryDispatch( const css::util::URL& aURL, const OUString& /*sTargetFrameName*/, sal_Int32 /*nSearchFlags*/ )
{
css::uno::Reference< css::frame::XDispatch > xDispatch;
if ( aURL.Protocol == "vnd.org.libreoffice.recentdocs:" )
@@ -748,7 +728,7 @@ css::uno::Reference< css::frame::XDispatch > SAL_CALL BackingComp::queryDispatch
return xDispatch;
}
-css::uno::Sequence < css::uno::Reference< css::frame::XDispatch > > SAL_CALL BackingComp::queryDispatches( const css::uno::Sequence < css::frame::DispatchDescriptor >& seqDescripts ) throw( css::uno::RuntimeException, std::exception )
+css::uno::Sequence < css::uno::Reference< css::frame::XDispatch > > SAL_CALL BackingComp::queryDispatches( const css::uno::Sequence < css::frame::DispatchDescriptor >& seqDescripts )
{
sal_Int32 nCount = seqDescripts.getLength();
css::uno::Sequence < css::uno::Reference < XDispatch > > lDispatcher( nCount );
@@ -760,7 +740,7 @@ css::uno::Sequence < css::uno::Reference< css::frame::XDispatch > > SAL_CALL Bac
}
// XDispatch
-void SAL_CALL BackingComp::dispatch( const css::util::URL& aURL, const css::uno::Sequence < css::beans::PropertyValue >& /*lArgs*/ ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL BackingComp::dispatch( const css::util::URL& aURL, const css::uno::Sequence < css::beans::PropertyValue >& /*lArgs*/ )
{
// vnd.org.libreoffice.recentdocs:ClearRecentFileList - clear recent files
if ( aURL.Path == "ClearRecentFileList" )
@@ -784,11 +764,11 @@ void SAL_CALL BackingComp::dispatch( const css::util::URL& aURL, const css::uno:
}
}
-void SAL_CALL BackingComp::addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& /*xControl*/, const css::util::URL& /*aURL*/ ) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL BackingComp::addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& /*xControl*/, const css::util::URL& /*aURL*/ )
{
}
-void SAL_CALL BackingComp::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& /*xControl*/, const css::util::URL& /*aURL*/ ) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL BackingComp::removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& /*xControl*/, const css::util::URL& /*aURL*/ )
{
}
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index 004be29324d4..a84a21bb88eb 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -154,38 +154,38 @@ OUString DecodeSpaces_Impl( const OUString& rSource );
// FileDialogHelper_Impl
// XFilePickerListener Methods
-void SAL_CALL FileDialogHelper_Impl::fileSelectionChanged( const FilePickerEvent& aEvent ) throw ( RuntimeException, std::exception )
+void SAL_CALL FileDialogHelper_Impl::fileSelectionChanged( const FilePickerEvent& aEvent )
{
SolarMutexGuard aGuard;
mpAntiImpl->FileSelectionChanged( aEvent );
}
-void SAL_CALL FileDialogHelper_Impl::directoryChanged( const FilePickerEvent& aEvent ) throw ( RuntimeException, std::exception )
+void SAL_CALL FileDialogHelper_Impl::directoryChanged( const FilePickerEvent& aEvent )
{
SolarMutexGuard aGuard;
mpAntiImpl->DirectoryChanged( aEvent );
}
-OUString SAL_CALL FileDialogHelper_Impl::helpRequested( const FilePickerEvent& aEvent ) throw ( RuntimeException, std::exception )
+OUString SAL_CALL FileDialogHelper_Impl::helpRequested( const FilePickerEvent& aEvent )
{
SolarMutexGuard aGuard;
return sfx2::FileDialogHelper::HelpRequested( aEvent );
}
-void SAL_CALL FileDialogHelper_Impl::controlStateChanged( const FilePickerEvent& aEvent ) throw ( RuntimeException, std::exception )
+void SAL_CALL FileDialogHelper_Impl::controlStateChanged( const FilePickerEvent& aEvent )
{
SolarMutexGuard aGuard;
mpAntiImpl->ControlStateChanged( aEvent );
}
-void SAL_CALL FileDialogHelper_Impl::dialogSizeChanged() throw ( RuntimeException, std::exception )
+void SAL_CALL FileDialogHelper_Impl::dialogSizeChanged()
{
SolarMutexGuard aGuard;
mpAntiImpl->DialogSizeChanged();
}
// XDialogClosedListener Methods
-void SAL_CALL FileDialogHelper_Impl::dialogClosed( const DialogClosedEvent& _rEvent ) throw ( RuntimeException, std::exception )
+void SAL_CALL FileDialogHelper_Impl::dialogClosed( const DialogClosedEvent& _rEvent )
{
SolarMutexGuard aGuard;
mpAntiImpl->DialogClosed( _rEvent );
@@ -300,7 +300,7 @@ void FileDialogHelper_Impl::handleDialogSizeChanged()
}
// XEventListener Methods
-void SAL_CALL FileDialogHelper_Impl::disposing( const EventObject& ) throw ( RuntimeException, std::exception )
+void SAL_CALL FileDialogHelper_Impl::disposing( const EventObject& )
{
SolarMutexGuard aGuard;
dispose();
diff --git a/sfx2/source/dialog/filedlgimpl.hxx b/sfx2/source/dialog/filedlgimpl.hxx
index 0becafecbd6f..19e66113d881 100644
--- a/sfx2/source/dialog/filedlgimpl.hxx
+++ b/sfx2/source/dialog/filedlgimpl.hxx
@@ -149,17 +149,17 @@ namespace sfx2
public:
// XFilePickerListener methods
- virtual void SAL_CALL fileSelectionChanged( const css::ui::dialogs::FilePickerEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL directoryChanged( const css::ui::dialogs::FilePickerEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual OUString SAL_CALL helpRequested( const css::ui::dialogs::FilePickerEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL controlStateChanged( const css::ui::dialogs::FilePickerEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL dialogSizeChanged() throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL fileSelectionChanged( const css::ui::dialogs::FilePickerEvent& aEvent ) override;
+ virtual void SAL_CALL directoryChanged( const css::ui::dialogs::FilePickerEvent& aEvent ) override;
+ virtual OUString SAL_CALL helpRequested( const css::ui::dialogs::FilePickerEvent& aEvent ) override;
+ virtual void SAL_CALL controlStateChanged( const css::ui::dialogs::FilePickerEvent& aEvent ) override;
+ virtual void SAL_CALL dialogSizeChanged() override;
// XDialogClosedListener methods
- virtual void SAL_CALL dialogClosed( const css::ui::dialogs::DialogClosedEvent& _rEvent ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL dialogClosed( const css::ui::dialogs::DialogClosedEvent& _rEvent ) override;
// XEventListener methods
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
// handle XFilePickerListener events
void handleFileSelectionChanged( const css::ui::dialogs::FilePickerEvent& aEvent );
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index 7bcc296598c5..2bdee55110a7 100644
--- a/sfx2/source/dialog/mailmodel.cxx
+++ b/sfx2/source/dialog/mailmodel.cxx
@@ -92,12 +92,10 @@ public:
PrepareListener_Impl();
// css.frame.XStatusListener
- virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent& aEvent)
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent& aEvent) override;
// css.lang.XEventListener
- virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent)
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) override;
bool IsSet() const {return m_bState;}
};
@@ -107,7 +105,7 @@ PrepareListener_Impl::PrepareListener_Impl() :
{
}
-void PrepareListener_Impl::statusChanged(const css::frame::FeatureStateEvent& rEvent) throw(css::uno::RuntimeException, std::exception)
+void PrepareListener_Impl::statusChanged(const css::frame::FeatureStateEvent& rEvent)
{
if( rEvent.IsEnabled )
rEvent.State >>= m_bState;
@@ -115,7 +113,7 @@ void PrepareListener_Impl::statusChanged(const css::frame::FeatureStateEvent& rE
m_bState = false;
}
-void PrepareListener_Impl::disposing(const css::lang::EventObject& /*rEvent*/) throw(css::uno::RuntimeException, std::exception)
+void PrepareListener_Impl::disposing(const css::lang::EventObject& /*rEvent*/)
{
}
diff --git a/sfx2/source/doc/DocumentMetadataAccess.cxx b/sfx2/source/doc/DocumentMetadataAccess.cxx
index 1c8f8f8c128a..9b805abb39be 100644
--- a/sfx2/source/doc/DocumentMetadataAccess.cxx
+++ b/sfx2/source/doc/DocumentMetadataAccess.cxx
@@ -797,7 +797,7 @@ DocumentMetadataAccess::~DocumentMetadataAccess()
// css::rdf::XRepositorySupplier:
uno::Reference< rdf::XRepository > SAL_CALL
-DocumentMetadataAccess::getRDFRepository() throw (uno::RuntimeException, std::exception)
+DocumentMetadataAccess::getRDFRepository()
{
OSL_ENSURE(m_pImpl->m_xRepository.is(), "repository not initialized");
return m_pImpl->m_xRepository;
@@ -805,20 +805,20 @@ DocumentMetadataAccess::getRDFRepository() throw (uno::RuntimeException, std::ex
// css::rdf::XNode:
OUString SAL_CALL
-DocumentMetadataAccess::getStringValue() throw (uno::RuntimeException, std::exception)
+DocumentMetadataAccess::getStringValue()
{
return m_pImpl->m_xBaseURI->getStringValue();
}
// css::rdf::XURI:
OUString SAL_CALL
-DocumentMetadataAccess::getNamespace() throw (uno::RuntimeException, std::exception)
+DocumentMetadataAccess::getNamespace()
{
return m_pImpl->m_xBaseURI->getNamespace();
}
OUString SAL_CALL
-DocumentMetadataAccess::getLocalName() throw (uno::RuntimeException, std::exception)
+DocumentMetadataAccess::getLocalName()
{
return m_pImpl->m_xBaseURI->getLocalName();
}
@@ -827,7 +827,6 @@ DocumentMetadataAccess::getLocalName() throw (uno::RuntimeException, std::except
uno::Reference< rdf::XMetadatable > SAL_CALL
DocumentMetadataAccess::getElementByMetadataReference(
const css::beans::StringPair & i_rReference)
-throw (uno::RuntimeException, std::exception)
{
const IXmlIdRegistry * pReg(
m_pImpl->m_rXmlIdRegistrySupplier.GetXmlIdRegistry() );
@@ -841,7 +840,6 @@ throw (uno::RuntimeException, std::exception)
uno::Reference< rdf::XMetadatable > SAL_CALL
DocumentMetadataAccess::getElementByURI(
const uno::Reference< rdf::XURI > & i_xURI )
-throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
{
if (!i_xURI.is()) {
throw lang::IllegalArgumentException(
@@ -867,7 +865,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
uno::Sequence< uno::Reference< rdf::XURI > > SAL_CALL
DocumentMetadataAccess::getMetadataGraphsWithType(
const uno::Reference<rdf::XURI> & i_xType)
-throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
{
if (!i_xType.is()) {
throw lang::IllegalArgumentException(
@@ -889,8 +886,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
uno::Reference<rdf::XURI> SAL_CALL
DocumentMetadataAccess::addMetadataFile(const OUString & i_rFileName,
const uno::Sequence < uno::Reference< rdf::XURI > > & i_rTypes)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- container::ElementExistException, std::exception)
{
if (!isFileNameValid(i_rFileName)) {
throw lang::IllegalArgumentException(
@@ -932,9 +927,6 @@ DocumentMetadataAccess::importMetadataFile(::sal_Int16 i_Format,
const OUString & i_rFileName,
const uno::Reference< rdf::XURI > & i_xBaseURI,
const uno::Sequence < uno::Reference< rdf::XURI > > & i_rTypes)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- datatransfer::UnsupportedFlavorException,
- container::ElementExistException, rdf::ParseException, io::IOException, std::exception)
{
if (!isFileNameValid(i_rFileName)) {
throw lang::IllegalArgumentException(
@@ -975,8 +967,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::removeMetadataFile(
const uno::Reference< rdf::XURI > & i_xGraphName)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- container::NoSuchElementException, std::exception)
{
try {
m_pImpl->m_xRepository->destroyGraph(i_xGraphName);
@@ -994,8 +984,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::addContentOrStylesFile(
const OUString & i_rFileName)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- container::ElementExistException, std::exception)
{
if (!isFileNameValid(i_rFileName)) {
throw lang::IllegalArgumentException(
@@ -1014,8 +1002,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::removeContentOrStylesFile(
const OUString & i_rFileName)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- container::NoSuchElementException, std::exception)
{
if (!isFileNameValid(i_rFileName)) {
throw lang::IllegalArgumentException(
@@ -1054,8 +1040,6 @@ void SAL_CALL DocumentMetadataAccess::loadMetadataFromStorage(
const uno::Reference< embed::XStorage > & i_xStorage,
const uno::Reference<rdf::XURI> & i_xBaseURI,
const uno::Reference<task::XInteractionHandler> & i_xHandler)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
if (!i_xStorage.is()) {
throw lang::IllegalArgumentException(
@@ -1157,8 +1141,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL DocumentMetadataAccess::storeMetadataToStorage(
const uno::Reference< embed::XStorage > & i_xStorage)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
if (!i_xStorage.is()) {
throw lang::IllegalArgumentException(
@@ -1225,8 +1207,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::loadMetadataFromMedium(
const uno::Sequence< beans::PropertyValue > & i_rMedium)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
uno::Reference<io::XInputStream> xIn;
utl::MediaDescriptor md(i_rMedium);
@@ -1284,8 +1264,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::storeMetadataToMedium(
const uno::Sequence< beans::PropertyValue > & i_rMedium)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
utl::MediaDescriptor md(i_rMedium);
OUString URL;
diff --git a/sfx2/source/doc/Metadatable.cxx b/sfx2/source/doc/Metadatable.cxx
index cd379584eb3e..86d2f7eb0d19 100644
--- a/sfx2/source/doc/Metadatable.cxx
+++ b/sfx2/source/doc/Metadatable.cxx
@@ -1520,14 +1520,12 @@ Metadatable::JoinMetadatable(Metadatable const & i_rOther,
// css::rdf::XNode:
OUString SAL_CALL MetadatableMixin::getStringValue()
- throw (css::uno::RuntimeException, std::exception)
{
return getNamespace() + getLocalName();
}
// css::rdf::XURI:
OUString SAL_CALL MetadatableMixin::getLocalName()
- throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
beans::StringPair mdref( getMetadataReference() );
@@ -1544,7 +1542,6 @@ OUString SAL_CALL MetadatableMixin::getLocalName()
}
OUString SAL_CALL MetadatableMixin::getNamespace()
- throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
const uno::Reference< frame::XModel > xModel( GetModel() );
@@ -1555,7 +1552,6 @@ OUString SAL_CALL MetadatableMixin::getNamespace()
// css::rdf::XMetadatable:
beans::StringPair SAL_CALL
MetadatableMixin::getMetadataReference()
-throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1573,7 +1569,6 @@ throw (uno::RuntimeException, std::exception)
void SAL_CALL
MetadatableMixin::setMetadataReference(
const beans::StringPair & i_rReference)
-throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1589,7 +1584,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
}
void SAL_CALL MetadatableMixin::ensureMetadataReference()
-throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index 82280b1cd027..6870e7fe1867 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -134,157 +134,97 @@ public:
SfxDocumentMetaData& operator=(const SfxDocumentMetaData&) = delete;
// css::lang::XServiceInfo:
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
virtual sal_Bool SAL_CALL supportsService(
- const OUString & ServiceName) throw (css::uno::RuntimeException, std::exception) override;
+ const OUString & ServiceName) override;
virtual css::uno::Sequence< OUString > SAL_CALL
- getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override;
+ getSupportedServiceNames() override;
// css::lang::XComponent:
- virtual void SAL_CALL dispose() throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL dispose() override;
// css::document::XDocumentProperties:
- virtual OUString SAL_CALL getAuthor()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAuthor(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getGenerator()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setGenerator(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::util::DateTime SAL_CALL getCreationDate()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setCreationDate(const css::util::DateTime & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getTitle()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTitle(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getSubject()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setSubject(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getDescription()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDescription(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getKeywords()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getAuthor() override;
+ virtual void SAL_CALL setAuthor(const OUString & the_value) override;
+ virtual OUString SAL_CALL getGenerator() override;
+ virtual void SAL_CALL setGenerator(const OUString & the_value) override;
+ virtual css::util::DateTime SAL_CALL getCreationDate() override;
+ virtual void SAL_CALL setCreationDate(const css::util::DateTime & the_value) override;
+ virtual OUString SAL_CALL getTitle() override;
+ virtual void SAL_CALL setTitle(const OUString & the_value) override;
+ virtual OUString SAL_CALL getSubject() override;
+ virtual void SAL_CALL setSubject(const OUString & the_value) override;
+ virtual OUString SAL_CALL getDescription() override;
+ virtual void SAL_CALL setDescription(const OUString & the_value) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getKeywords() override;
virtual void SAL_CALL setKeywords(
- const css::uno::Sequence< OUString > & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::lang::Locale SAL_CALL getLanguage()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setLanguage(const css::lang::Locale & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getModifiedBy()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setModifiedBy(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::util::DateTime SAL_CALL getModificationDate()
- throw (css::uno::RuntimeException, std::exception) override;
+ const css::uno::Sequence< OUString > & the_value) override;
+ virtual css::lang::Locale SAL_CALL getLanguage() override;
+ virtual void SAL_CALL setLanguage(const css::lang::Locale & the_value) override;
+ virtual OUString SAL_CALL getModifiedBy() override;
+ virtual void SAL_CALL setModifiedBy(const OUString & the_value) override;
+ virtual css::util::DateTime SAL_CALL getModificationDate() override;
virtual void SAL_CALL setModificationDate(
- const css::util::DateTime & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getPrintedBy()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setPrintedBy(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::util::DateTime SAL_CALL getPrintDate()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setPrintDate(const css::util::DateTime & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getTemplateName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTemplateName(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getTemplateURL()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTemplateURL(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::util::DateTime SAL_CALL getTemplateDate()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setTemplateDate(const css::util::DateTime & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getAutoloadURL()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoloadURL(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getAutoloadSecs()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setAutoloadSecs(::sal_Int32 the_value)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) override;
- virtual OUString SAL_CALL getDefaultTarget()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDefaultTarget(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
+ const css::util::DateTime & the_value) override;
+ virtual OUString SAL_CALL getPrintedBy() override;
+ virtual void SAL_CALL setPrintedBy(const OUString & the_value) override;
+ virtual css::util::DateTime SAL_CALL getPrintDate() override;
+ virtual void SAL_CALL setPrintDate(const css::util::DateTime & the_value) override;
+ virtual OUString SAL_CALL getTemplateName() override;
+ virtual void SAL_CALL setTemplateName(const OUString & the_value) override;
+ virtual OUString SAL_CALL getTemplateURL() override;
+ virtual void SAL_CALL setTemplateURL(const OUString & the_value) override;
+ virtual css::util::DateTime SAL_CALL getTemplateDate() override;
+ virtual void SAL_CALL setTemplateDate(const css::util::DateTime & the_value) override;
+ virtual OUString SAL_CALL getAutoloadURL() override;
+ virtual void SAL_CALL setAutoloadURL(const OUString & the_value) override;
+ virtual ::sal_Int32 SAL_CALL getAutoloadSecs() override;
+ virtual void SAL_CALL setAutoloadSecs(::sal_Int32 the_value) override;
+ virtual OUString SAL_CALL getDefaultTarget() override;
+ virtual void SAL_CALL setDefaultTarget(const OUString & the_value) override;
virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL
- getDocumentStatistics() throw (css::uno::RuntimeException, std::exception) override;
+ getDocumentStatistics() override;
virtual void SAL_CALL setDocumentStatistics(
- const css::uno::Sequence< css::beans::NamedValue > & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int16 SAL_CALL getEditingCycles()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEditingCycles(::sal_Int16 the_value)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) override;
- virtual ::sal_Int32 SAL_CALL getEditingDuration()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setEditingDuration(::sal_Int32 the_value)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) override;
- virtual void SAL_CALL resetUserData(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
+ const css::uno::Sequence< css::beans::NamedValue > & the_value) override;
+ virtual ::sal_Int16 SAL_CALL getEditingCycles() override;
+ virtual void SAL_CALL setEditingCycles(::sal_Int16 the_value) override;
+ virtual ::sal_Int32 SAL_CALL getEditingDuration() override;
+ virtual void SAL_CALL setEditingDuration(::sal_Int32 the_value) override;
+ virtual void SAL_CALL resetUserData(const OUString & the_value) override;
virtual css::uno::Reference< css::beans::XPropertyContainer > SAL_CALL
- getUserDefinedProperties() throw (css::uno::RuntimeException, std::exception) override;
+ getUserDefinedProperties() override;
virtual void SAL_CALL loadFromStorage(
const css::uno::Reference< css::embed::XStorage > & Storage,
- const css::uno::Sequence< css::beans::PropertyValue > & Medium)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException,
- css::io::WrongFormatException,
- css::lang::WrappedTargetException, css::io::IOException, std::exception) override;
+ const css::uno::Sequence< css::beans::PropertyValue > & Medium) override;
virtual void SAL_CALL loadFromMedium(const OUString & URL,
- const css::uno::Sequence< css::beans::PropertyValue > & Medium)
- throw (css::uno::RuntimeException,
- css::io::WrongFormatException,
- css::lang::WrappedTargetException, css::io::IOException, std::exception) override;
+ const css::uno::Sequence< css::beans::PropertyValue > & Medium) override;
virtual void SAL_CALL storeToStorage(
const css::uno::Reference< css::embed::XStorage > & Storage,
- const css::uno::Sequence< css::beans::PropertyValue > & Medium)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException, css::io::IOException, std::exception) override;
+ const css::uno::Sequence< css::beans::PropertyValue > & Medium) override;
virtual void SAL_CALL storeToMedium(const OUString & URL,
- const css::uno::Sequence< css::beans::PropertyValue > & Medium)
- throw (css::uno::RuntimeException,
- css::lang::WrappedTargetException, css::io::IOException, std::exception) override;
+ const css::uno::Sequence< css::beans::PropertyValue > & Medium) override;
// css::lang::XInitialization:
virtual void SAL_CALL initialize(
- const css::uno::Sequence< css::uno::Any > & aArguments)
- throw (css::uno::RuntimeException, css::uno::Exception, std::exception) override;
+ const css::uno::Sequence< css::uno::Any > & aArguments) override;
// css::util::XCloneable:
- virtual css::uno::Reference<css::util::XCloneable> SAL_CALL createClone()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference<css::util::XCloneable> SAL_CALL createClone() override;
// css::util::XModifiable:
- virtual sal_Bool SAL_CALL isModified( )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setModified( sal_Bool bModified )
- throw (css::beans::PropertyVetoException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isModified( ) override;
+ virtual void SAL_CALL setModified( sal_Bool bModified ) override;
// css::util::XModifyBroadcaster:
virtual void SAL_CALL addModifyListener(
- const css::uno::Reference< css::util::XModifyListener > & xListener)
- throw (css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::util::XModifyListener > & xListener) override;
virtual void SAL_CALL removeModifyListener(
- const css::uno::Reference< css::util::XModifyListener > & xListener)
- throw (css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::util::XModifyListener > & xListener) override;
// css::xml::sax::XSAXSerializable
virtual void SAL_CALL serialize(
const css::uno::Reference<css::xml::sax::XDocumentHandler>& i_xHandler,
- const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces) override;
protected:
virtual ~SfxDocumentMetaData() override {}
@@ -366,25 +306,25 @@ public:
explicit CompatWriterDocPropsImpl( css::uno::Reference< css::uno::XComponentContext > const & context) : CompatWriterDocPropsImpl_BASE( context ) {}
// XCompatWriterDocPropsImpl
- virtual OUString SAL_CALL getManager() throw (css::uno::RuntimeException, std::exception) override { return msManager; }
- virtual void SAL_CALL setManager( const OUString& _manager ) throw (css::uno::RuntimeException, std::exception) override { msManager = _manager; }
- virtual OUString SAL_CALL getCategory() throw (css::uno::RuntimeException, std::exception) override { return msCategory; }
- virtual void SAL_CALL setCategory( const OUString& _category ) throw (css::uno::RuntimeException, std::exception) override { msCategory = _category; }
- virtual OUString SAL_CALL getCompany() throw (css::uno::RuntimeException, std::exception) override { return msCompany; }
- virtual void SAL_CALL setCompany( const OUString& _company ) throw (css::uno::RuntimeException, std::exception) override { msCompany = _company; }
+ virtual OUString SAL_CALL getManager() override { return msManager; }
+ virtual void SAL_CALL setManager( const OUString& _manager ) override { msManager = _manager; }
+ virtual OUString SAL_CALL getCategory() override { return msCategory; }
+ virtual void SAL_CALL setCategory( const OUString& _category ) override { msCategory = _category; }
+ virtual OUString SAL_CALL getCompany() override { return msCompany; }
+ virtual void SAL_CALL setCompany( const OUString& _company ) override { msCompany = _company; }
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( ) throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getImplementationName( ) override
{
return OUString("CompatWriterDocPropsImpl");
}
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override
{
return cppu::supportsService(this, ServiceName);
}
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override
{
css::uno::Sequence<OUString> aServiceNames { "com.sun.star.writer.DocumentProperties" };
return aServiceNames;
@@ -655,7 +595,6 @@ SfxDocumentMetaData::getURLProperties(
/// @throws css::uno::RuntimeException
OUString SAL_CALL
getNodeText(const css::uno::Reference<css::xml::dom::XNode>& i_xNode)
- throw (css::uno::RuntimeException)
{
if (!i_xNode.is()) throw css::uno::RuntimeException(
OUString("SfxDocumentMetaData::getNodeText: argument is null"), i_xNode);
@@ -1333,21 +1272,19 @@ SfxDocumentMetaData::SfxDocumentMetaData(
// com.sun.star.uno.XServiceInfo:
OUString SAL_CALL
-SfxDocumentMetaData::getImplementationName() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getImplementationName()
{
return OUString("SfxDocumentMetaData");
}
sal_Bool SAL_CALL
SfxDocumentMetaData::supportsService(OUString const & serviceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, serviceName);
}
css::uno::Sequence< OUString > SAL_CALL
SfxDocumentMetaData::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence< OUString > s { "com.sun.star.document.DocumentProperties" };
return s;
@@ -1355,7 +1292,7 @@ SfxDocumentMetaData::getSupportedServiceNames()
// css::lang::XComponent:
-void SAL_CALL SfxDocumentMetaData::dispose() throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SfxDocumentMetaData::dispose()
{
::osl::MutexGuard g(m_aMutex);
if (!m_isInitialized) {
@@ -1375,21 +1312,20 @@ void SAL_CALL SfxDocumentMetaData::dispose() throw (css::uno::RuntimeException,
// css::document::XDocumentProperties:
OUString SAL_CALL
-SfxDocumentMetaData::getAuthor() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getAuthor()
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("meta:initial-creator");
}
void SAL_CALL SfxDocumentMetaData::setAuthor(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("meta:initial-creator", the_value);
}
OUString SAL_CALL
-SfxDocumentMetaData::getGenerator() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getGenerator()
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("meta:generator");
@@ -1397,13 +1333,12 @@ SfxDocumentMetaData::getGenerator() throw (css::uno::RuntimeException, std::exce
void SAL_CALL
SfxDocumentMetaData::setGenerator(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("meta:generator", the_value);
}
css::util::DateTime SAL_CALL
-SfxDocumentMetaData::getCreationDate() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getCreationDate()
{
::osl::MutexGuard g(m_aMutex);
return textToDateTimeDefault(getMetaText("meta:creation-date"));
@@ -1411,26 +1346,24 @@ SfxDocumentMetaData::getCreationDate() throw (css::uno::RuntimeException, std::e
void SAL_CALL
SfxDocumentMetaData::setCreationDate(const css::util::DateTime & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("meta:creation-date", dateTimeToText(the_value));
}
OUString SAL_CALL
-SfxDocumentMetaData::getTitle() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getTitle()
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("dc:title");
}
void SAL_CALL SfxDocumentMetaData::setTitle(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("dc:title", the_value);
}
OUString SAL_CALL
-SfxDocumentMetaData::getSubject() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getSubject()
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("dc:subject");
@@ -1438,13 +1371,12 @@ SfxDocumentMetaData::getSubject() throw (css::uno::RuntimeException, std::except
void SAL_CALL
SfxDocumentMetaData::setSubject(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("dc:subject", the_value);
}
OUString SAL_CALL
-SfxDocumentMetaData::getDescription() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getDescription()
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("dc:description");
@@ -1452,13 +1384,12 @@ SfxDocumentMetaData::getDescription() throw (css::uno::RuntimeException, std::ex
void SAL_CALL
SfxDocumentMetaData::setDescription(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("dc:description", the_value);
}
css::uno::Sequence< OUString >
-SAL_CALL SfxDocumentMetaData::getKeywords() throw (css::uno::RuntimeException, std::exception)
+SAL_CALL SfxDocumentMetaData::getKeywords()
{
::osl::MutexGuard g(m_aMutex);
return getMetaList("meta:keyword");
@@ -1467,7 +1398,6 @@ SAL_CALL SfxDocumentMetaData::getKeywords() throw (css::uno::RuntimeException, s
void SAL_CALL
SfxDocumentMetaData::setKeywords(
const css::uno::Sequence< OUString > & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::ClearableMutexGuard g(m_aMutex);
if (setMetaList("meta:keyword", the_value, nullptr)) {
@@ -1477,7 +1407,7 @@ SfxDocumentMetaData::setKeywords(
}
css::lang::Locale SAL_CALL
- SfxDocumentMetaData::getLanguage() throw (css::uno::RuntimeException, std::exception)
+ SfxDocumentMetaData::getLanguage()
{
::osl::MutexGuard g(m_aMutex);
css::lang::Locale loc( LanguageTag::convertToLocale( getMetaText("dc:language"), false));
@@ -1486,14 +1416,13 @@ css::lang::Locale SAL_CALL
void SAL_CALL
SfxDocumentMetaData::setLanguage(const css::lang::Locale & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
OUString text( LanguageTag::convertToBcp47( the_value, false));
setMetaTextAndNotify("dc:language", text);
}
OUString SAL_CALL
-SfxDocumentMetaData::getModifiedBy() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getModifiedBy()
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("dc:creator");
@@ -1501,13 +1430,12 @@ SfxDocumentMetaData::getModifiedBy() throw (css::uno::RuntimeException, std::exc
void SAL_CALL
SfxDocumentMetaData::setModifiedBy(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("dc:creator", the_value);
}
css::util::DateTime SAL_CALL
-SfxDocumentMetaData::getModificationDate() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getModificationDate()
{
::osl::MutexGuard g(m_aMutex);
return textToDateTimeDefault(getMetaText("dc:date"));
@@ -1515,13 +1443,12 @@ SfxDocumentMetaData::getModificationDate() throw (css::uno::RuntimeException, st
void SAL_CALL
SfxDocumentMetaData::setModificationDate(const css::util::DateTime & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("dc:date", dateTimeToText(the_value));
}
OUString SAL_CALL
-SfxDocumentMetaData::getPrintedBy() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getPrintedBy()
{
::osl::MutexGuard g(m_aMutex);
return getMetaText("meta:printed-by");
@@ -1529,13 +1456,12 @@ SfxDocumentMetaData::getPrintedBy() throw (css::uno::RuntimeException, std::exce
void SAL_CALL
SfxDocumentMetaData::setPrintedBy(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("meta:printed-by", the_value);
}
css::util::DateTime SAL_CALL
-SfxDocumentMetaData::getPrintDate() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getPrintDate()
{
::osl::MutexGuard g(m_aMutex);
return textToDateTimeDefault(getMetaText("meta:print-date"));
@@ -1543,13 +1469,12 @@ SfxDocumentMetaData::getPrintDate() throw (css::uno::RuntimeException, std::exce
void SAL_CALL
SfxDocumentMetaData::setPrintDate(const css::util::DateTime & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
setMetaTextAndNotify("meta:print-date", dateTimeToText(the_value));
}
OUString SAL_CALL
-SfxDocumentMetaData::getTemplateName() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getTemplateName()
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -1558,7 +1483,6 @@ SfxDocumentMetaData::getTemplateName() throw (css::uno::RuntimeException, std::e
void SAL_CALL
SfxDocumentMetaData::setTemplateName(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::ClearableMutexGuard g(m_aMutex);
checkInit();
@@ -1570,7 +1494,7 @@ SfxDocumentMetaData::setTemplateName(const OUString & the_value)
}
OUString SAL_CALL
-SfxDocumentMetaData::getTemplateURL() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getTemplateURL()
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -1579,7 +1503,6 @@ SfxDocumentMetaData::getTemplateURL() throw (css::uno::RuntimeException, std::ex
void SAL_CALL
SfxDocumentMetaData::setTemplateURL(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::ClearableMutexGuard g(m_aMutex);
checkInit();
@@ -1591,7 +1514,7 @@ SfxDocumentMetaData::setTemplateURL(const OUString & the_value)
}
css::util::DateTime SAL_CALL
-SfxDocumentMetaData::getTemplateDate() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getTemplateDate()
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -1600,7 +1523,6 @@ SfxDocumentMetaData::getTemplateDate() throw (css::uno::RuntimeException, std::e
void SAL_CALL
SfxDocumentMetaData::setTemplateDate(const css::util::DateTime & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::ClearableMutexGuard g(m_aMutex);
checkInit();
@@ -1612,7 +1534,7 @@ SfxDocumentMetaData::setTemplateDate(const css::util::DateTime & the_value)
}
OUString SAL_CALL
-SfxDocumentMetaData::getAutoloadURL() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getAutoloadURL()
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -1621,7 +1543,6 @@ SfxDocumentMetaData::getAutoloadURL() throw (css::uno::RuntimeException, std::ex
void SAL_CALL
SfxDocumentMetaData::setAutoloadURL(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::ClearableMutexGuard g(m_aMutex);
checkInit();
@@ -1633,7 +1554,7 @@ SfxDocumentMetaData::setAutoloadURL(const OUString & the_value)
}
::sal_Int32 SAL_CALL
-SfxDocumentMetaData::getAutoloadSecs() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getAutoloadSecs()
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -1642,7 +1563,6 @@ SfxDocumentMetaData::getAutoloadSecs() throw (css::uno::RuntimeException, std::e
void SAL_CALL
SfxDocumentMetaData::setAutoloadSecs(::sal_Int32 the_value)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception)
{
if (the_value < 0) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::setAutoloadSecs: argument is negative"),
@@ -1657,7 +1577,7 @@ SfxDocumentMetaData::setAutoloadSecs(::sal_Int32 the_value)
}
OUString SAL_CALL
-SfxDocumentMetaData::getDefaultTarget() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getDefaultTarget()
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -1666,7 +1586,6 @@ SfxDocumentMetaData::getDefaultTarget() throw (css::uno::RuntimeException, std::
void SAL_CALL
SfxDocumentMetaData::setDefaultTarget(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::ClearableMutexGuard g(m_aMutex);
checkInit();
@@ -1678,7 +1597,7 @@ SfxDocumentMetaData::setDefaultTarget(const OUString & the_value)
}
css::uno::Sequence< css::beans::NamedValue > SAL_CALL
-SfxDocumentMetaData::getDocumentStatistics() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getDocumentStatistics()
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -1706,7 +1625,6 @@ SfxDocumentMetaData::getDocumentStatistics() throw (css::uno::RuntimeException,
void SAL_CALL
SfxDocumentMetaData::setDocumentStatistics(
const css::uno::Sequence< css::beans::NamedValue > & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::ClearableMutexGuard g(m_aMutex);
checkInit();
@@ -1736,7 +1654,7 @@ SfxDocumentMetaData::setDocumentStatistics(
}
::sal_Int16 SAL_CALL
-SfxDocumentMetaData::getEditingCycles() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getEditingCycles()
{
::osl::MutexGuard g(m_aMutex);
OUString text = getMetaText("meta:editing-cycles");
@@ -1751,7 +1669,6 @@ SfxDocumentMetaData::getEditingCycles() throw (css::uno::RuntimeException, std::
void SAL_CALL
SfxDocumentMetaData::setEditingCycles(::sal_Int16 the_value)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception)
{
if (the_value < 0) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::setEditingCycles: argument is negative"),
@@ -1762,7 +1679,7 @@ SfxDocumentMetaData::setEditingCycles(::sal_Int16 the_value)
}
::sal_Int32 SAL_CALL
-SfxDocumentMetaData::getEditingDuration() throw (css::uno::RuntimeException, std::exception)
+SfxDocumentMetaData::getEditingDuration()
{
::osl::MutexGuard g(m_aMutex);
return textToDuration(getMetaText("meta:editing-duration"));
@@ -1770,7 +1687,6 @@ SfxDocumentMetaData::getEditingDuration() throw (css::uno::RuntimeException, std
void SAL_CALL
SfxDocumentMetaData::setEditingDuration(::sal_Int32 the_value)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception)
{
if (the_value < 0) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::setEditingDuration: argument is negative"),
@@ -1780,7 +1696,6 @@ SfxDocumentMetaData::setEditingDuration(::sal_Int32 the_value)
void SAL_CALL
SfxDocumentMetaData::resetUserData(const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::ClearableMutexGuard g(m_aMutex);
@@ -1807,7 +1722,6 @@ SfxDocumentMetaData::resetUserData(const OUString & the_value)
css::uno::Reference< css::beans::XPropertyContainer > SAL_CALL
SfxDocumentMetaData::getUserDefinedProperties()
- throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -1820,9 +1734,6 @@ void SAL_CALL
SfxDocumentMetaData::loadFromStorage(
const css::uno::Reference< css::embed::XStorage > & xStorage,
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException,
- css::io::WrongFormatException,
- css::lang::WrappedTargetException, css::io::IOException, std::exception)
{
if (!xStorage.is()) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::loadFromStorage: argument is null"), *this, 0);
@@ -1891,8 +1802,6 @@ void SAL_CALL
SfxDocumentMetaData::storeToStorage(
const css::uno::Reference< css::embed::XStorage > & xStorage,
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException, css::io::IOException, std::exception)
{
if (!xStorage.is()) throw css::lang::IllegalArgumentException(
OUString("SfxDocumentMetaData::storeToStorage:"
@@ -1965,8 +1874,6 @@ SfxDocumentMetaData::storeToStorage(
void SAL_CALL
SfxDocumentMetaData::loadFromMedium(const OUString & URL,
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
- throw (css::uno::RuntimeException, css::io::WrongFormatException,
- css::lang::WrappedTargetException, css::io::IOException, std::exception)
{
css::uno::Reference<css::io::XInputStream> xIn;
utl::MediaDescriptor md(Medium);
@@ -2008,8 +1915,6 @@ SfxDocumentMetaData::loadFromMedium(const OUString & URL,
void SAL_CALL
SfxDocumentMetaData::storeToMedium(const OUString & URL,
const css::uno::Sequence< css::beans::PropertyValue > & Medium)
- throw (css::uno::RuntimeException,
- css::lang::WrappedTargetException, css::io::IOException, std::exception)
{
utl::MediaDescriptor md(Medium);
if (!URL.isEmpty()) {
@@ -2056,7 +1961,6 @@ SfxDocumentMetaData::storeToMedium(const OUString & URL,
// css::lang::XInitialization:
void SAL_CALL SfxDocumentMetaData::initialize( const css::uno::Sequence< css::uno::Any > & aArguments)
- throw (css::uno::RuntimeException, css::uno::Exception, std::exception)
{
// possible arguments:
// - no argument: default initialization (empty DOM)
@@ -2094,7 +1998,6 @@ void SAL_CALL SfxDocumentMetaData::initialize( const css::uno::Sequence< css::un
// css::util::XCloneable:
css::uno::Reference<css::util::XCloneable> SAL_CALL
SfxDocumentMetaData::createClone()
- throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -2125,7 +2028,6 @@ SfxDocumentMetaData::createClone()
// css::util::XModifiable:
sal_Bool SAL_CALL SfxDocumentMetaData::isModified( )
- throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -2135,7 +2037,6 @@ sal_Bool SAL_CALL SfxDocumentMetaData::isModified( )
}
void SAL_CALL SfxDocumentMetaData::setModified( sal_Bool bModified )
- throw (css::beans::PropertyVetoException, css::uno::RuntimeException, std::exception)
{
css::uno::Reference<css::util::XModifiable> xMB;
{ // do not lock mutex while notifying (#i93514#) to prevent deadlock
@@ -2171,7 +2072,6 @@ void SAL_CALL SfxDocumentMetaData::setModified( sal_Bool bModified )
// css::util::XModifyBroadcaster:
void SAL_CALL SfxDocumentMetaData::addModifyListener(
const css::uno::Reference< css::util::XModifyListener > & xListener)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -2185,7 +2085,6 @@ void SAL_CALL SfxDocumentMetaData::addModifyListener(
void SAL_CALL SfxDocumentMetaData::removeModifyListener(
const css::uno::Reference< css::util::XModifyListener > & xListener)
- throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard g(m_aMutex);
checkInit();
@@ -2201,7 +2100,6 @@ void SAL_CALL SfxDocumentMetaData::removeModifyListener(
void SAL_CALL SfxDocumentMetaData::serialize(
const css::uno::Reference<css::xml::sax::XDocumentHandler>& i_xHandler,
const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception)
{
::osl::MutexGuard g(m_aMutex);
checkInit();
diff --git a/sfx2/source/doc/docfilt.cxx b/sfx2/source/doc/docfilt.cxx
index f77a2766dcaf..c7d1d219b609 100644
--- a/sfx2/source/doc/docfilt.cxx
+++ b/sfx2/source/doc/docfilt.cxx
@@ -180,8 +180,6 @@ OUString SfxFilter::GetTypeFromStorage( const SotStorage& rStg )
OUString SfxFilter::GetTypeFromStorage(
const uno::Reference<embed::XStorage>& xStorage, bool bTemplate )
- throw ( beans::UnknownPropertyException, lang::WrappedTargetException,
- uno::RuntimeException, std::exception )
{
SfxFilterMatcher aMatcher;
diff --git a/sfx2/source/doc/docstoragemodifylistener.cxx b/sfx2/source/doc/docstoragemodifylistener.cxx
index 4020bfc700f5..66672dc04d86 100644
--- a/sfx2/source/doc/docstoragemodifylistener.cxx
+++ b/sfx2/source/doc/docstoragemodifylistener.cxx
@@ -51,7 +51,7 @@ namespace sfx2
}
- void SAL_CALL DocumentStorageModifyListener::modified( const EventObject& /*aEvent*/ ) throw (RuntimeException, std::exception)
+ void SAL_CALL DocumentStorageModifyListener::modified( const EventObject& /*aEvent*/ )
{
::osl::Guard< comphelper::SolarMutex > aGuard( m_rMutex );
// storageIsModified must not contain any locking!
@@ -60,7 +60,7 @@ namespace sfx2
}
- void SAL_CALL DocumentStorageModifyListener::disposing( const EventObject& /*Source*/ ) throw (RuntimeException, std::exception)
+ void SAL_CALL DocumentStorageModifyListener::disposing( const EventObject& /*Source*/ )
{
// not interested in. In particular, we do *not* dispose ourself when a storage we're
// listening at is disposed. The reason here is that this listener instance is *reused*
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 48234d01bf94..38b87dc3ad6d 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -164,10 +164,10 @@ public:
: m_xInteractionHandler( rxInteractionHandler )
{}
- virtual uno::Reference<task::XInteractionHandler> SAL_CALL getInteractionHandler() throw (uno::RuntimeException, std::exception) override
+ virtual uno::Reference<task::XInteractionHandler> SAL_CALL getInteractionHandler() override
{ return m_xInteractionHandler; }
- virtual uno::Reference<ucb::XProgressHandler> SAL_CALL getProgressHandler() throw (uno::RuntimeException, std::exception) override
+ virtual uno::Reference<ucb::XProgressHandler> SAL_CALL getProgressHandler() override
{ return m_xProgressHandler; }
};
@@ -2170,20 +2170,17 @@ class SfxDocTplService: public ::cppu::WeakImplHelper< css::lang::XLocalizable,
public:
explicit SfxDocTplService( const css::uno::Reference < uno::XComponentContext >& xContext );
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getImplementationName() override
{
return OUString("com.sun.star.comp.sfx2.DocumentTemplates");
}
- 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
{
return cppu::supportsService(this, ServiceName);
}
- virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.DocumentTemplates" };
return aSeq;
@@ -2191,27 +2188,27 @@ public:
// --- XLocalizable ---
- void SAL_CALL setLocale( const css::lang::Locale & eLocale ) throw( css::uno::RuntimeException, std::exception ) override;
- css::lang::Locale SAL_CALL getLocale() throw( css::uno::RuntimeException, std::exception ) override;
+ void SAL_CALL setLocale( const css::lang::Locale & eLocale ) override;
+ css::lang::Locale SAL_CALL getLocale() override;
// --- XDocumentTemplates ---
- css::uno::Reference< css::ucb::XContent > SAL_CALL getContent() throw( css::uno::RuntimeException, std::exception ) override;
+ css::uno::Reference< css::ucb::XContent > SAL_CALL getContent() override;
sal_Bool SAL_CALL storeTemplate( const OUString& GroupName,
const OUString& TemplateName,
- const css::uno::Reference< css::frame::XStorable >& Storable ) throw( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::frame::XStorable >& Storable ) override;
sal_Bool SAL_CALL addTemplate( const OUString& GroupName,
const OUString& TemplateName,
- const OUString& SourceURL ) throw( css::uno::RuntimeException, std::exception ) override;
+ const OUString& SourceURL ) override;
sal_Bool SAL_CALL removeTemplate( const OUString& GroupName,
- const OUString& TemplateName ) throw( css::uno::RuntimeException, std::exception ) override;
+ const OUString& TemplateName ) override;
sal_Bool SAL_CALL renameTemplate( const OUString& GroupName,
const OUString& OldTemplateName,
- const OUString& NewTemplateName ) throw( css::uno::RuntimeException, std::exception ) override;
- sal_Bool SAL_CALL addGroup( const OUString& GroupName ) throw( css::uno::RuntimeException, std::exception ) override;
- sal_Bool SAL_CALL removeGroup( const OUString& GroupName ) throw( css::uno::RuntimeException, std::exception ) override;
+ const OUString& NewTemplateName ) override;
+ sal_Bool SAL_CALL addGroup( const OUString& GroupName ) override;
+ sal_Bool SAL_CALL removeGroup( const OUString& GroupName ) override;
sal_Bool SAL_CALL renameGroup( const OUString& OldGroupName,
- const OUString& NewGroupName ) throw( css::uno::RuntimeException, std::exception ) override;
- void SAL_CALL update() throw( css::uno::RuntimeException, std::exception ) override;
+ const OUString& NewGroupName ) override;
+ void SAL_CALL update() override;
};
@@ -2226,14 +2223,12 @@ SfxDocTplService::SfxDocTplService( const uno::Reference< XComponentContext >& x
lang::Locale SAL_CALL SfxDocTplService::getLocale()
- throw( uno::RuntimeException, std::exception )
{
return pImp->getLocale();
}
void SAL_CALL SfxDocTplService::setLocale( const lang::Locale & rLocale )
- throw( uno::RuntimeException, std::exception )
{
pImp->setLocale( rLocale );
}
@@ -2242,7 +2237,6 @@ void SAL_CALL SfxDocTplService::setLocale( const lang::Locale & rLocale )
//--- XDocumentTemplates ---
uno::Reference< ucb::XContent > SAL_CALL SfxDocTplService::getContent()
- throw( uno::RuntimeException, std::exception )
{
if ( pImp->init() )
return pImp->getContent().get();
@@ -2254,7 +2248,6 @@ uno::Reference< ucb::XContent > SAL_CALL SfxDocTplService::getContent()
sal_Bool SAL_CALL SfxDocTplService::storeTemplate( const OUString& GroupName,
const OUString& TemplateName,
const uno::Reference< frame::XStorable >& Storable )
- throw( uno::RuntimeException, std::exception )
{
if ( pImp->init() )
return pImp->storeTemplate( GroupName, TemplateName, Storable );
@@ -2266,7 +2259,6 @@ sal_Bool SAL_CALL SfxDocTplService::storeTemplate( const OUString& GroupName,
sal_Bool SAL_CALL SfxDocTplService::addTemplate( const OUString& rGroupName,
const OUString& rTemplateName,
const OUString& rSourceURL )
- throw( uno::RuntimeException, std::exception )
{
if ( pImp->init() )
return pImp->addTemplate( rGroupName, rTemplateName, rSourceURL );
@@ -2277,7 +2269,6 @@ sal_Bool SAL_CALL SfxDocTplService::addTemplate( const OUString& rGroupName,
sal_Bool SAL_CALL SfxDocTplService::removeTemplate( const OUString& rGroupName,
const OUString& rTemplateName )
- throw( uno::RuntimeException, std::exception )
{
if ( pImp->init() )
return pImp->removeTemplate( rGroupName, rTemplateName );
@@ -2289,7 +2280,6 @@ sal_Bool SAL_CALL SfxDocTplService::removeTemplate( const OUString& rGroupName,
sal_Bool SAL_CALL SfxDocTplService::renameTemplate( const OUString& rGroupName,
const OUString& rOldName,
const OUString& rNewName )
- throw( uno::RuntimeException, std::exception )
{
if ( rOldName == rNewName )
return true;
@@ -2302,7 +2292,6 @@ sal_Bool SAL_CALL SfxDocTplService::renameTemplate( const OUString& rGroupName,
sal_Bool SAL_CALL SfxDocTplService::addGroup( const OUString& rGroupName )
- throw( uno::RuntimeException, std::exception )
{
if ( pImp->init() )
return pImp->addGroup( rGroupName );
@@ -2312,7 +2301,6 @@ sal_Bool SAL_CALL SfxDocTplService::addGroup( const OUString& rGroupName )
sal_Bool SAL_CALL SfxDocTplService::removeGroup( const OUString& rGroupName )
- throw( uno::RuntimeException, std::exception )
{
if ( pImp->init() )
return pImp->removeGroup( rGroupName );
@@ -2323,7 +2311,6 @@ sal_Bool SAL_CALL SfxDocTplService::removeGroup( const OUString& rGroupName )
sal_Bool SAL_CALL SfxDocTplService::renameGroup( const OUString& rOldName,
const OUString& rNewName )
- throw( uno::RuntimeException, std::exception )
{
if ( rOldName == rNewName )
return true;
@@ -2336,7 +2323,6 @@ sal_Bool SAL_CALL SfxDocTplService::renameGroup( const OUString& rOldName,
void SAL_CALL SfxDocTplService::update()
- throw( uno::RuntimeException, std::exception )
{
if ( pImp->init() )
pImp->update();
diff --git a/sfx2/source/doc/doctemplateslocal.cxx b/sfx2/source/doc/doctemplateslocal.cxx
index cb82f0d24e16..4e681f1079fe 100644
--- a/sfx2/source/doc/doctemplateslocal.cxx
+++ b/sfx2/source/doc/doctemplateslocal.cxx
@@ -34,7 +34,6 @@ using namespace ::com::sun::star;
std::vector< beans::StringPair > DocTemplLocaleHelper::ReadGroupLocalizationSequence( const uno::Reference< io::XInputStream >& xInStream, const uno::Reference< uno::XComponentContext >& xContext )
- throw( uno::Exception )
{
OUString aStringID = "groupuinames.xml";
return ReadLocalizationSequence_Impl( xInStream, aStringID, xContext );
@@ -42,7 +41,6 @@ std::vector< beans::StringPair > DocTemplLocaleHelper::ReadGroupLocalizationSequ
void SAL_CALL DocTemplLocaleHelper::WriteGroupLocalizationSequence( const uno::Reference< io::XOutputStream >& xOutStream, const std::vector< beans::StringPair >& aSequence, const uno::Reference< uno::XComponentContext >& xContext )
- throw( uno::Exception )
{
if ( !xOutStream.is() )
throw uno::RuntimeException();
@@ -89,7 +87,6 @@ void SAL_CALL DocTemplLocaleHelper::WriteGroupLocalizationSequence( const uno::R
std::vector< beans::StringPair > SAL_CALL DocTemplLocaleHelper::ReadLocalizationSequence_Impl( const uno::Reference< io::XInputStream >& xInStream, const OUString& aStringID, const uno::Reference< uno::XComponentContext >& xContext )
- throw( uno::Exception )
{
if ( !xContext.is() || !xInStream.is() )
throw uno::RuntimeException();
@@ -133,19 +130,16 @@ std::vector< beans::StringPair > const & DocTemplLocaleHelper::GetParsingResult(
void SAL_CALL DocTemplLocaleHelper::startDocument()
- throw(xml::sax::SAXException, uno::RuntimeException, std::exception)
{
}
void SAL_CALL DocTemplLocaleHelper::endDocument()
- throw(xml::sax::SAXException, uno::RuntimeException, std::exception)
{
}
void SAL_CALL DocTemplLocaleHelper::startElement( const OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs )
- throw( xml::sax::SAXException, uno::RuntimeException, std::exception )
{
if ( aName == m_aGroupListElement )
{
@@ -189,7 +183,6 @@ void SAL_CALL DocTemplLocaleHelper::startElement( const OUString& aName, const u
void SAL_CALL DocTemplLocaleHelper::endElement( const OUString& aName )
- throw( xml::sax::SAXException, uno::RuntimeException, std::exception )
{
if ( m_aElementsSeq.empty() )
throw xml::sax::SAXException(); // TODO: no other end elements expected!
@@ -202,25 +195,21 @@ void SAL_CALL DocTemplLocaleHelper::endElement( const OUString& aName )
void SAL_CALL DocTemplLocaleHelper::characters( const OUString& /*aChars*/ )
- throw(xml::sax::SAXException, uno::RuntimeException, std::exception)
{
}
void SAL_CALL DocTemplLocaleHelper::ignorableWhitespace( const OUString& /*aWhitespaces*/ )
- throw(xml::sax::SAXException, uno::RuntimeException, std::exception)
{
}
void SAL_CALL DocTemplLocaleHelper::processingInstruction( const OUString& /*aTarget*/, const OUString& /*aData*/ )
- throw(xml::sax::SAXException, uno::RuntimeException, std::exception)
{
}
void SAL_CALL DocTemplLocaleHelper::setDocumentLocator( const uno::Reference< xml::sax::XLocator >& /*xLocator*/ )
- throw(xml::sax::SAXException, uno::RuntimeException, std::exception)
{
}
diff --git a/sfx2/source/doc/doctemplateslocal.hxx b/sfx2/source/doc/doctemplateslocal.hxx
index aa9db5802cf8..16167e1acc1c 100644
--- a/sfx2/source/doc/doctemplateslocal.hxx
+++ b/sfx2/source/doc/doctemplateslocal.hxx
@@ -43,8 +43,7 @@ class DocTemplLocaleHelper : public cppu::WeakImplHelper < css::xml::sax::XDocum
std::vector< css::beans::StringPair > const & GetParsingResult();
/// @throws css::uno::Exception
- static std::vector< css::beans::StringPair > SAL_CALL ReadLocalizationSequence_Impl( const css::uno::Reference< css::io::XInputStream >& xInStream, const OUString& aStringID, const css::uno::Reference< css::uno::XComponentContext >& xContext )
- throw( css::uno::Exception );
+ static std::vector< css::beans::StringPair > SAL_CALL ReadLocalizationSequence_Impl( const css::uno::Reference< css::io::XInputStream >& xInStream, const OUString& aStringID, const css::uno::Reference< css::uno::XComponentContext >& xContext );
public:
virtual ~DocTemplLocaleHelper() override;
@@ -55,8 +54,7 @@ public:
std::vector< css::beans::StringPair >
ReadGroupLocalizationSequence(
const css::uno::Reference< css::io::XInputStream >& xInStream,
- const css::uno::Reference< css::uno::XComponentContext >& xContext )
- throw( css::uno::Exception );
+ const css::uno::Reference< css::uno::XComponentContext >& xContext );
// writes sequence of elements ( GroupName, GroupUIName )
/// @throws css::uno::Exception
@@ -64,18 +62,17 @@ public:
void SAL_CALL WriteGroupLocalizationSequence(
const css::uno::Reference< css::io::XOutputStream >& xOutStream,
const std::vector< css::beans::StringPair >& aSequence,
- const css::uno::Reference< css::uno::XComponentContext >& xContext )
- throw( css::uno::Exception );
+ const css::uno::Reference< css::uno::XComponentContext >& xContext );
// XDocumentHandler
- virtual void SAL_CALL startDocument() throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL endDocument() throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL startElement( const OUString& aName, const css::uno::Reference< css::xml::sax::XAttributeList >& xAttribs ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL endElement( const OUString& aName ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL characters( const OUString& aChars ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL processingInstruction( const OUString& aTarget, const OUString& aData ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDocumentLocator( const css::uno::Reference< css::xml::sax::XLocator >& xLocator ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL startDocument() override;
+ virtual void SAL_CALL endDocument() override;
+ virtual void SAL_CALL startElement( const OUString& aName, const css::uno::Reference< css::xml::sax::XAttributeList >& xAttribs ) override;
+ virtual void SAL_CALL endElement( const OUString& aName ) override;
+ virtual void SAL_CALL characters( const OUString& aChars ) override;
+ virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces ) override;
+ virtual void SAL_CALL processingInstruction( const OUString& aTarget, const OUString& aData ) override;
+ virtual void SAL_CALL setDocumentLocator( const css::uno::Reference< css::xml::sax::XLocator >& xLocator ) override;
};
#endif
diff --git a/sfx2/source/doc/docundomanager.cxx b/sfx2/source/doc/docundomanager.cxx
index 290b861a57bf..27022fe80b22 100644
--- a/sfx2/source/doc/docundomanager.cxx
+++ b/sfx2/source/doc/docundomanager.cxx
@@ -245,7 +245,7 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::enterUndoContext( const OUString& i_title ) throw (RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::enterUndoContext( const OUString& i_title )
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -255,7 +255,7 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::enterHiddenUndoContext( ) throw (EmptyUndoStackException, RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::enterHiddenUndoContext( )
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -265,7 +265,7 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::leaveUndoContext( ) throw (InvalidStateException, RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::leaveUndoContext( )
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -275,7 +275,7 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::addUndoAction( const Reference< XUndoAction >& i_action ) throw (RuntimeException, IllegalArgumentException, std::exception)
+ void SAL_CALL DocumentUndoManager::addUndoAction( const Reference< XUndoAction >& i_action )
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -285,7 +285,7 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::undo( ) throw (EmptyUndoStackException, UndoContextNotClosedException, UndoFailedException, RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::undo( )
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -295,7 +295,7 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::redo( ) throw (EmptyUndoStackException, UndoContextNotClosedException, UndoFailedException, RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::redo( )
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -305,49 +305,49 @@ namespace sfx2
}
- sal_Bool SAL_CALL DocumentUndoManager::isUndoPossible( ) throw (RuntimeException, std::exception)
+ sal_Bool SAL_CALL DocumentUndoManager::isUndoPossible( )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.isUndoPossible();
}
- sal_Bool SAL_CALL DocumentUndoManager::isRedoPossible( ) throw (RuntimeException, std::exception)
+ sal_Bool SAL_CALL DocumentUndoManager::isRedoPossible( )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.isRedoPossible();
}
- OUString SAL_CALL DocumentUndoManager::getCurrentUndoActionTitle( ) throw (EmptyUndoStackException, RuntimeException, std::exception)
+ OUString SAL_CALL DocumentUndoManager::getCurrentUndoActionTitle( )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.getCurrentUndoActionTitle();
}
- OUString SAL_CALL DocumentUndoManager::getCurrentRedoActionTitle( ) throw (EmptyUndoStackException, RuntimeException, std::exception)
+ OUString SAL_CALL DocumentUndoManager::getCurrentRedoActionTitle( )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.getCurrentRedoActionTitle();
}
- Sequence< OUString > SAL_CALL DocumentUndoManager::getAllUndoActionTitles( ) throw (RuntimeException, std::exception)
+ Sequence< OUString > SAL_CALL DocumentUndoManager::getAllUndoActionTitles( )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.getAllUndoActionTitles();
}
- Sequence< OUString > SAL_CALL DocumentUndoManager::getAllRedoActionTitles( ) throw (RuntimeException, std::exception)
+ Sequence< OUString > SAL_CALL DocumentUndoManager::getAllRedoActionTitles( )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.getAllRedoActionTitles();
}
- void SAL_CALL DocumentUndoManager::clear( ) throw (UndoContextNotClosedException, RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::clear( )
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -357,7 +357,7 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::clearRedo( ) throw (UndoContextNotClosedException, RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::clearRedo( )
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -367,7 +367,7 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::reset() throw (RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::reset()
{
// SYNCHRONIZED --->
UndoManagerGuard aGuard( *this );
@@ -377,49 +377,49 @@ namespace sfx2
}
- void SAL_CALL DocumentUndoManager::lock( ) throw (RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::lock( )
{
UndoManagerGuard aGuard( *this );
m_pImpl->aUndoHelper.lock();
}
- void SAL_CALL DocumentUndoManager::unlock( ) throw (RuntimeException, NotLockedException, std::exception)
+ void SAL_CALL DocumentUndoManager::unlock( )
{
UndoManagerGuard aGuard( *this );
m_pImpl->aUndoHelper.unlock();
}
- sal_Bool SAL_CALL DocumentUndoManager::isLocked( ) throw (RuntimeException, std::exception)
+ sal_Bool SAL_CALL DocumentUndoManager::isLocked( )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.isLocked();
}
- void SAL_CALL DocumentUndoManager::addUndoManagerListener( const Reference< XUndoManagerListener >& i_listener ) throw (RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::addUndoManagerListener( const Reference< XUndoManagerListener >& i_listener )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.addUndoManagerListener( i_listener );
}
- void SAL_CALL DocumentUndoManager::removeUndoManagerListener( const Reference< XUndoManagerListener >& i_listener ) throw (RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::removeUndoManagerListener( const Reference< XUndoManagerListener >& i_listener )
{
UndoManagerGuard aGuard( *this );
return m_pImpl->aUndoHelper.removeUndoManagerListener( i_listener );
}
- Reference< XInterface > SAL_CALL DocumentUndoManager::getParent( ) throw (RuntimeException, std::exception)
+ Reference< XInterface > SAL_CALL DocumentUndoManager::getParent( )
{
UndoManagerGuard aGuard( *this );
return static_cast< XModel* >( &getBaseModel() );
}
- void SAL_CALL DocumentUndoManager::setParent( const Reference< XInterface >& i_parent ) throw (NoSupportException, RuntimeException, std::exception)
+ void SAL_CALL DocumentUndoManager::setParent( const Reference< XInterface >& i_parent )
{
(void)i_parent;
throw NoSupportException( OUString(), m_pImpl->getThis() );
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index e9c6fe1203e4..1ca63db3194a 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -65,44 +65,40 @@ class IFrameObject : public ::cppu::WeakImplHelper <
public:
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
- IFrameObject(const css::uno::Reference < css::uno::XComponentContext>& rxContext, const css::uno::Sequence< css::uno::Any >& aArguments)
- throw (css::uno::Exception, css::uno::RuntimeException);
+ IFrameObject(const css::uno::Reference < css::uno::XComponentContext>& rxContext, const css::uno::Sequence< css::uno::Any >& aArguments);
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getImplementationName() override
{
return OUString("com.sun.star.comp.sfx2.IFrameObject");
}
- 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
{
return cppu::supportsService(this, ServiceName);
}
- virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.SpecialEmbeddedObject" };
return aSeq;
}
virtual sal_Bool SAL_CALL load( const css::uno::Sequence < css::beans::PropertyValue >& lDescriptor,
- const css::uno::Reference < css::frame::XFrame >& xFrame ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL cancel() throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) throw( css::util::CloseVetoException, css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL addCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL removeCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw (css::uno::RuntimeException, std::exception) override ;
- virtual void SAL_CALL setTitle( const OUString& aTitle ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int16 SAL_CALL execute( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw (css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference < css::frame::XFrame >& xFrame ) override;
+ virtual void SAL_CALL cancel() override;
+ virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) override;
+ virtual void SAL_CALL addCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) override;
+ virtual void SAL_CALL removeCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) override ;
+ virtual void SAL_CALL setTitle( const OUString& aTitle ) override;
+ virtual ::sal_Int16 SAL_CALL execute( ) override;
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
+ virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) override;
+ virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) override;
+ virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) override;
+ virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) override;
+ virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
+ virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
};
class IFrameWindow_Impl : public vcl::Window
@@ -149,7 +145,6 @@ const SfxItemPropertyMapEntry* lcl_GetIFramePropertyMap_Impl()
}
IFrameObject::IFrameObject(const uno::Reference < uno::XComponentContext >& rxContext, const css::uno::Sequence< css::uno::Any >& aArguments)
- throw ( uno::Exception, uno::RuntimeException )
: mxContext( rxContext )
, maPropMap( lcl_GetIFramePropertyMap_Impl() )
{
@@ -160,7 +155,6 @@ IFrameObject::IFrameObject(const uno::Reference < uno::XComponentContext >& rxCo
sal_Bool SAL_CALL IFrameObject::load(
const uno::Sequence < css::beans::PropertyValue >& /*lDescriptor*/,
const uno::Reference < frame::XFrame >& xFrame )
-throw( uno::RuntimeException, std::exception )
{
if ( SvtMiscOptions().IsPluginsEnabled() )
{
@@ -206,7 +200,7 @@ throw( uno::RuntimeException, std::exception )
return false;
}
-void SAL_CALL IFrameObject::cancel() throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL IFrameObject::cancel()
{
try
{
@@ -220,31 +214,30 @@ void SAL_CALL IFrameObject::cancel() throw( css::uno::RuntimeException, std::exc
}
}
-void SAL_CALL IFrameObject::close( sal_Bool /*bDeliverOwnership*/ ) throw( css::util::CloseVetoException, css::uno::RuntimeException, std::exception )
+void SAL_CALL IFrameObject::close( sal_Bool /*bDeliverOwnership*/ )
{
}
-void SAL_CALL IFrameObject::addCloseListener( const css::uno::Reference < css::util::XCloseListener >& ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL IFrameObject::addCloseListener( const css::uno::Reference < css::util::XCloseListener >& )
{
}
-void SAL_CALL IFrameObject::removeCloseListener( const css::uno::Reference < css::util::XCloseListener >& ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL IFrameObject::removeCloseListener( const css::uno::Reference < css::util::XCloseListener >& )
{
}
-void SAL_CALL IFrameObject::disposing( const css::lang::EventObject& ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL IFrameObject::disposing( const css::lang::EventObject& )
{
cancel();
}
-uno::Reference< beans::XPropertySetInfo > SAL_CALL IFrameObject::getPropertySetInfo() throw( css::uno::RuntimeException, std::exception )
+uno::Reference< beans::XPropertySetInfo > SAL_CALL IFrameObject::getPropertySetInfo()
{
static uno::Reference< beans::XPropertySetInfo > xInfo = new SfxItemPropertySetInfo( maPropMap );
return xInfo;
}
void SAL_CALL IFrameObject::setPropertyValue(const OUString& aPropertyName, const uno::Any& aAny)
- throw ( beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName );
if( !pEntry )
@@ -325,7 +318,6 @@ void SAL_CALL IFrameObject::setPropertyValue(const OUString& aPropertyName, cons
}
uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName)
- throw ( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName );
if( !pEntry )
@@ -382,23 +374,23 @@ uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName)
return aAny;
}
-void SAL_CALL IFrameObject::addPropertyChangeListener(const OUString&, const css::uno::Reference< css::beans::XPropertyChangeListener > & ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL IFrameObject::addPropertyChangeListener(const OUString&, const css::uno::Reference< css::beans::XPropertyChangeListener > & )
{
}
-void SAL_CALL IFrameObject::removePropertyChangeListener(const OUString&, const css::uno::Reference< css::beans::XPropertyChangeListener > & ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL IFrameObject::removePropertyChangeListener(const OUString&, const css::uno::Reference< css::beans::XPropertyChangeListener > & )
{
}
-void SAL_CALL IFrameObject::addVetoableChangeListener(const OUString&, const css::uno::Reference< css::beans::XVetoableChangeListener > & ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL IFrameObject::addVetoableChangeListener(const OUString&, const css::uno::Reference< css::beans::XVetoableChangeListener > & )
{
}
-void SAL_CALL IFrameObject::removeVetoableChangeListener(const OUString&, const css::uno::Reference< css::beans::XVetoableChangeListener > & ) throw( css::uno::RuntimeException, std::exception )
+void SAL_CALL IFrameObject::removeVetoableChangeListener(const OUString&, const css::uno::Reference< css::beans::XVetoableChangeListener > & )
{
}
-::sal_Int16 SAL_CALL IFrameObject::execute() throw (css::uno::RuntimeException, std::exception)
+::sal_Int16 SAL_CALL IFrameObject::execute()
{
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
ScopedVclPtr<VclAbstractDialog> pDlg(pFact->CreateEditObjectDialog( ".uno:InsertObjectFloatingFrame", mxObj ));
@@ -407,7 +399,7 @@ void SAL_CALL IFrameObject::removeVetoableChangeListener(const OUString&, const
return 0;
}
-void SAL_CALL IFrameObject::setTitle( const OUString& ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL IFrameObject::setTitle( const OUString& )
{
}
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 902a2b0038b5..2e50c0a731e5 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -136,12 +136,11 @@ public:
void SetPreventClose( bool bPrevent ) { m_bPreventClose = bPrevent; }
- virtual void SAL_CALL queryClosing( const lang::EventObject& aEvent, sal_Bool bDeliverOwnership )
- throw ( uno::RuntimeException, util::CloseVetoException, std::exception ) override;
+ virtual void SAL_CALL queryClosing( const lang::EventObject& aEvent, sal_Bool bDeliverOwnership ) override;
- virtual void SAL_CALL notifyClosing( const lang::EventObject& aEvent ) throw ( uno::RuntimeException, std::exception ) override ;
+ virtual void SAL_CALL notifyClosing( const lang::EventObject& aEvent ) override ;
- virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) throw ( uno::RuntimeException, std::exception ) override ;
+ virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) override ;
} ;
@@ -152,7 +151,6 @@ SfxClosePreventer_Impl::SfxClosePreventer_Impl()
}
void SAL_CALL SfxClosePreventer_Impl::queryClosing( const lang::EventObject&, sal_Bool bDeliverOwnership )
- throw ( uno::RuntimeException, util::CloseVetoException, std::exception )
{
if ( m_bPreventClose )
{
@@ -163,10 +161,10 @@ void SAL_CALL SfxClosePreventer_Impl::queryClosing( const lang::EventObject&, sa
}
}
-void SAL_CALL SfxClosePreventer_Impl::notifyClosing( const lang::EventObject& ) throw ( uno::RuntimeException, std::exception )
+void SAL_CALL SfxClosePreventer_Impl::notifyClosing( const lang::EventObject& )
{}
-void SAL_CALL SfxClosePreventer_Impl::disposing( const lang::EventObject& ) throw ( uno::RuntimeException, std::exception )
+void SAL_CALL SfxClosePreventer_Impl::disposing( const lang::EventObject& )
{}
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index 61db73a28999..047719e137ca 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -153,25 +153,23 @@ class SfxModelListener_Impl : public ::cppu::WeakImplHelper< css::util::XCloseLi
SfxObjectShell* mpDoc;
public:
explicit SfxModelListener_Impl( SfxObjectShell* pDoc ) : mpDoc(pDoc) {};
- virtual void SAL_CALL queryClosing( const css::lang::EventObject& aEvent, sal_Bool bDeliverOwnership )
- throw ( css::uno::RuntimeException, css::util::CloseVetoException, std::exception) override ;
- virtual void SAL_CALL notifyClosing( const css::lang::EventObject& aEvent ) throw ( css::uno::RuntimeException, std::exception ) override ;
- virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw ( css::uno::RuntimeException, std::exception ) override ;
+ virtual void SAL_CALL queryClosing( const css::lang::EventObject& aEvent, sal_Bool bDeliverOwnership ) override ;
+ virtual void SAL_CALL notifyClosing( const css::lang::EventObject& aEvent ) override ;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) override ;
};
void SAL_CALL SfxModelListener_Impl::queryClosing( const css::lang::EventObject& , sal_Bool )
- throw ( css::uno::RuntimeException, css::util::CloseVetoException, std::exception)
{
}
-void SAL_CALL SfxModelListener_Impl::notifyClosing( const css::lang::EventObject& ) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL SfxModelListener_Impl::notifyClosing( const css::lang::EventObject& )
{
SolarMutexGuard aSolarGuard;
mpDoc->Broadcast( SfxHint(SfxHintId::Deinitializing) );
}
-void SAL_CALL SfxModelListener_Impl::disposing( const css::lang::EventObject& _rEvent ) throw ( css::uno::RuntimeException, std::exception )
+void SAL_CALL SfxModelListener_Impl::disposing( const css::lang::EventObject& _rEvent )
{
// am I ThisComponent in AppBasic?
SolarMutexGuard aSolarGuard;
diff --git a/sfx2/source/doc/ownsubfilterservice.cxx b/sfx2/source/doc/ownsubfilterservice.cxx
index d92692a62aec..530d8b8c7d5f 100644
--- a/sfx2/source/doc/ownsubfilterservice.cxx
+++ b/sfx2/source/doc/ownsubfilterservice.cxx
@@ -44,21 +44,19 @@ class OwnSubFilterService : public cppu::WeakImplHelper < document::XFilter
public:
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
- explicit OwnSubFilterService(const css::uno::Sequence< css::uno::Any >& aArguments)
- throw (uno::Exception, uno::RuntimeException);
+ explicit OwnSubFilterService(const css::uno::Sequence< css::uno::Any >& aArguments);
// XFilter
- virtual sal_Bool SAL_CALL filter( const uno::Sequence< beans::PropertyValue >& aDescriptor ) throw (uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL cancel() throw (uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL filter( const uno::Sequence< beans::PropertyValue >& aDescriptor ) override;
+ virtual void SAL_CALL cancel() override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( ) throw (uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (uno::RuntimeException, std::exception) override;
- virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};
OwnSubFilterService::OwnSubFilterService(const css::uno::Sequence< css::uno::Any >& aArguments)
- throw (uno::Exception, uno::RuntimeException)
: m_pObjectShell( nullptr )
{
if ( aArguments.getLength() != 2 )
@@ -82,7 +80,6 @@ OwnSubFilterService::OwnSubFilterService(const css::uno::Sequence< css::uno::Any
}
sal_Bool SAL_CALL OwnSubFilterService::filter( const uno::Sequence< beans::PropertyValue >& aDescriptor )
- throw (uno::RuntimeException, std::exception)
{
if ( !m_pObjectShell )
throw uno::RuntimeException();
@@ -91,25 +88,21 @@ sal_Bool SAL_CALL OwnSubFilterService::filter( const uno::Sequence< beans::Prope
}
void SAL_CALL OwnSubFilterService::cancel()
- throw (uno::RuntimeException, std::exception)
{
// not implemented
}
OUString SAL_CALL OwnSubFilterService::getImplementationName()
- throw ( uno::RuntimeException, std::exception )
{
return OUString("com.sun.star.comp.document.OwnSubFilter");
}
sal_Bool SAL_CALL OwnSubFilterService::supportsService( const OUString& ServiceName )
- throw ( uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL OwnSubFilterService::getSupportedServiceNames()
- throw ( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet(2);
aRet[0] = "com.sun.star.document.OwnSubFilter";
diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx
index 8ed498457bd9..b790e8ee1aad 100644
--- a/sfx2/source/doc/printhelper.cxx
+++ b/sfx2/source/doc/printhelper.cxx
@@ -103,10 +103,10 @@ class SfxPrintJob_Impl : public cppu::WeakImplHelper
public:
explicit SfxPrintJob_Impl( IMPL_PrintListener_DataContainer* pData );
- virtual Sequence< css::beans::PropertyValue > SAL_CALL getPrintOptions( ) throw (RuntimeException, std::exception) override;
- virtual Sequence< css::beans::PropertyValue > SAL_CALL getPrinter( ) throw (RuntimeException, std::exception) override;
- virtual Reference< css::view::XPrintable > SAL_CALL getPrintable( ) throw (RuntimeException, std::exception) override;
- virtual void SAL_CALL cancelJob() throw (RuntimeException, std::exception) override;
+ virtual Sequence< css::beans::PropertyValue > SAL_CALL getPrintOptions( ) override;
+ virtual Sequence< css::beans::PropertyValue > SAL_CALL getPrinter( ) override;
+ virtual Reference< css::view::XPrintable > SAL_CALL getPrintable( ) override;
+ virtual void SAL_CALL cancelJob() override;
};
SfxPrintJob_Impl::SfxPrintJob_Impl( IMPL_PrintListener_DataContainer* pData )
@@ -114,12 +114,12 @@ SfxPrintJob_Impl::SfxPrintJob_Impl( IMPL_PrintListener_DataContainer* pData )
{
}
-Sequence< css::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrintOptions() throw (RuntimeException, std::exception)
+Sequence< css::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrintOptions()
{
return m_pData->m_aPrintOptions;
}
-Sequence< css::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrinter() throw (RuntimeException, std::exception)
+Sequence< css::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrinter()
{
if( m_pData->m_pObjectShell.Is() )
{
@@ -130,13 +130,13 @@ Sequence< css::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrinter() th
return Sequence< css::beans::PropertyValue >();
}
-Reference< css::view::XPrintable > SAL_CALL SfxPrintJob_Impl::getPrintable() throw (RuntimeException, std::exception)
+Reference< css::view::XPrintable > SAL_CALL SfxPrintJob_Impl::getPrintable()
{
Reference < view::XPrintable > xPrintable( m_pData->m_pObjectShell.Is() ? m_pData->m_pObjectShell->GetModel() : nullptr, UNO_QUERY );
return xPrintable;
}
-void SAL_CALL SfxPrintJob_Impl::cancelJob() throw (RuntimeException, std::exception)
+void SAL_CALL SfxPrintJob_Impl::cancelJob()
{
// FIXME: how to cancel PrintJob via API?!
if( m_pData->m_pObjectShell.Is() )
@@ -148,7 +148,7 @@ SfxPrintHelper::SfxPrintHelper()
m_pData.reset(new IMPL_PrintListener_DataContainer(m_aMutex));
}
-void SAL_CALL SfxPrintHelper::initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
+void SAL_CALL SfxPrintHelper::initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
{
if ( aArguments.getLength() )
{
@@ -252,7 +252,7 @@ namespace
// XPrintable
-uno::Sequence< beans::PropertyValue > SAL_CALL SfxPrintHelper::getPrinter() throw(css::uno::RuntimeException, std::exception)
+uno::Sequence< beans::PropertyValue > SAL_CALL SfxPrintHelper::getPrinter()
{
// object already disposed?
SolarMutexGuard aGuard;
@@ -450,7 +450,6 @@ void SfxPrintHelper::impl_setPrinter(const uno::Sequence< beans::PropertyValue >
}
void SAL_CALL SfxPrintHelper::setPrinter(const uno::Sequence< beans::PropertyValue >& rPrinter)
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
{
// object already disposed?
SolarMutexGuard aGuard;
@@ -583,7 +582,6 @@ class ImplUCBPrintWatcher : public ::osl::Thread
// XPrintable
void SAL_CALL SfxPrintHelper::print(const uno::Sequence< beans::PropertyValue >& rOptions)
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
{
if( Application::GetSettings().GetMiscSettings().GetDisablePrinting() )
return;
@@ -821,13 +819,13 @@ void IMPL_PrintListener_DataContainer::Notify( SfxBroadcaster& rBC, const SfxHin
static_cast<view::XPrintJobListener*>(pIterator.next())->printJobEvent( aEvent );
}
-void SAL_CALL SfxPrintHelper::addPrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SfxPrintHelper::addPrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener )
{
SolarMutexGuard aGuard;
m_pData->m_aInterfaceContainer.addInterface( cppu::UnoType<view::XPrintJobListener>::get(), xListener );
}
-void SAL_CALL SfxPrintHelper::removePrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SfxPrintHelper::removePrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener )
{
SolarMutexGuard aGuard;
m_pData->m_aInterfaceContainer.removeInterface( cppu::UnoType<view::XPrintJobListener>::get(), xListener );
diff --git a/sfx2/source/doc/printhelper.hxx b/sfx2/source/doc/printhelper.hxx
index 6faca49f89eb..88cdca28b7ee 100644
--- a/sfx2/source/doc/printhelper.hxx
+++ b/sfx2/source/doc/printhelper.hxx
@@ -48,14 +48,12 @@ public:
SfxPrintHelper() ;
virtual ~SfxPrintHelper() override ;
- void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addPrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removePrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPrinter() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setPrinter( const css::uno::Sequence< css::beans::PropertyValue >& seqPrinter )
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL print( const css::uno::Sequence< css::beans::PropertyValue >& seqOptions )
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
+ void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
+ virtual void SAL_CALL addPrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener ) override;
+ virtual void SAL_CALL removePrintJobListener( const css::uno::Reference< css::view::XPrintJobListener >& xListener ) override;
+ virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPrinter() override;
+ virtual void SAL_CALL setPrinter( const css::uno::Sequence< css::beans::PropertyValue >& seqPrinter ) override;
+ virtual void SAL_CALL print( const css::uno::Sequence< css::beans::PropertyValue >& seqOptions ) override;
private:
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 934e8ca2811c..ad0520d4ba4d 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -152,14 +152,11 @@ public:
: m_rShell(i_rDoc)
{ };
- virtual void SAL_CALL disposing( const lang::EventObject& )
- throw ( RuntimeException, std::exception ) override;
- virtual void SAL_CALL modified( const lang::EventObject& )
- throw ( RuntimeException, std::exception ) override;
+ virtual void SAL_CALL disposing( const lang::EventObject& ) override;
+ virtual void SAL_CALL modified( const lang::EventObject& ) override;
};
void SAL_CALL SfxDocInfoListener_Impl::modified( const lang::EventObject& )
- throw ( RuntimeException, std::exception )
{
SolarMutexGuard aSolarGuard;
@@ -168,7 +165,6 @@ void SAL_CALL SfxDocInfoListener_Impl::modified( const lang::EventObject& )
}
void SAL_CALL SfxDocInfoListener_Impl::disposing( const lang::EventObject& )
- throw ( RuntimeException, std::exception )
{
}
@@ -313,16 +309,16 @@ public:
: m_pData( pData )
{}
- virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) throw ( RuntimeException, std::exception ) override ;
- virtual void SAL_CALL printJobEvent( const view::PrintJobEvent& rEvent ) throw ( RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) override ;
+ virtual void SAL_CALL printJobEvent( const view::PrintJobEvent& rEvent ) override;
};
-void SAL_CALL SfxPrintHelperListener_Impl::disposing( const lang::EventObject& ) throw ( RuntimeException, std::exception )
+void SAL_CALL SfxPrintHelperListener_Impl::disposing( const lang::EventObject& )
{
m_pData->m_xPrintable = nullptr;
}
-void SAL_CALL SfxPrintHelperListener_Impl::printJobEvent( const view::PrintJobEvent& rEvent ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxPrintHelperListener_Impl::printJobEvent( const view::PrintJobEvent& rEvent )
{
::cppu::OInterfaceContainerHelper* pContainer = m_pData->m_aInterfaceContainer.getContainer( cppu::UnoType<view::XPrintJobListener>::get());
if ( pContainer!=nullptr )
@@ -509,7 +505,7 @@ SfxBaseModel::~SfxBaseModel()
}
// XInterface
-Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType ) throw( RuntimeException, std::exception )
+Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType )
{
if ( ( !m_bSupportEmbeddedScripts && rType.equals( cppu::UnoType<document::XEmbeddedScripts>::get() ) )
|| ( !m_bSupportDocRecovery && rType.equals( cppu::UnoType<XDocumentRecovery>::get() ) )
@@ -561,7 +557,7 @@ namespace
}
}
-Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes() throw( RuntimeException, std::exception )
+Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes()
{
Sequence< uno::Type > aTypes( SfxBaseModel_Base::getTypes() );
@@ -578,7 +574,7 @@ Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes() throw( RuntimeException,
// XTypeProvider
-Sequence< sal_Int8 > SAL_CALL SfxBaseModel::getImplementationId() throw( RuntimeException, std::exception )
+Sequence< sal_Int8 > SAL_CALL SfxBaseModel::getImplementationId()
{
return css::uno::Sequence<sal_Int8>();
}
@@ -603,7 +599,7 @@ Reference< script::XStarBasicAccess > implGetStarBasicAccess( SfxObjectShell* pO
return xRet;
}
-Reference< container::XNameContainer > SAL_CALL SfxBaseModel::getLibraryContainer() throw( RuntimeException, std::exception )
+Reference< container::XNameContainer > SAL_CALL SfxBaseModel::getLibraryContainer()
{
#if !HAVE_FEATURE_SCRIPTING
Reference< container::XNameContainer > dummy;
@@ -628,7 +624,6 @@ Reference< container::XNameContainer > SAL_CALL SfxBaseModel::getLibraryContaine
*/
void SAL_CALL SfxBaseModel::createLibrary( const OUString& LibName, const OUString& Password,
const OUString& ExternalSourceURL, const OUString& LinkTargetURL )
- throw(container::ElementExistException, RuntimeException, std::exception)
{
#if !HAVE_FEATURE_SCRIPTING
(void) LibName;
@@ -652,7 +647,6 @@ void SAL_CALL SfxBaseModel::createLibrary( const OUString& LibName, const OUStri
*/
void SAL_CALL SfxBaseModel::addModule( const OUString& LibraryName, const OUString& ModuleName,
const OUString& Language, const OUString& Source )
- throw( container::NoSuchElementException, RuntimeException, std::exception)
{
#if !HAVE_FEATURE_SCRIPTING
(void) LibraryName;
@@ -676,7 +670,6 @@ void SAL_CALL SfxBaseModel::addModule( const OUString& LibraryName, const OUStri
*/
void SAL_CALL SfxBaseModel::addDialog( const OUString& LibraryName, const OUString& DialogName,
const Sequence< sal_Int8 >& Data )
- throw(container::NoSuchElementException, RuntimeException, std::exception)
{
#if !HAVE_FEATURE_SCRIPTING
(void) LibraryName;
@@ -698,7 +691,7 @@ void SAL_CALL SfxBaseModel::addDialog( const OUString& LibraryName, const OUStri
// XChild
-Reference< XInterface > SAL_CALL SfxBaseModel::getParent() throw( RuntimeException, std::exception )
+Reference< XInterface > SAL_CALL SfxBaseModel::getParent()
{
SfxModelGuard aGuard( *this );
@@ -709,7 +702,7 @@ Reference< XInterface > SAL_CALL SfxBaseModel::getParent() throw( RuntimeExcepti
// XChild
-void SAL_CALL SfxBaseModel::setParent(const Reference< XInterface >& Parent) throw(lang::NoSupportException, RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::setParent(const Reference< XInterface >& Parent)
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
m_pData->m_xParent = Parent;
@@ -719,7 +712,7 @@ void SAL_CALL SfxBaseModel::setParent(const Reference< XInterface >& Parent) thr
// XChild
-void SAL_CALL SfxBaseModel::dispose() throw(RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::dispose()
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
@@ -778,7 +771,6 @@ void SAL_CALL SfxBaseModel::dispose() throw(RuntimeException, std::exception)
void SAL_CALL SfxBaseModel::addEventListener( const Reference< lang::XEventListener >& aListener )
- throw(RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
m_pData->m_aInterfaceContainer.addInterface( cppu::UnoType<lang::XEventListener>::get(), aListener );
@@ -789,7 +781,6 @@ void SAL_CALL SfxBaseModel::addEventListener( const Reference< lang::XEventListe
void SAL_CALL SfxBaseModel::removeEventListener( const Reference< lang::XEventListener >& aListener )
- throw(RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
m_pData->m_aInterfaceContainer.removeInterface( cppu::UnoType<lang::XEventListener>::get(), aListener );
@@ -811,7 +802,6 @@ IMPL_SfxBaseModel_DataContainer::impl_setDocumentProperties(
// document::XDocumentPropertiesSupplier:
Reference< document::XDocumentProperties > SAL_CALL
SfxBaseModel::getDocumentProperties()
- throw(RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
if ( !m_pData->m_xDocumentProperties.is() )
@@ -829,7 +819,6 @@ SfxBaseModel::getDocumentProperties()
void SAL_CALL SfxBaseModel::disposing( const lang::EventObject& aObject )
- throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if ( impl_isDisposed() )
@@ -853,7 +842,6 @@ void SAL_CALL SfxBaseModel::disposing( const lang::EventObject& aObject )
sal_Bool SAL_CALL SfxBaseModel::attachResource( const OUString& rURL ,
const Sequence< beans::PropertyValue >& rArgs )
- throw(RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
if ( rURL.isEmpty() && rArgs.getLength() == 1 && rArgs[0].Name == "SetEmbedded" )
@@ -938,7 +926,7 @@ sal_Bool SAL_CALL SfxBaseModel::attachResource( const OUString&
// frame::XModel
-OUString SAL_CALL SfxBaseModel::getURL() throw(RuntimeException, std::exception)
+OUString SAL_CALL SfxBaseModel::getURL()
{
SfxModelGuard aGuard( *this );
return m_pData->m_sURL ;
@@ -948,7 +936,7 @@ OUString SAL_CALL SfxBaseModel::getURL() throw(RuntimeException, std::exception)
// frame::XModel
-Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getArgs() throw(RuntimeException, std::exception)
+Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getArgs()
{
SfxModelGuard aGuard( *this );
if ( m_pData->m_pObjectShell.Is() )
@@ -1048,7 +1036,6 @@ Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getArgs() throw(RuntimeE
void SAL_CALL SfxBaseModel::connectController( const Reference< frame::XController >& xController )
- throw(RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
OSL_PRECOND( xController.is(), "SfxBaseModel::connectController: invalid controller!" );
@@ -1072,7 +1059,7 @@ void SAL_CALL SfxBaseModel::connectController( const Reference< frame::XControll
// frame::XModel
-void SAL_CALL SfxBaseModel::disconnectController( const Reference< frame::XController >& xController ) throw(RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::disconnectController( const Reference< frame::XController >& xController )
{
SfxModelGuard aGuard( *this );
@@ -1099,22 +1086,22 @@ namespace
}
// XUndoAction
- virtual OUString SAL_CALL getTitle() throw (RuntimeException, std::exception) override;
- virtual void SAL_CALL undo( ) throw (UndoFailedException, RuntimeException, std::exception) override;
- virtual void SAL_CALL redo( ) throw (UndoFailedException, RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getTitle() override;
+ virtual void SAL_CALL undo( ) override;
+ virtual void SAL_CALL redo( ) override;
private:
const Reference< XModel > m_xModel;
const bool m_bUndoIsUnlock;
};
- OUString SAL_CALL ControllerLockUndoAction::getTitle() throw (RuntimeException, std::exception)
+ OUString SAL_CALL ControllerLockUndoAction::getTitle()
{
// this action is intended to be used within an UndoContext only, so nobody will ever see this title ...
return OUString();
}
- void SAL_CALL ControllerLockUndoAction::undo( ) throw (UndoFailedException, RuntimeException, std::exception)
+ void SAL_CALL ControllerLockUndoAction::undo( )
{
if ( m_bUndoIsUnlock )
m_xModel->unlockControllers();
@@ -1122,7 +1109,7 @@ namespace
m_xModel->lockControllers();
}
- void SAL_CALL ControllerLockUndoAction::redo( ) throw (UndoFailedException, RuntimeException, std::exception)
+ void SAL_CALL ControllerLockUndoAction::redo( )
{
if ( m_bUndoIsUnlock )
m_xModel->lockControllers();
@@ -1135,7 +1122,7 @@ namespace
// frame::XModel
-void SAL_CALL SfxBaseModel::lockControllers() throw(RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::lockControllers()
{
SfxModelGuard aGuard( *this );
@@ -1154,7 +1141,7 @@ void SAL_CALL SfxBaseModel::lockControllers() throw(RuntimeException, std::excep
// frame::XModel
-void SAL_CALL SfxBaseModel::unlockControllers() throw(RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::unlockControllers()
{
SfxModelGuard aGuard( *this );
@@ -1173,7 +1160,7 @@ void SAL_CALL SfxBaseModel::unlockControllers() throw(RuntimeException, std::exc
// frame::XModel
-sal_Bool SAL_CALL SfxBaseModel::hasControllersLocked() throw(RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxBaseModel::hasControllersLocked()
{
SfxModelGuard aGuard( *this );
return ( m_pData->m_nControllerLockCount != 0 ) ;
@@ -1183,7 +1170,7 @@ sal_Bool SAL_CALL SfxBaseModel::hasControllersLocked() throw(RuntimeException, s
// frame::XModel
-Reference< frame::XController > SAL_CALL SfxBaseModel::getCurrentController() throw(RuntimeException, std::exception)
+Reference< frame::XController > SAL_CALL SfxBaseModel::getCurrentController()
{
SfxModelGuard aGuard( *this );
@@ -1200,7 +1187,6 @@ Reference< frame::XController > SAL_CALL SfxBaseModel::getCurrentController() th
void SAL_CALL SfxBaseModel::setCurrentController( const Reference< frame::XController >& xCurrentController )
- throw (container::NoSuchElementException, RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -1211,7 +1197,7 @@ void SAL_CALL SfxBaseModel::setCurrentController( const Reference< frame::XContr
// frame::XModel
-Reference< XInterface > SAL_CALL SfxBaseModel::getCurrentSelection() throw(RuntimeException, std::exception)
+Reference< XInterface > SAL_CALL SfxBaseModel::getCurrentSelection()
{
SfxModelGuard aGuard( *this );
@@ -1235,7 +1221,7 @@ Reference< XInterface > SAL_CALL SfxBaseModel::getCurrentSelection() throw(Runti
// XModifiable2
-sal_Bool SAL_CALL SfxBaseModel::disableSetModified() throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxBaseModel::disableSetModified()
{
SfxModelGuard aGuard( *this );
@@ -1248,7 +1234,7 @@ sal_Bool SAL_CALL SfxBaseModel::disableSetModified() throw (RuntimeException, st
return bResult;
}
-sal_Bool SAL_CALL SfxBaseModel::enableSetModified() throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxBaseModel::enableSetModified()
{
SfxModelGuard aGuard( *this );
@@ -1261,7 +1247,7 @@ sal_Bool SAL_CALL SfxBaseModel::enableSetModified() throw (RuntimeException, std
return bResult;
}
-sal_Bool SAL_CALL SfxBaseModel::isSetModifiedEnabled() throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxBaseModel::isSetModifiedEnabled()
{
SfxModelGuard aGuard( *this );
@@ -1275,7 +1261,7 @@ sal_Bool SAL_CALL SfxBaseModel::isSetModifiedEnabled() throw (RuntimeException,
// XModifiable
-sal_Bool SAL_CALL SfxBaseModel::isModified() throw(RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxBaseModel::isModified()
{
SfxModelGuard aGuard( *this );
@@ -1287,7 +1273,6 @@ sal_Bool SAL_CALL SfxBaseModel::isModified() throw(RuntimeException, std::except
void SAL_CALL SfxBaseModel::setModified( sal_Bool bModified )
- throw (beans::PropertyVetoException, RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -1299,7 +1284,7 @@ void SAL_CALL SfxBaseModel::setModified( sal_Bool bModified )
// XModifiable
-void SAL_CALL SfxBaseModel::addModifyListener(const Reference< util::XModifyListener >& xListener) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseModel::addModifyListener(const Reference< util::XModifyListener >& xListener)
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
@@ -1310,7 +1295,7 @@ void SAL_CALL SfxBaseModel::addModifyListener(const Reference< util::XModifyList
// XModifiable
-void SAL_CALL SfxBaseModel::removeModifyListener(const Reference< util::XModifyListener >& xListener) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseModel::removeModifyListener(const Reference< util::XModifyListener >& xListener)
{
SfxModelGuard aGuard( *this );
@@ -1321,7 +1306,7 @@ void SAL_CALL SfxBaseModel::removeModifyListener(const Reference< util::XModifyL
// XCloseable
-void SAL_CALL SfxBaseModel::close( sal_Bool bDeliverOwnership ) throw (util::CloseVetoException, RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::close( sal_Bool bDeliverOwnership )
{
SolarMutexGuard aGuard;
if ( impl_isDisposed() || m_pData->m_bClosed || m_pData->m_bClosing )
@@ -1384,7 +1369,7 @@ void SAL_CALL SfxBaseModel::close( sal_Bool bDeliverOwnership ) throw (util::Clo
// XCloseBroadcaster
-void SAL_CALL SfxBaseModel::addCloseListener( const Reference< util::XCloseListener >& xListener ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::addCloseListener( const Reference< util::XCloseListener >& xListener )
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
@@ -1395,7 +1380,7 @@ void SAL_CALL SfxBaseModel::addCloseListener( const Reference< util::XCloseListe
// XCloseBroadcaster
-void SAL_CALL SfxBaseModel::removeCloseListener( const Reference< util::XCloseListener >& xListener ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::removeCloseListener( const Reference< util::XCloseListener >& xListener )
{
SfxModelGuard aGuard( *this );
@@ -1406,7 +1391,7 @@ void SAL_CALL SfxBaseModel::removeCloseListener( const Reference< util::XCloseLi
// XPrintable
-Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getPrinter() throw(RuntimeException, std::exception)
+Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getPrinter()
{
SfxModelGuard aGuard( *this );
@@ -1417,7 +1402,6 @@ Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getPrinter() throw(Runti
}
void SAL_CALL SfxBaseModel::setPrinter(const Sequence< beans::PropertyValue >& rPrinter)
- throw (lang::IllegalArgumentException, RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -1426,7 +1410,6 @@ void SAL_CALL SfxBaseModel::setPrinter(const Sequence< beans::PropertyValue >& r
}
void SAL_CALL SfxBaseModel::print(const Sequence< beans::PropertyValue >& rOptions)
- throw (lang::IllegalArgumentException, RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -1438,7 +1421,7 @@ void SAL_CALL SfxBaseModel::print(const Sequence< beans::PropertyValue >& rOptio
// XStorable
-sal_Bool SAL_CALL SfxBaseModel::hasLocation() throw(RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxBaseModel::hasLocation()
{
SfxModelGuard aGuard( *this );
@@ -1449,7 +1432,7 @@ sal_Bool SAL_CALL SfxBaseModel::hasLocation() throw(RuntimeException, std::excep
// XStorable
-OUString SAL_CALL SfxBaseModel::getLocation() throw(RuntimeException, std::exception)
+OUString SAL_CALL SfxBaseModel::getLocation()
{
SfxModelGuard aGuard( *this );
@@ -1469,7 +1452,7 @@ OUString SAL_CALL SfxBaseModel::getLocation() throw(RuntimeException, std::excep
// XStorable
-sal_Bool SAL_CALL SfxBaseModel::isReadonly() throw(RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxBaseModel::isReadonly()
{
SfxModelGuard aGuard( *this );
@@ -1481,9 +1464,6 @@ sal_Bool SAL_CALL SfxBaseModel::isReadonly() throw(RuntimeException, std::except
void SAL_CALL SfxBaseModel::storeSelf( const Sequence< beans::PropertyValue >& aSeqArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -1602,7 +1582,7 @@ void SAL_CALL SfxBaseModel::storeSelf( const Sequence< beans::PropertyValue >
// XStorable
-void SAL_CALL SfxBaseModel::store() throw (io::IOException, RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::store()
{
storeSelf( Sequence< beans::PropertyValue >() );
}
@@ -1613,7 +1593,6 @@ void SAL_CALL SfxBaseModel::store() throw (io::IOException, RuntimeException, st
void SAL_CALL SfxBaseModel::storeAsURL( const OUString& rURL ,
const Sequence< beans::PropertyValue >& rArgs )
- throw (io::IOException, RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -1640,7 +1619,7 @@ void SAL_CALL SfxBaseModel::storeAsURL( const OUString& rURL
// XUndoManagerSupplier
-Reference< XUndoManager > SAL_CALL SfxBaseModel::getUndoManager( ) throw (RuntimeException, std::exception)
+Reference< XUndoManager > SAL_CALL SfxBaseModel::getUndoManager( )
{
SfxModelGuard aGuard( *this );
if ( !m_pData->m_pDocumentUndoManager.is() )
@@ -1654,7 +1633,6 @@ Reference< XUndoManager > SAL_CALL SfxBaseModel::getUndoManager( ) throw (Runti
void SAL_CALL SfxBaseModel::storeToURL( const OUString& rURL ,
const Sequence< beans::PropertyValue >& rArgs )
- throw (io::IOException, RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -1675,13 +1653,13 @@ void SAL_CALL SfxBaseModel::storeToURL( const OUString& rURL
}
}
-sal_Bool SAL_CALL SfxBaseModel::wasModifiedSinceLastSave() throw ( RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxBaseModel::wasModifiedSinceLastSave()
{
SfxModelGuard aGuard( *this );
return m_pData->m_bModifiedSinceLastSave;
}
-void SAL_CALL SfxBaseModel::storeToRecoveryFile( const OUString& i_TargetLocation, const Sequence< PropertyValue >& i_MediaDescriptor ) throw ( RuntimeException, IOException, WrappedTargetException, std::exception )
+void SAL_CALL SfxBaseModel::storeToRecoveryFile( const OUString& i_TargetLocation, const Sequence< PropertyValue >& i_MediaDescriptor )
{
SfxModelGuard aGuard( *this );
@@ -1693,7 +1671,7 @@ void SAL_CALL SfxBaseModel::storeToRecoveryFile( const OUString& i_TargetLocatio
m_pData->m_bModifiedSinceLastSave = false;
}
-void SAL_CALL SfxBaseModel::recoverFromFile( const OUString& i_SourceLocation, const OUString& i_SalvagedFile, const Sequence< PropertyValue >& i_MediaDescriptor ) throw ( RuntimeException, IOException, WrappedTargetException, std::exception )
+void SAL_CALL SfxBaseModel::recoverFromFile( const OUString& i_SourceLocation, const OUString& i_SalvagedFile, const Sequence< PropertyValue >& i_MediaDescriptor )
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
@@ -1725,10 +1703,6 @@ void SAL_CALL SfxBaseModel::recoverFromFile( const OUString& i_SourceLocation, c
void SAL_CALL SfxBaseModel::initNew()
- throw (frame::DoubleInitializationException,
- io::IOException,
- RuntimeException,
- Exception, std::exception)
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
if ( IsInitialized() )
@@ -1780,10 +1754,6 @@ void setUpdatePickList( SfxMedium* pMedium )
}
void SAL_CALL SfxBaseModel::load( const Sequence< beans::PropertyValue >& seqArguments )
- throw (frame::DoubleInitializationException,
- io::IOException,
- RuntimeException,
- Exception, std::exception)
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
if ( IsInitialized() )
@@ -1913,9 +1883,6 @@ void SAL_CALL SfxBaseModel::load( const Sequence< beans::PropertyValue >& seqA
Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFlavor )
- throw (datatransfer::UnsupportedFlavorException,
- io::IOException,
- RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -2152,7 +2119,6 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla
Sequence< datatransfer::DataFlavor > SAL_CALL SfxBaseModel::getTransferDataFlavors()
- throw (RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -2219,7 +2185,6 @@ Sequence< datatransfer::DataFlavor > SAL_CALL SfxBaseModel::getTransferDataFlavo
sal_Bool SAL_CALL SfxBaseModel::isDataFlavorSupported( const datatransfer::DataFlavor& aFlavor )
- throw (RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -2277,7 +2242,7 @@ sal_Bool SAL_CALL SfxBaseModel::isDataFlavorSupported( const datatransfer::DataF
// XEventsSupplier
-Reference< container::XNameReplace > SAL_CALL SfxBaseModel::getEvents() throw( RuntimeException, std::exception )
+Reference< container::XNameReplace > SAL_CALL SfxBaseModel::getEvents()
{
SfxModelGuard aGuard( *this );
@@ -2293,7 +2258,7 @@ Reference< container::XNameReplace > SAL_CALL SfxBaseModel::getEvents() throw( R
// XEmbeddedScripts
-Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getBasicLibraries() throw (RuntimeException, std::exception)
+Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getBasicLibraries()
{
SfxModelGuard aGuard( *this );
@@ -2303,7 +2268,7 @@ Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getBas
return xBasicLibraries;
}
-Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getDialogLibraries() throw (RuntimeException, std::exception)
+Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getDialogLibraries()
{
SfxModelGuard aGuard( *this );
@@ -2313,7 +2278,7 @@ Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getDia
return xDialogLibraries;
}
-sal_Bool SAL_CALL SfxBaseModel::getAllowMacroExecution() throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxBaseModel::getAllowMacroExecution()
{
SfxModelGuard aGuard( *this );
@@ -2326,7 +2291,7 @@ sal_Bool SAL_CALL SfxBaseModel::getAllowMacroExecution() throw (RuntimeException
// XScriptInvocationContext
-Reference< document::XEmbeddedScripts > SAL_CALL SfxBaseModel::getScriptContainer() throw (RuntimeException, std::exception)
+Reference< document::XEmbeddedScripts > SAL_CALL SfxBaseModel::getScriptContainer()
{
SfxModelGuard aGuard( *this );
@@ -2362,7 +2327,7 @@ Reference< document::XEmbeddedScripts > SAL_CALL SfxBaseModel::getScriptContaine
// XEventBroadcaster
-void SAL_CALL SfxBaseModel::addEventListener( const Reference< document::XEventListener >& aListener ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseModel::addEventListener( const Reference< document::XEventListener >& aListener )
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
@@ -2373,7 +2338,7 @@ void SAL_CALL SfxBaseModel::addEventListener( const Reference< document::XEventL
// XEventBroadcaster
-void SAL_CALL SfxBaseModel::removeEventListener( const Reference< document::XEventListener >& aListener ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseModel::removeEventListener( const Reference< document::XEventListener >& aListener )
{
SfxModelGuard aGuard( *this );
@@ -2385,7 +2350,6 @@ void SAL_CALL SfxBaseModel::removeEventListener( const Reference< document::XEve
void SAL_CALL SfxBaseModel::addDocumentEventListener( const Reference< document::XDocumentEventListener >& aListener )
- throw ( RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
m_pData->m_aInterfaceContainer.addInterface( cppu::UnoType<document::XDocumentEventListener>::get(), aListener );
@@ -2393,7 +2357,6 @@ void SAL_CALL SfxBaseModel::addDocumentEventListener( const Reference< document:
void SAL_CALL SfxBaseModel::removeDocumentEventListener( const Reference< document::XDocumentEventListener >& aListener )
- throw ( RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
m_pData->m_aInterfaceContainer.removeInterface( cppu::UnoType<document::XDocumentEventListener>::get(), aListener );
@@ -2401,25 +2364,21 @@ void SAL_CALL SfxBaseModel::removeDocumentEventListener( const Reference< docume
void SAL_CALL SfxBaseModel::notifyDocumentEvent( const OUString&, const Reference< frame::XController2 >&, const Any& )
- throw ( lang::IllegalArgumentException, lang::NoSupportException, RuntimeException, std::exception )
{
throw lang::NoSupportException("SfxBaseModel controls all the sent notifications itself!" );
}
Sequence< document::CmisProperty > SAL_CALL SfxBaseModel::getCmisProperties()
- throw ( RuntimeException, std::exception )
{
return m_pData->m_cmisProperties;
}
void SAL_CALL SfxBaseModel::setCmisProperties( const Sequence< document::CmisProperty >& _cmisproperties )
- throw ( RuntimeException, std::exception )
{
m_pData->m_cmisProperties = _cmisproperties;
}
void SAL_CALL SfxBaseModel::updateCmisProperties( const Sequence< document::CmisProperty >& aProperties )
- throw ( RuntimeException, std::exception )
{
SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium();
if ( pMedium )
@@ -2441,7 +2400,7 @@ void SAL_CALL SfxBaseModel::updateCmisProperties( const Sequence< document::Cmis
}
-void SAL_CALL SfxBaseModel::checkOut( ) throw ( RuntimeException, std::exception )
+void SAL_CALL SfxBaseModel::checkOut( )
{
SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium();
if ( pMedium )
@@ -2473,7 +2432,7 @@ void SAL_CALL SfxBaseModel::checkOut( ) throw ( RuntimeException, std::exceptio
}
}
-void SAL_CALL SfxBaseModel::cancelCheckOut( ) throw ( RuntimeException, std::exception )
+void SAL_CALL SfxBaseModel::cancelCheckOut( )
{
SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium();
if ( pMedium )
@@ -2497,7 +2456,7 @@ void SAL_CALL SfxBaseModel::cancelCheckOut( ) throw ( RuntimeException, std::ex
}
}
-void SAL_CALL SfxBaseModel::checkIn( sal_Bool bIsMajor, const OUString& rMessage ) throw ( RuntimeException, std::exception )
+void SAL_CALL SfxBaseModel::checkIn( sal_Bool bIsMajor, const OUString& rMessage )
{
SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium();
if ( pMedium )
@@ -2538,7 +2497,7 @@ void SAL_CALL SfxBaseModel::checkIn( sal_Bool bIsMajor, const OUString& rMessage
}
}
-uno::Sequence< document::CmisVersion > SAL_CALL SfxBaseModel::getAllVersions( ) throw ( RuntimeException, std::exception )
+uno::Sequence< document::CmisVersion > SAL_CALL SfxBaseModel::getAllVersions( )
{
uno::Sequence< document::CmisVersion > aVersions;
SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium();
@@ -2561,7 +2520,7 @@ uno::Sequence< document::CmisVersion > SAL_CALL SfxBaseModel::getAllVersions( )
return aVersions;
}
-bool SfxBaseModel::getBoolPropertyValue( const OUString& rName ) throw ( RuntimeException )
+bool SfxBaseModel::getBoolPropertyValue( const OUString& rName )
{
bool bValue = false;
if ( m_pData->m_pObjectShell.Is() )
@@ -2590,22 +2549,22 @@ bool SfxBaseModel::getBoolPropertyValue( const OUString& rName ) throw ( Runtime
return bValue;
}
-sal_Bool SAL_CALL SfxBaseModel::isVersionable( ) throw ( RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxBaseModel::isVersionable( )
{
return getBoolPropertyValue( "IsVersionable" );
}
-sal_Bool SAL_CALL SfxBaseModel::canCheckOut( ) throw ( RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxBaseModel::canCheckOut( )
{
return getBoolPropertyValue( "CanCheckOut" );
}
-sal_Bool SAL_CALL SfxBaseModel::canCancelCheckOut( ) throw ( RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxBaseModel::canCancelCheckOut( )
{
return getBoolPropertyValue( "CanCancelCheckOut" );
}
-sal_Bool SAL_CALL SfxBaseModel::canCheckIn( ) throw ( RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxBaseModel::canCheckIn( )
{
return getBoolPropertyValue( "CanCheckIn" );
}
@@ -3168,7 +3127,7 @@ void SfxBaseModel::postEvent_Impl( const OUString& aName, const Reference< frame
}
-Reference < container::XIndexAccess > SAL_CALL SfxBaseModel::getViewData() throw(RuntimeException, std::exception)
+Reference < container::XIndexAccess > SAL_CALL SfxBaseModel::getViewData()
{
SfxModelGuard aGuard( *this );
@@ -3207,7 +3166,7 @@ Reference < container::XIndexAccess > SAL_CALL SfxBaseModel::getViewData() throw
return m_pData->m_contViewData;
}
-void SAL_CALL SfxBaseModel::setViewData( const Reference < container::XIndexAccess >& aData ) throw(RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::setViewData( const Reference < container::XIndexAccess >& aData )
{
SfxModelGuard aGuard( *this );
@@ -3247,7 +3206,7 @@ bool SfxBaseModel::hasEventListeners() const
return !impl_isDisposed() && (nullptr != m_pData->m_aInterfaceContainer.getContainer( cppu::UnoType<document::XEventListener>::get()) );
}
-void SAL_CALL SfxBaseModel::addPrintJobListener( const Reference< view::XPrintJobListener >& xListener ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::addPrintJobListener( const Reference< view::XPrintJobListener >& xListener )
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
@@ -3259,7 +3218,7 @@ void SAL_CALL SfxBaseModel::addPrintJobListener( const Reference< view::XPrintJo
}
}
-void SAL_CALL SfxBaseModel::removePrintJobListener( const Reference< view::XPrintJobListener >& xListener ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxBaseModel::removePrintJobListener( const Reference< view::XPrintJobListener >& xListener )
{
SfxModelGuard aGuard( *this );
@@ -3271,7 +3230,7 @@ void SAL_CALL SfxBaseModel::removePrintJobListener( const Reference< view::XPrin
}
}
-sal_Int64 SAL_CALL SfxBaseModel::getSomething( const Sequence< sal_Int8 >& aIdentifier ) throw(RuntimeException, std::exception)
+sal_Int64 SAL_CALL SfxBaseModel::getSomething( const Sequence< sal_Int8 >& aIdentifier )
{
SvGlobalName aName( aIdentifier );
if (aName == SvGlobalName( SFX_GLOBAL_CLASSID ))
@@ -3307,7 +3266,6 @@ void SfxBaseModel::ListenForStorage_Impl( const Reference< embed::XStorage >& xS
}
Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentSubStorage( const OUString& aStorageName, sal_Int32 nMode )
- throw ( RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -3331,8 +3289,6 @@ Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentSubStorage( const
}
Sequence< OUString > SAL_CALL SfxBaseModel::getDocumentSubStoragesNames()
- throw ( io::IOException,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -3370,7 +3326,6 @@ Sequence< OUString > SAL_CALL SfxBaseModel::getDocumentSubStoragesNames()
Reference< script::provider::XScriptProvider > SAL_CALL SfxBaseModel::getScriptProvider()
- throw ( RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -3481,13 +3436,11 @@ static void ConvertSlotsToCommands( SfxObjectShell* pDoc, Reference< container::
}
Reference< ui::XUIConfigurationManager > SAL_CALL SfxBaseModel::getUIConfigurationManager()
- throw ( RuntimeException, std::exception )
{
return Reference< ui::XUIConfigurationManager >( getUIConfigurationManager2(), UNO_QUERY_THROW );
}
Reference< ui::XUIConfigurationManager2 > SfxBaseModel::getUIConfigurationManager2()
- throw ( RuntimeException )
{
SfxModelGuard aGuard( *this );
@@ -3587,10 +3540,6 @@ Reference< ui::XUIConfigurationManager2 > SfxBaseModel::getUIConfigurationManage
void SAL_CALL SfxBaseModel::setVisualAreaSize( sal_Int64 nAspect, const awt::Size& aSize )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- Exception,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -3618,10 +3567,6 @@ void SAL_CALL SfxBaseModel::setVisualAreaSize( sal_Int64 nAspect, const awt::Siz
}
awt::Size SAL_CALL SfxBaseModel::getVisualAreaSize( sal_Int64 /*nAspect*/ )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- Exception,
- RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -3635,8 +3580,6 @@ awt::Size SAL_CALL SfxBaseModel::getVisualAreaSize( sal_Int64 /*nAspect*/ )
sal_Int32 SAL_CALL SfxBaseModel::getMapUnit( sal_Int64 /*nAspect*/ )
- throw ( Exception,
- RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -3647,10 +3590,6 @@ sal_Int32 SAL_CALL SfxBaseModel::getMapUnit( sal_Int64 /*nAspect*/ )
}
embed::VisualRepresentation SAL_CALL SfxBaseModel::getPreferredVisualRepresentation( ::sal_Int64 /*nAspect*/ )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- Exception,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -3672,11 +3611,6 @@ embed::VisualRepresentation SAL_CALL SfxBaseModel::getPreferredVisualRepresentat
void SAL_CALL SfxBaseModel::loadFromStorage( const Reference< embed::XStorage >& xStorage,
const Sequence< beans::PropertyValue >& aMediaDescriptor )
- throw ( lang::IllegalArgumentException,
- frame::DoubleInitializationException,
- io::IOException,
- Exception,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
if ( IsInitialized() )
@@ -3713,10 +3647,6 @@ void SAL_CALL SfxBaseModel::loadFromStorage( const Reference< embed::XStorage >&
void SAL_CALL SfxBaseModel::storeToStorage( const Reference< embed::XStorage >& xStorage,
const Sequence< beans::PropertyValue >& aMediaDescriptor )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- Exception,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -3775,10 +3705,6 @@ void SAL_CALL SfxBaseModel::storeToStorage( const Reference< embed::XStorage >&
}
void SAL_CALL SfxBaseModel::switchToStorage( const Reference< embed::XStorage >& xStorage )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- Exception,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -3808,9 +3734,6 @@ void SAL_CALL SfxBaseModel::switchToStorage( const Reference< embed::XStorage >&
}
Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentStorage()
- throw ( io::IOException,
- Exception,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -3823,7 +3746,6 @@ Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentStorage()
void SAL_CALL SfxBaseModel::addStorageChangeListener(
const Reference< document::XStorageChangeListener >& xListener )
- throw ( RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
@@ -3833,7 +3755,6 @@ void SAL_CALL SfxBaseModel::addStorageChangeListener(
void SAL_CALL SfxBaseModel::removeStorageChangeListener(
const Reference< document::XStorageChangeListener >& xListener )
- throw ( RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -3858,7 +3779,6 @@ bool SfxBaseModel::impl_getPrintHelper()
// css.frame.XModule
void SAL_CALL SfxBaseModel::setIdentifier(const OUString& Identifier)
- throw (RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
m_pData->m_sModuleIdentifier = Identifier;
@@ -3867,7 +3787,6 @@ bool SfxBaseModel::impl_getPrintHelper()
// css.frame.XModule
OUString SAL_CALL SfxBaseModel::getIdentifier()
- throw (RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
if (!m_pData->m_sModuleIdentifier.isEmpty())
@@ -3919,7 +3838,6 @@ Reference< frame::XUntitledNumbers > SfxBaseModel::impl_getUntitledHelper ()
// css.frame.XTitle
OUString SAL_CALL SfxBaseModel::getTitle()
- throw (RuntimeException, std::exception)
{
// SYNCHRONIZED ->
SfxModelGuard aGuard( *this );
@@ -3972,7 +3890,6 @@ OUString SAL_CALL SfxBaseModel::getTitle()
// css.frame.XTitle
void SAL_CALL SfxBaseModel::setTitle( const OUString& sTitle )
- throw (RuntimeException, std::exception)
{
// SYNCHRONIZED ->
SfxModelGuard aGuard( *this );
@@ -3984,7 +3901,6 @@ void SAL_CALL SfxBaseModel::setTitle( const OUString& sTitle )
// css.frame.XTitleChangeBroadcaster
void SAL_CALL SfxBaseModel::addTitleChangeListener( const Reference< frame::XTitleChangeListener >& xListener )
- throw (RuntimeException, std::exception)
{
// SYNCHRONIZED ->
SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING );
@@ -3997,7 +3913,6 @@ void SAL_CALL SfxBaseModel::addTitleChangeListener( const Reference< frame::XTit
// css.frame.XTitleChangeBroadcaster
void SAL_CALL SfxBaseModel::removeTitleChangeListener( const Reference< frame::XTitleChangeListener >& xListener )
- throw (RuntimeException, std::exception)
{
// SYNCHRONIZED ->
SfxModelGuard aGuard( *this );
@@ -4010,8 +3925,6 @@ void SAL_CALL SfxBaseModel::removeTitleChangeListener( const Reference< frame::X
// css.frame.XUntitledNumbers
::sal_Int32 SAL_CALL SfxBaseModel::leaseNumber( const Reference< XInterface >& xComponent )
- throw (lang::IllegalArgumentException,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -4021,8 +3934,6 @@ void SAL_CALL SfxBaseModel::removeTitleChangeListener( const Reference< frame::X
// css.frame.XUntitledNumbers
void SAL_CALL SfxBaseModel::releaseNumber( ::sal_Int32 nNumber )
- throw (lang::IllegalArgumentException,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
impl_getUntitledHelper ()->releaseNumber (nNumber);
@@ -4031,8 +3942,6 @@ void SAL_CALL SfxBaseModel::releaseNumber( ::sal_Int32 nNumber )
// css.frame.XUntitledNumbers
void SAL_CALL SfxBaseModel::releaseNumberForComponent( const Reference< XInterface >& xComponent )
- throw (lang::IllegalArgumentException,
- RuntimeException, std::exception )
{
SfxModelGuard aGuard( *this );
impl_getUntitledHelper ()->releaseNumberForComponent (xComponent);
@@ -4041,7 +3950,6 @@ void SAL_CALL SfxBaseModel::releaseNumberForComponent( const Reference< XInterfa
// css.frame.XUntitledNumbers
OUString SAL_CALL SfxBaseModel::getUntitledPrefix()
- throw (RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
return impl_getUntitledHelper ()->getUntitledPrefix ();
@@ -4050,7 +3958,6 @@ OUString SAL_CALL SfxBaseModel::getUntitledPrefix()
// frame::XModel2
Reference< container::XEnumeration > SAL_CALL SfxBaseModel::getControllers()
- throw (RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4068,7 +3975,6 @@ Reference< container::XEnumeration > SAL_CALL SfxBaseModel::getControllers()
// frame::XModel2
Sequence< OUString > SAL_CALL SfxBaseModel::getAvailableViewControllerNames()
- throw (RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4084,9 +3990,6 @@ Sequence< OUString > SAL_CALL SfxBaseModel::getAvailableViewControllerNames()
// frame::XModel2
Reference< frame::XController2 > SAL_CALL SfxBaseModel::createDefaultViewController( const Reference< frame::XFrame >& i_rFrame )
- throw (RuntimeException ,
- lang::IllegalArgumentException,
- Exception, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -4193,9 +4096,6 @@ SfxViewFrame* SfxBaseModel::FindOrCreateViewFrame_Impl( const Reference< XFrame
// frame::XModel2
Reference< frame::XController2 > SAL_CALL SfxBaseModel::createViewController(
const OUString& i_rViewName, const Sequence< PropertyValue >& i_rArguments, const Reference< XFrame >& i_rFrame )
- throw (RuntimeException ,
- lang::IllegalArgumentException,
- Exception, std::exception )
{
SfxModelGuard aGuard( *this );
@@ -4281,7 +4181,7 @@ Reference< frame::XController2 > SAL_CALL SfxBaseModel::createViewController(
// rdf::XRepositorySupplier:
Reference< rdf::XRepository > SAL_CALL
-SfxBaseModel::getRDFRepository() throw (RuntimeException, std::exception)
+SfxBaseModel::getRDFRepository()
{
SfxModelGuard aGuard( *this );
@@ -4295,7 +4195,7 @@ SfxBaseModel::getRDFRepository() throw (RuntimeException, std::exception)
// rdf::XNode:
OUString SAL_CALL
-SfxBaseModel::getStringValue() throw (RuntimeException, std::exception)
+SfxBaseModel::getStringValue()
{
SfxModelGuard aGuard( *this );
@@ -4309,7 +4209,7 @@ SfxBaseModel::getStringValue() throw (RuntimeException, std::exception)
// rdf::XURI:
OUString SAL_CALL
-SfxBaseModel::getNamespace() throw (RuntimeException, std::exception)
+SfxBaseModel::getNamespace()
{
SfxModelGuard aGuard( *this );
@@ -4322,7 +4222,7 @@ SfxBaseModel::getNamespace() throw (RuntimeException, std::exception)
}
OUString SAL_CALL
-SfxBaseModel::getLocalName() throw (RuntimeException, std::exception)
+SfxBaseModel::getLocalName()
{
SfxModelGuard aGuard( *this );
@@ -4338,7 +4238,6 @@ SfxBaseModel::getLocalName() throw (RuntimeException, std::exception)
Reference< rdf::XMetadatable > SAL_CALL
SfxBaseModel::getElementByMetadataReference(
const beans::StringPair & i_rReference)
-throw (RuntimeException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4352,7 +4251,6 @@ throw (RuntimeException, std::exception)
Reference< rdf::XMetadatable > SAL_CALL
SfxBaseModel::getElementByURI(const Reference< rdf::XURI > & i_xURI)
-throw (RuntimeException, lang::IllegalArgumentException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4367,7 +4265,6 @@ throw (RuntimeException, lang::IllegalArgumentException, std::exception)
Sequence< Reference< rdf::XURI > > SAL_CALL
SfxBaseModel::getMetadataGraphsWithType(
const Reference<rdf::XURI> & i_xType)
-throw (RuntimeException, lang::IllegalArgumentException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4382,8 +4279,6 @@ throw (RuntimeException, lang::IllegalArgumentException, std::exception)
Reference<rdf::XURI> SAL_CALL
SfxBaseModel::addMetadataFile(const OUString & i_rFileName,
const Sequence < Reference< rdf::XURI > > & i_rTypes)
-throw (RuntimeException, lang::IllegalArgumentException,
- container::ElementExistException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4401,9 +4296,6 @@ SfxBaseModel::importMetadataFile(::sal_Int16 i_Format,
const OUString & i_rFileName,
const Reference< rdf::XURI > & i_xBaseURI,
const Sequence < Reference< rdf::XURI > > & i_rTypes)
-throw (RuntimeException, lang::IllegalArgumentException,
- datatransfer::UnsupportedFlavorException,
- container::ElementExistException, rdf::ParseException, io::IOException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4419,8 +4311,6 @@ throw (RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
SfxBaseModel::removeMetadataFile(
const Reference< rdf::XURI > & i_xGraphName)
-throw (RuntimeException, lang::IllegalArgumentException,
- container::NoSuchElementException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4434,8 +4324,6 @@ throw (RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
SfxBaseModel::addContentOrStylesFile(const OUString & i_rFileName)
-throw (RuntimeException, lang::IllegalArgumentException,
- container::ElementExistException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4449,8 +4337,6 @@ throw (RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
SfxBaseModel::removeContentOrStylesFile(const OUString & i_rFileName)
-throw (RuntimeException, lang::IllegalArgumentException,
- container::NoSuchElementException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4467,8 +4353,6 @@ SfxBaseModel::loadMetadataFromStorage(
Reference< embed::XStorage > const & i_xStorage,
Reference<rdf::XURI> const & i_xBaseURI,
Reference<task::XInteractionHandler> const & i_xHandler)
-throw (RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4494,8 +4378,6 @@ throw (RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
SfxBaseModel::storeMetadataToStorage(
Reference< embed::XStorage > const & i_xStorage)
-throw (RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4510,8 +4392,6 @@ throw (RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
SfxBaseModel::loadMetadataFromMedium(
const Sequence< beans::PropertyValue > & i_rMedium)
-throw (RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
SfxModelGuard aGuard( *this );
@@ -4536,8 +4416,6 @@ throw (RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
SfxBaseModel::storeMetadataToMedium(
const Sequence< beans::PropertyValue > & i_rMedium)
-throw (RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
SfxModelGuard aGuard( *this );
diff --git a/sfx2/source/doc/sfxmodelfactory.cxx b/sfx2/source/doc/sfxmodelfactory.cxx
index 21a30bfd79e7..9267ed18846c 100644
--- a/sfx2/source/doc/sfxmodelfactory.cxx
+++ b/sfx2/source/doc/sfxmodelfactory.cxx
@@ -75,13 +75,13 @@ namespace sfx2
);
// XSingleServiceFactory
- virtual Reference< XInterface > SAL_CALL createInstance( ) throw (Exception, RuntimeException, std::exception) override;
- virtual Reference< XInterface > SAL_CALL createInstanceWithArguments( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception) override;
+ virtual Reference< XInterface > SAL_CALL createInstance( ) override;
+ virtual Reference< XInterface > SAL_CALL createInstanceWithArguments( const Sequence< Any >& aArguments ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( ) throw (RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (RuntimeException, std::exception) override;
- virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
protected:
virtual ~SfxModelFactory() override;
@@ -113,7 +113,7 @@ namespace sfx2
}
- Reference< XInterface > SAL_CALL SfxModelFactory::createInstance( ) throw (Exception, RuntimeException, std::exception)
+ Reference< XInterface > SAL_CALL SfxModelFactory::createInstance( )
{
return createInstanceWithArguments( Sequence< Any >() );
}
@@ -142,7 +142,7 @@ namespace sfx2
}
- Reference< XInterface > SAL_CALL SfxModelFactory::createInstanceWithArguments( const Sequence< Any >& _rArguments ) throw (Exception, RuntimeException, std::exception)
+ Reference< XInterface > SAL_CALL SfxModelFactory::createInstanceWithArguments( const Sequence< Any >& _rArguments )
{
::comphelper::NamedValueCollection aArgs( _rArguments );
const bool bEmbeddedObject = aArgs.getOrDefault( "EmbeddedObject", false );
@@ -179,17 +179,17 @@ namespace sfx2
return xInstance;
}
- OUString SAL_CALL SfxModelFactory::getImplementationName( ) throw (RuntimeException, std::exception)
+ OUString SAL_CALL SfxModelFactory::getImplementationName( )
{
return m_sImplementationName;
}
- sal_Bool SAL_CALL SfxModelFactory::supportsService( const OUString& _rServiceName ) throw (RuntimeException, std::exception)
+ sal_Bool SAL_CALL SfxModelFactory::supportsService( const OUString& _rServiceName )
{
return cppu::supportsService(this, _rServiceName);
}
- Sequence< OUString > SAL_CALL SfxModelFactory::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
+ Sequence< OUString > SAL_CALL SfxModelFactory::getSupportedServiceNames( )
{
return m_aServiceNames;
}
diff --git a/sfx2/source/inc/docundomanager.hxx b/sfx2/source/inc/docundomanager.hxx
index 12ea42cdb316..22b21b853eef 100644
--- a/sfx2/source/inc/docundomanager.hxx
+++ b/sfx2/source/inc/docundomanager.hxx
@@ -123,32 +123,32 @@ namespace sfx2
virtual void SAL_CALL release( ) throw () override;
// XUndoManager
- virtual void SAL_CALL enterUndoContext( const OUString& i_title ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL enterHiddenUndoContext( ) throw (css::document::EmptyUndoStackException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL leaveUndoContext( ) throw (css::util::InvalidStateException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addUndoAction( const css::uno::Reference< css::document::XUndoAction >& i_action ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL undo( ) throw (css::document::EmptyUndoStackException, css::document::UndoContextNotClosedException, css::document::UndoFailedException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL redo( ) throw (css::document::EmptyUndoStackException, css::document::UndoContextNotClosedException, css::document::UndoFailedException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isUndoPossible( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isRedoPossible( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getCurrentUndoActionTitle( ) throw (css::document::EmptyUndoStackException, css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getCurrentRedoActionTitle( ) throw (css::document::EmptyUndoStackException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getAllUndoActionTitles( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getAllRedoActionTitles( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL clear( ) throw (css::document::UndoContextNotClosedException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL clearRedo( ) throw (css::document::UndoContextNotClosedException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL reset( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addUndoManagerListener( const css::uno::Reference< css::document::XUndoManagerListener >& i_listener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeUndoManagerListener( const css::uno::Reference< css::document::XUndoManagerListener >& i_listener ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL enterUndoContext( const OUString& i_title ) override;
+ virtual void SAL_CALL enterHiddenUndoContext( ) override;
+ virtual void SAL_CALL leaveUndoContext( ) override;
+ virtual void SAL_CALL addUndoAction( const css::uno::Reference< css::document::XUndoAction >& i_action ) override;
+ virtual void SAL_CALL undo( ) override;
+ virtual void SAL_CALL redo( ) override;
+ virtual sal_Bool SAL_CALL isUndoPossible( ) override;
+ virtual sal_Bool SAL_CALL isRedoPossible( ) override;
+ virtual OUString SAL_CALL getCurrentUndoActionTitle( ) override;
+ virtual OUString SAL_CALL getCurrentRedoActionTitle( ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getAllUndoActionTitles( ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getAllRedoActionTitles( ) override;
+ virtual void SAL_CALL clear( ) override;
+ virtual void SAL_CALL clearRedo( ) override;
+ virtual void SAL_CALL reset( ) override;
+ virtual void SAL_CALL addUndoManagerListener( const css::uno::Reference< css::document::XUndoManagerListener >& i_listener ) override;
+ virtual void SAL_CALL removeUndoManagerListener( const css::uno::Reference< css::document::XUndoManagerListener >& i_listener ) override;
// XLockable, base of XUndoManager
- virtual void SAL_CALL lock( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL unlock( ) throw (css::util::NotLockedException, css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL isLocked( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL lock( ) override;
+ virtual void SAL_CALL unlock( ) override;
+ virtual sal_Bool SAL_CALL isLocked( ) override;
// XChild, base of XUndoManager
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent( ) override;
+ virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) override;
private:
std::unique_ptr< DocumentUndoManager_Impl > m_pImpl;
diff --git a/sfx2/source/inc/eventsupplier.hxx b/sfx2/source/inc/eventsupplier.hxx
index 2a3a0cfbf01e..1eb32581546d 100644
--- a/sfx2/source/inc/eventsupplier.hxx
+++ b/sfx2/source/inc/eventsupplier.hxx
@@ -63,28 +63,22 @@ public:
virtual ~SfxEvents_Impl() override;
// --- XNameReplace ---
- virtual void SAL_CALL replaceByName( const OUString & aName, const css::uno::Any & aElement )
- throw( css::lang::IllegalArgumentException, css::container::NoSuchElementException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL replaceByName( const OUString & aName, const css::uno::Any & aElement ) override;
// --- XNameAccess ( parent of XNameReplace ) ---
- virtual css::uno::Any SAL_CALL getByName( const OUString& aName )
- throw( css::container::NoSuchElementException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() throw ( css::uno::RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
+ virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
// --- XElementAccess ( parent of XNameAccess ) ---
- virtual css::uno::Type SAL_CALL getElementType() throw ( css::uno::RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL hasElements() throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Type SAL_CALL getElementType() override;
+ virtual sal_Bool SAL_CALL hasElements() override;
// --- ::document::XEventListener ---
- virtual void SAL_CALL notifyEvent( const css::document::EventObject& aEvent )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL notifyEvent( const css::document::EventObject& aEvent ) override;
// --- ::lang::XEventListener ---
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
static SvxMacro* ConvertToMacro( const css::uno::Any& rElement, SfxObjectShell* pDoc, bool bNormalizeMacro );
static void NormalizeMacro( const css::uno::Any& rIn, css::uno::Any& rOut, SfxObjectShell* pDoc );
diff --git a/sfx2/source/inc/fltoptint.hxx b/sfx2/source/inc/fltoptint.hxx
index bc2474d7141c..7f26a1399c7e 100644
--- a/sfx2/source/inc/fltoptint.hxx
+++ b/sfx2/source/inc/fltoptint.hxx
@@ -30,8 +30,8 @@ class FilterOptionsContinuation : public comphelper::OInteraction< css::document
css::uno::Sequence< css::beans::PropertyValue > rProperties;
public:
- virtual void SAL_CALL setFilterOptions( const css::uno::Sequence< css::beans::PropertyValue >& rProp ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getFilterOptions( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setFilterOptions( const css::uno::Sequence< css::beans::PropertyValue >& rProp ) override;
+ virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getFilterOptions( ) override;
};
class RequestFilterOptions : public ::cppu::WeakImplHelper< css::task::XInteractionRequest >
@@ -52,12 +52,10 @@ public:
return m_xOptions->getFilterOptions();
}
- virtual css::uno::Any SAL_CALL getRequest()
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Any SAL_CALL getRequest() override;
virtual css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation >
- > SAL_CALL getContinuations()
- throw( css::uno::RuntimeException, std::exception ) override;
+ > SAL_CALL getContinuations() override;
};
#endif
diff --git a/sfx2/source/inc/macroloader.hxx b/sfx2/source/inc/macroloader.hxx
index f65640891ee5..91800a551a33 100644
--- a/sfx2/source/inc/macroloader.hxx
+++ b/sfx2/source/inc/macroloader.hxx
@@ -53,45 +53,34 @@ class SfxMacroLoader : public cppu::WeakImplHelper<
public:
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
- SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArguments)
- throw (css::uno::Exception, css::uno::RuntimeException);
+ SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArguments);
- 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;
/// @throws css::uno::RuntimeException
/// @throws css::ucb::ContentCreationException
- static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc ) throw( css::uno::RuntimeException, css::ucb::ContentCreationException, std::exception );
+ static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc );
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 void SAL_CALL dispatchWithNotification( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs, const css::uno::Reference< css::frame::XDispatchResultListener >& Listener )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs, const css::uno::Reference< css::frame::XDispatchResultListener >& Listener ) override;
- virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs ) override;
- virtual css::uno::Any SAL_CALL dispatchWithReturnValue( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL dispatchWithReturnValue( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs ) override;
- virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) override;
- virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) override;
};
#endif
diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx
index 77fc56ad7495..2e5937136fbe 100644
--- a/sfx2/source/inc/statcach.hxx
+++ b/sfx2/source/inc/statcach.hxx
@@ -51,8 +51,8 @@ public:
const css::util::URL& rURL,
SfxStateCache* pStateCache, const SfxSlot* pSlot );
- virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) throw ( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
void Release();
const css::frame::FeatureStateEvent& GetStatus() const { return aStatus;}
diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx
index a612b82baef3..d526ccd14e1f 100644
--- a/sfx2/source/inc/workwin.hxx
+++ b/sfx2/source/inc/workwin.hxx
@@ -166,19 +166,19 @@ class LayoutManagerListener : public ::cppu::WeakImplHelper<
// XComponent
- virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL dispose() throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
+ virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
+ virtual void SAL_CALL dispose() override;
// XEventListener
- virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) override;
// XLayoutManagerEventListener
- virtual void SAL_CALL layoutEvent( const css::lang::EventObject& aSource, ::sal_Int16 eLayoutEvent, const css::uno::Any& aInfo ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL layoutEvent( const css::lang::EventObject& aSource, ::sal_Int16 eLayoutEvent, const css::uno::Any& aInfo ) override;
private:
bool m_bHasFrame;
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index aa94e1b8e07f..807b353b0d16 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -53,8 +53,6 @@ using namespace css;
// --- XNameReplace ---
void SAL_CALL SfxEvents_Impl::replaceByName( const OUString & aName, const uno::Any & rElement )
- throw( lang::IllegalArgumentException, container::NoSuchElementException,
- lang::WrappedTargetException, uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
@@ -111,8 +109,6 @@ void SAL_CALL SfxEvents_Impl::replaceByName( const OUString & aName, const uno::
// --- XNameAccess ---
uno::Any SAL_CALL SfxEvents_Impl::getByName( const OUString& aName )
- throw( container::NoSuchElementException, lang::WrappedTargetException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( maMutex );
@@ -130,13 +126,13 @@ uno::Any SAL_CALL SfxEvents_Impl::getByName( const OUString& aName )
}
-uno::Sequence< OUString > SAL_CALL SfxEvents_Impl::getElementNames() throw ( uno::RuntimeException, std::exception )
+uno::Sequence< OUString > SAL_CALL SfxEvents_Impl::getElementNames()
{
return maEventNames;
}
-sal_Bool SAL_CALL SfxEvents_Impl::hasByName( const OUString& aName ) throw ( uno::RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxEvents_Impl::hasByName( const OUString& aName )
{
::osl::MutexGuard aGuard( maMutex );
@@ -156,14 +152,14 @@ sal_Bool SAL_CALL SfxEvents_Impl::hasByName( const OUString& aName ) throw ( uno
// --- XElementAccess ( parent of XNameAccess ) ---
-uno::Type SAL_CALL SfxEvents_Impl::getElementType() throw ( uno::RuntimeException, std::exception )
+uno::Type SAL_CALL SfxEvents_Impl::getElementType()
{
uno::Type aElementType = cppu::UnoType<uno::Sequence < beans::PropertyValue >>::get();
return aElementType;
}
-sal_Bool SAL_CALL SfxEvents_Impl::hasElements() throw ( uno::RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxEvents_Impl::hasElements()
{
::osl::MutexGuard aGuard( maMutex );
@@ -268,7 +264,7 @@ void SfxEvents_Impl::Execute( uno::Any& aEventData, const document::DocumentEven
// --- ::document::XEventListener ---
-void SAL_CALL SfxEvents_Impl::notifyEvent( const document::EventObject& aEvent ) throw( uno::RuntimeException, std::exception )
+void SAL_CALL SfxEvents_Impl::notifyEvent( const document::EventObject& aEvent )
{
::osl::ClearableMutexGuard aGuard( maMutex );
@@ -298,7 +294,7 @@ void SAL_CALL SfxEvents_Impl::notifyEvent( const document::EventObject& aEvent )
// --- ::lang::XEventListener ---
-void SAL_CALL SfxEvents_Impl::disposing( const lang::EventObject& /*Source*/ ) throw( uno::RuntimeException, std::exception )
+void SAL_CALL SfxEvents_Impl::disposing( const lang::EventObject& /*Source*/ )
{
::osl::MutexGuard aGuard( maMutex );
diff --git a/sfx2/source/notify/globalevents.cxx b/sfx2/source/notify/globalevents.cxx
index c4a7ab946c44..b4db95ec412a 100644
--- a/sfx2/source/notify/globalevents.cxx
+++ b/sfx2/source/notify/globalevents.cxx
@@ -74,75 +74,57 @@ class SfxGlobalEvents_Impl : public ModelCollectionMutexBase
public:
explicit SfxGlobalEvents_Impl(const css::uno::Reference < css::uno::XComponentContext >& rxContext);
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getImplementationName() override
{
return OUString("com.sun.star.comp.sfx2.GlobalEventBroadcaster");
}
- 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
{
return cppu::supportsService(this, ServiceName);
}
- virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.GlobalEventBroadcaster" };
return aSeq;
}
// css.document.XEventBroadcaster
- virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents() override;
- virtual void SAL_CALL addEventListener(const css::uno::Reference< css::document::XEventListener >& xListener)
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addEventListener(const css::uno::Reference< css::document::XEventListener >& xListener) override;
- virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::document::XEventListener >& xListener)
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::document::XEventListener >& xListener) override;
// css.document.XDocumentEventBroadcaster
- virtual void SAL_CALL addDocumentEventListener( const css::uno::Reference< css::document::XDocumentEventListener >& Listener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeDocumentEventListener( const css::uno::Reference< css::document::XDocumentEventListener >& Listener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyDocumentEvent( const OUString& EventName, const css::uno::Reference< css::frame::XController2 >& ViewController, const css::uno::Any& Supplement ) throw (css::lang::IllegalArgumentException, css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addDocumentEventListener( const css::uno::Reference< css::document::XDocumentEventListener >& Listener ) override;
+ virtual void SAL_CALL removeDocumentEventListener( const css::uno::Reference< css::document::XDocumentEventListener >& Listener ) override;
+ virtual void SAL_CALL notifyDocumentEvent( const OUString& EventName, const css::uno::Reference< css::frame::XController2 >& ViewController, const css::uno::Any& Supplement ) override;
// css.document.XEventListener
- virtual void SAL_CALL notifyEvent(const css::document::EventObject& aEvent)
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL notifyEvent(const css::document::EventObject& aEvent) override;
// css.document.XDocumentEventListener
- virtual void SAL_CALL documentEventOccured( const css::document::DocumentEvent& Event ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL documentEventOccured( const css::document::DocumentEvent& Event ) override;
// css.container.XSet
- virtual sal_Bool SAL_CALL has(const css::uno::Any& aElement)
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL has(const css::uno::Any& aElement) override;
- virtual void SAL_CALL insert(const css::uno::Any& aElement)
- throw(css::lang::IllegalArgumentException ,
- css::container::ElementExistException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL insert(const css::uno::Any& aElement) override;
- virtual void SAL_CALL remove(const css::uno::Any& aElement)
- throw(css::lang::IllegalArgumentException ,
- css::container::NoSuchElementException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL remove(const css::uno::Any& aElement) override;
// css.container.XEnumerationAccess
- virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override;
// css.container.XElementAccess
- virtual css::uno::Type SAL_CALL getElementType()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Type SAL_CALL getElementType() override;
- virtual sal_Bool SAL_CALL hasElements()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL hasElements() override;
// css.lang.XEventListener
- virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent)
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent) override;
private:
@@ -170,7 +152,6 @@ SfxGlobalEvents_Impl::SfxGlobalEvents_Impl( const uno::Reference < uno::XCompone
}
uno::Reference< container::XNameReplace > SAL_CALL SfxGlobalEvents_Impl::getEvents()
- throw(uno::RuntimeException, std::exception)
{
// SAFE ->
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -180,7 +161,6 @@ uno::Reference< container::XNameReplace > SAL_CALL SfxGlobalEvents_Impl::getEven
void SAL_CALL SfxGlobalEvents_Impl::addEventListener(const uno::Reference< document::XEventListener >& xListener)
- throw(uno::RuntimeException, std::exception)
{
// container is threadsafe
m_aLegacyListeners.addInterface(xListener);
@@ -188,7 +168,6 @@ void SAL_CALL SfxGlobalEvents_Impl::addEventListener(const uno::Reference< docum
void SAL_CALL SfxGlobalEvents_Impl::removeEventListener(const uno::Reference< document::XEventListener >& xListener)
- throw(uno::RuntimeException, std::exception)
{
// container is threadsafe
m_aLegacyListeners.removeInterface(xListener);
@@ -196,14 +175,12 @@ void SAL_CALL SfxGlobalEvents_Impl::removeEventListener(const uno::Reference< do
void SAL_CALL SfxGlobalEvents_Impl::addDocumentEventListener( const uno::Reference< document::XDocumentEventListener >& Listener )
- throw(uno::RuntimeException, std::exception)
{
m_aDocumentListeners.addInterface( Listener );
}
void SAL_CALL SfxGlobalEvents_Impl::removeDocumentEventListener( const uno::Reference< document::XDocumentEventListener >& Listener )
- throw(uno::RuntimeException, std::exception)
{
m_aDocumentListeners.removeInterface( Listener );
}
@@ -211,7 +188,6 @@ void SAL_CALL SfxGlobalEvents_Impl::removeDocumentEventListener( const uno::Refe
void SAL_CALL SfxGlobalEvents_Impl::notifyDocumentEvent( const OUString& /*_EventName*/,
const uno::Reference< frame::XController2 >& /*_ViewController*/, const uno::Any& /*_Supplement*/ )
- throw (lang::IllegalArgumentException, lang::NoSupportException, uno::RuntimeException, std::exception)
{
// we're a multiplexer only, no chance to generate artificial events here
throw lang::NoSupportException(OUString(), *this);
@@ -219,7 +195,6 @@ void SAL_CALL SfxGlobalEvents_Impl::notifyDocumentEvent( const OUString& /*_Even
void SAL_CALL SfxGlobalEvents_Impl::notifyEvent(const document::EventObject& aEvent)
- throw(uno::RuntimeException, std::exception)
{
document::DocumentEvent aDocEvent(aEvent.Source, aEvent.EventName, nullptr, uno::Any());
implts_notifyJobExecution(aEvent);
@@ -229,7 +204,6 @@ void SAL_CALL SfxGlobalEvents_Impl::notifyEvent(const document::EventObject& aEv
void SAL_CALL SfxGlobalEvents_Impl::documentEventOccured( const document::DocumentEvent& Event )
- throw (uno::RuntimeException, std::exception)
{
implts_notifyJobExecution(document::EventObject(Event.Source, Event.EventName));
implts_checkAndExecuteEventBindings(Event);
@@ -238,7 +212,6 @@ void SAL_CALL SfxGlobalEvents_Impl::documentEventOccured( const document::Docume
void SAL_CALL SfxGlobalEvents_Impl::disposing(const lang::EventObject& aEvent)
- throw(uno::RuntimeException, std::exception)
{
uno::Reference< frame::XModel > xDoc(aEvent.Source, uno::UNO_QUERY);
@@ -253,7 +226,6 @@ void SAL_CALL SfxGlobalEvents_Impl::disposing(const lang::EventObject& aEvent)
sal_Bool SAL_CALL SfxGlobalEvents_Impl::has(const uno::Any& aElement)
- throw (uno::RuntimeException, std::exception)
{
uno::Reference< frame::XModel > xDoc;
aElement >>= xDoc;
@@ -273,9 +245,6 @@ sal_Bool SAL_CALL SfxGlobalEvents_Impl::has(const uno::Any& aElement)
void SAL_CALL SfxGlobalEvents_Impl::insert( const uno::Any& aElement )
- throw (lang::IllegalArgumentException ,
- container::ElementExistException,
- uno::RuntimeException, std::exception )
{
uno::Reference< frame::XModel > xDoc;
aElement >>= xDoc;
@@ -310,9 +279,6 @@ void SAL_CALL SfxGlobalEvents_Impl::insert( const uno::Any& aElement )
void SAL_CALL SfxGlobalEvents_Impl::remove( const uno::Any& aElement )
- throw (lang::IllegalArgumentException ,
- container::NoSuchElementException,
- uno::RuntimeException, std::exception )
{
uno::Reference< frame::XModel > xDoc;
aElement >>= xDoc;
@@ -347,7 +313,6 @@ void SAL_CALL SfxGlobalEvents_Impl::remove( const uno::Any& aElement )
uno::Reference< container::XEnumeration > SAL_CALL SfxGlobalEvents_Impl::createEnumeration()
- throw (uno::RuntimeException, std::exception)
{
// SAFE ->
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -367,14 +332,12 @@ uno::Reference< container::XEnumeration > SAL_CALL SfxGlobalEvents_Impl::createE
uno::Type SAL_CALL SfxGlobalEvents_Impl::getElementType()
- throw (uno::RuntimeException, std::exception)
{
return cppu::UnoType<frame::XModel>::get();
}
sal_Bool SAL_CALL SfxGlobalEvents_Impl::hasElements()
- throw (uno::RuntimeException, std::exception)
{
// SAFE ->
::osl::ResettableMutexGuard aLock(m_aLock);
diff --git a/sfx2/source/sidebar/Accessible.cxx b/sfx2/source/sidebar/Accessible.cxx
index 10b01dc07c8f..6cb4dd4a87a5 100644
--- a/sfx2/source/sidebar/Accessible.cxx
+++ b/sfx2/source/sidebar/Accessible.cxx
@@ -43,7 +43,6 @@ void SAL_CALL Accessible::disposing()
}
Reference<accessibility::XAccessibleContext> SAL_CALL Accessible::getAccessibleContext()
- throw (css::uno::RuntimeException, std::exception)
{
return mxContext;
}
diff --git a/sfx2/source/sidebar/ControllerItem.cxx b/sfx2/source/sidebar/ControllerItem.cxx
index 27cd449d2c7c..7a1ac1f588b6 100644
--- a/sfx2/source/sidebar/ControllerItem.cxx
+++ b/sfx2/source/sidebar/ControllerItem.cxx
@@ -63,8 +63,7 @@ namespace
if (mxFrame.is())
mxFrame->removeFrameActionListener(this);
}
- virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) override
{
(void)rEvent;
@@ -72,8 +71,7 @@ namespace
mrControllerItem.ResetFrame();
mxFrame = nullptr;
}
- virtual void SAL_CALL frameAction (const css::frame::FrameActionEvent& rEvent)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL frameAction (const css::frame::FrameActionEvent& rEvent) override
{
SolarMutexGuard g;
if (rEvent.Action == frame::FrameAction_CONTEXT_CHANGED)
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 840d7531e1c5..4e275a5d1ab5 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -262,7 +262,6 @@ void SAL_CALL SidebarController::disposing()
}
void SAL_CALL SidebarController::notifyContextChangeEvent (const css::ui::ContextChangeEventObject& rEvent)
- throw(css::uno::RuntimeException, std::exception)
{
// Update to the requested new context asynchronously to avoid
// subtle errors caused by SFX2 which in rare cases can not
@@ -283,19 +282,16 @@ void SAL_CALL SidebarController::notifyContextChangeEvent (const css::ui::Contex
}
void SAL_CALL SidebarController::disposing (const css::lang::EventObject& )
- throw(css::uno::RuntimeException, std::exception)
{
dispose();
}
void SAL_CALL SidebarController::propertyChange (const css::beans::PropertyChangeEvent& )
- throw(css::uno::RuntimeException, std::exception)
{
maPropertyChangeForwarder.RequestCall();
}
void SAL_CALL SidebarController::statusChanged (const css::frame::FeatureStateEvent& rEvent)
- throw(css::uno::RuntimeException, std::exception)
{
bool bIsReadWrite (true);
if (rEvent.IsEnabled)
@@ -316,7 +312,6 @@ void SAL_CALL SidebarController::statusChanged (const css::frame::FeatureStateEv
}
void SAL_CALL SidebarController::requestLayout()
- throw(css::uno::RuntimeException, std::exception)
{
sal_Int32 nMinimalWidth = 0;
if (mpCurrentDeck && !mpCurrentDeck->isDisposed())
diff --git a/sfx2/source/sidebar/SidebarPanelBase.cxx b/sfx2/source/sidebar/SidebarPanelBase.cxx
index 0e90e95f6f96..8c8db52d0731 100644
--- a/sfx2/source/sidebar/SidebarPanelBase.cxx
+++ b/sfx2/source/sidebar/SidebarPanelBase.cxx
@@ -79,7 +79,6 @@ SidebarPanelBase::~SidebarPanelBase()
}
void SAL_CALL SidebarPanelBase::disposing()
- throw (css::uno::RuntimeException)
{
mpControl.disposeAndClear();
@@ -96,7 +95,6 @@ void SAL_CALL SidebarPanelBase::disposing()
// XContextChangeEventListener
void SAL_CALL SidebarPanelBase::notifyContextChangeEvent (
const ui::ContextChangeEventObject& rEvent)
- throw (css::uno::RuntimeException, std::exception)
{
IContextChangeReceiver* pContextChangeReceiver
= dynamic_cast<IContextChangeReceiver*>(mpControl.get());
@@ -111,7 +109,6 @@ void SAL_CALL SidebarPanelBase::notifyContextChangeEvent (
void SAL_CALL SidebarPanelBase::disposing (
const css::lang::EventObject& rEvent)
- throw (css::uno::RuntimeException, std::exception)
{
(void)rEvent;
@@ -120,32 +117,27 @@ void SAL_CALL SidebarPanelBase::disposing (
}
css::uno::Reference<css::frame::XFrame> SAL_CALL SidebarPanelBase::getFrame()
- throw(css::uno::RuntimeException, std::exception)
{
return mxFrame;
}
::rtl::OUString SAL_CALL SidebarPanelBase::getResourceURL()
- throw(css::uno::RuntimeException, std::exception)
{
return msResourceURL;
}
sal_Int16 SAL_CALL SidebarPanelBase::getType()
- throw(css::uno::RuntimeException, std::exception)
{
return ui::UIElementType::TOOLPANEL;
}
Reference<XInterface> SAL_CALL SidebarPanelBase::getRealInterface()
- throw(css::uno::RuntimeException, std::exception)
{
return Reference<XInterface>(static_cast<XWeak*>(this));
}
Reference<accessibility::XAccessible> SAL_CALL SidebarPanelBase::createAccessible (
const Reference<accessibility::XAccessible>& rxParentAccessible)
- throw(css::uno::RuntimeException, std::exception)
{
(void)rxParentAccessible;
@@ -154,7 +146,6 @@ Reference<accessibility::XAccessible> SAL_CALL SidebarPanelBase::createAccessibl
}
Reference<awt::XWindow> SAL_CALL SidebarPanelBase::getWindow()
- throw(css::uno::RuntimeException, std::exception)
{
if (mpControl != nullptr)
return Reference<awt::XWindow>(
@@ -165,7 +156,6 @@ Reference<awt::XWindow> SAL_CALL SidebarPanelBase::getWindow()
}
ui::LayoutSize SAL_CALL SidebarPanelBase::getHeightForWidth (const sal_Int32 nWidth)
- throw(css::uno::RuntimeException, std::exception)
{
if (maLayoutSize.Minimum >= 0)
return maLayoutSize;
@@ -191,7 +181,7 @@ ui::LayoutSize SAL_CALL SidebarPanelBase::getHeightForWidth (const sal_Int32 nWi
return ui::LayoutSize(0,0,0);
}
-sal_Int32 SAL_CALL SidebarPanelBase::getMinimalWidth () throw(css::uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL SidebarPanelBase::getMinimalWidth ()
{
if (isLayoutEnabled(mpControl))
{
@@ -203,7 +193,6 @@ sal_Int32 SAL_CALL SidebarPanelBase::getMinimalWidth () throw(css::uno::RuntimeE
}
void SAL_CALL SidebarPanelBase::updateModel(const css::uno::Reference<css::frame::XModel>& xModel)
- throw(css::uno::RuntimeException, std::exception)
{
SidebarModelUpdate* pModelUpdate = dynamic_cast<SidebarModelUpdate*>(mpControl.get());
if (!pModelUpdate)
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index 1b96d23c7879..097e4df762c2 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -378,7 +378,6 @@ Reference<beans::XPropertySet> Theme::GetPropertySet()
}
Reference<beans::XPropertySetInfo> SAL_CALL Theme::getPropertySetInfo()
- throw(css::uno::RuntimeException, std::exception)
{
return Reference<beans::XPropertySetInfo>(this);
}
@@ -386,9 +385,6 @@ Reference<beans::XPropertySetInfo> SAL_CALL Theme::getPropertySetInfo()
void SAL_CALL Theme::setPropertyValue (
const ::rtl::OUString& rsPropertyName,
const css::uno::Any& rValue)
- throw (css::beans::UnknownPropertyException,
- css::uno::RuntimeException,
- std::exception)
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
@@ -431,9 +427,6 @@ void SAL_CALL Theme::setPropertyValue (
Any SAL_CALL Theme::getPropertyValue (
const ::rtl::OUString& rsPropertyName)
- throw(css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
@@ -451,9 +444,6 @@ Any SAL_CALL Theme::getPropertyValue (
void SAL_CALL Theme::addPropertyChangeListener(
const ::rtl::OUString& rsPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener)
- throw(css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
ThemeItem eItem (AnyItem_);
if (rsPropertyName.getLength() > 0)
@@ -476,9 +466,6 @@ void SAL_CALL Theme::addPropertyChangeListener(
void SAL_CALL Theme::removePropertyChangeListener(
const ::rtl::OUString& rsPropertyName,
const css::uno::Reference<css::beans::XPropertyChangeListener>& rxListener)
- throw(css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
ThemeItem eItem (AnyItem_);
if (rsPropertyName.getLength() > 0)
@@ -511,9 +498,6 @@ void SAL_CALL Theme::removePropertyChangeListener(
void SAL_CALL Theme::addVetoableChangeListener(
const ::rtl::OUString& rsPropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener)
- throw(css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
ThemeItem eItem (AnyItem_);
if (rsPropertyName.getLength() > 0)
@@ -536,9 +520,6 @@ void SAL_CALL Theme::addVetoableChangeListener(
void SAL_CALL Theme::removeVetoableChangeListener(
const ::rtl::OUString& rsPropertyName,
const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener)
- throw(css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
ThemeItem eItem (AnyItem_);
if (rsPropertyName.getLength() > 0)
@@ -568,7 +549,6 @@ void SAL_CALL Theme::removeVetoableChangeListener(
}
css::uno::Sequence<css::beans::Property> SAL_CALL Theme::getProperties()
- throw(css::uno::RuntimeException, std::exception)
{
::std::vector<beans::Property> aProperties;
@@ -593,8 +573,6 @@ css::uno::Sequence<css::beans::Property> SAL_CALL Theme::getProperties()
}
beans::Property SAL_CALL Theme::getPropertyByName (const ::rtl::OUString& rsPropertyName)
- throw(css::beans::UnknownPropertyException,
- css::uno::RuntimeException, std::exception)
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
@@ -614,7 +592,6 @@ beans::Property SAL_CALL Theme::getPropertyByName (const ::rtl::OUString& rsProp
}
sal_Bool SAL_CALL Theme::hasPropertyByName (const ::rtl::OUString& rsPropertyName)
- throw(css::uno::RuntimeException, std::exception)
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
diff --git a/sfx2/source/sidebar/UnoDeck.cxx b/sfx2/source/sidebar/UnoDeck.cxx
index 0c2b2cf1a1d3..facddd25fa65 100644
--- a/sfx2/source/sidebar/UnoDeck.cxx
+++ b/sfx2/source/sidebar/UnoDeck.cxx
@@ -34,7 +34,6 @@ SidebarController* SfxUnoDeck::getSidebarController()
}
OUString SAL_CALL SfxUnoDeck::getId()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -42,7 +41,6 @@ OUString SAL_CALL SfxUnoDeck::getId()
}
OUString SAL_CALL SfxUnoDeck::getTitle()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -60,7 +58,6 @@ OUString SAL_CALL SfxUnoDeck::getTitle()
}
void SAL_CALL SfxUnoDeck::setTitle( const OUString& newTitle )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -83,7 +80,6 @@ void SAL_CALL SfxUnoDeck::setTitle( const OUString& newTitle )
}
sal_Bool SAL_CALL SfxUnoDeck::isActive()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -93,7 +89,6 @@ sal_Bool SAL_CALL SfxUnoDeck::isActive()
void SAL_CALL SfxUnoDeck::activate( const sal_Bool bActivate )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -109,7 +104,6 @@ void SAL_CALL SfxUnoDeck::activate( const sal_Bool bActivate )
}
uno::Reference<ui::XPanels> SAL_CALL SfxUnoDeck::getPanels()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -118,7 +112,6 @@ uno::Reference<ui::XPanels> SAL_CALL SfxUnoDeck::getPanels()
}
sal_Int32 SAL_CALL SfxUnoDeck::getOrderIndex()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -128,7 +121,6 @@ sal_Int32 SAL_CALL SfxUnoDeck::getOrderIndex()
}
void SAL_CALL SfxUnoDeck::setOrderIndex( const sal_Int32 newOrderIndex )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -144,7 +136,6 @@ void SAL_CALL SfxUnoDeck::setOrderIndex( const sal_Int32 newOrderIndex )
}
void SAL_CALL SfxUnoDeck::moveFirst()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -168,7 +159,6 @@ void SAL_CALL SfxUnoDeck::moveFirst()
}
void SAL_CALL SfxUnoDeck::moveLast()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -192,7 +182,6 @@ void SAL_CALL SfxUnoDeck::moveLast()
}
void SAL_CALL SfxUnoDeck::moveUp()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -225,7 +214,6 @@ void SAL_CALL SfxUnoDeck::moveUp()
}
void SAL_CALL SfxUnoDeck::moveDown()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
diff --git a/sfx2/source/sidebar/UnoDecks.cxx b/sfx2/source/sidebar/UnoDecks.cxx
index a26568f3b6ab..b8bee8e300e1 100644
--- a/sfx2/source/sidebar/UnoDecks.cxx
+++ b/sfx2/source/sidebar/UnoDecks.cxx
@@ -32,9 +32,6 @@ SidebarController* SfxUnoDecks::getSidebarController()
// XNameAccess
uno::Any SAL_CALL SfxUnoDecks::getByName( const OUString& aName )
- throw(container::NoSuchElementException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -53,7 +50,6 @@ uno::Any SAL_CALL SfxUnoDecks::getByName( const OUString& aName )
uno::Sequence< OUString > SAL_CALL SfxUnoDecks::getElementNames()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -88,7 +84,6 @@ uno::Sequence< OUString > SAL_CALL SfxUnoDecks::getElementNames()
}
sal_Bool SAL_CALL SfxUnoDecks::hasByName( const OUString& aName )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -121,7 +116,7 @@ sal_Bool SAL_CALL SfxUnoDecks::hasByName( const OUString& aName )
// XIndexAccess
-sal_Int32 SAL_CALL SfxUnoDecks::getCount() throw(uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL SfxUnoDecks::getCount()
{
SolarMutexGuard aGuard;
@@ -130,9 +125,6 @@ sal_Int32 SAL_CALL SfxUnoDecks::getCount() throw(uno::RuntimeException, std::exc
}
uno::Any SAL_CALL SfxUnoDecks::getByIndex( sal_Int32 Index )
- throw(lang::IndexOutOfBoundsException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Any aRet;
@@ -150,14 +142,13 @@ uno::Any SAL_CALL SfxUnoDecks::getByIndex( sal_Int32 Index )
// XElementAccess
uno::Type SAL_CALL SfxUnoDecks::getElementType()
- throw(css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return uno::Type();
}
-sal_Bool SAL_CALL SfxUnoDecks::hasElements() throw(css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxUnoDecks::hasElements()
{
SolarMutexGuard aGuard;
diff --git a/sfx2/source/sidebar/UnoPanel.cxx b/sfx2/source/sidebar/UnoPanel.cxx
index e696e32b0b88..ac46f80a79e1 100644
--- a/sfx2/source/sidebar/UnoPanel.cxx
+++ b/sfx2/source/sidebar/UnoPanel.cxx
@@ -42,7 +42,6 @@ SidebarController* SfxUnoPanel::getSidebarController()
}
OUString SAL_CALL SfxUnoPanel::getId()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -50,7 +49,6 @@ OUString SAL_CALL SfxUnoPanel::getId()
}
OUString SAL_CALL SfxUnoPanel::getTitle()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -59,7 +57,6 @@ OUString SAL_CALL SfxUnoPanel::getTitle()
}
void SAL_CALL SfxUnoPanel::setTitle( const OUString& newTitle )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -76,7 +73,6 @@ void SAL_CALL SfxUnoPanel::setTitle( const OUString& newTitle )
}
sal_Bool SAL_CALL SfxUnoPanel::isExpanded()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -85,7 +81,6 @@ sal_Bool SAL_CALL SfxUnoPanel::isExpanded()
void SAL_CALL SfxUnoPanel::expand( const sal_Bool bCollapseOther )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -111,7 +106,6 @@ void SAL_CALL SfxUnoPanel::expand( const sal_Bool bCollapseOther )
}
void SAL_CALL SfxUnoPanel::collapse()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -121,7 +115,6 @@ void SAL_CALL SfxUnoPanel::collapse()
}
uno::Reference<awt::XWindow> SAL_CALL SfxUnoPanel::getDialog()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -130,7 +123,6 @@ uno::Reference<awt::XWindow> SAL_CALL SfxUnoPanel::getDialog()
sal_Int32 SAL_CALL SfxUnoPanel::getOrderIndex()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -140,7 +132,6 @@ sal_Int32 SAL_CALL SfxUnoPanel::getOrderIndex()
}
void SAL_CALL SfxUnoPanel::setOrderIndex( const sal_Int32 newOrderIndex )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -156,7 +147,6 @@ void SAL_CALL SfxUnoPanel::setOrderIndex( const sal_Int32 newOrderIndex )
}
void SAL_CALL SfxUnoPanel::moveFirst()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -180,7 +170,6 @@ void SAL_CALL SfxUnoPanel::moveFirst()
}
void SAL_CALL SfxUnoPanel::moveLast()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -204,7 +193,6 @@ void SAL_CALL SfxUnoPanel::moveLast()
}
void SAL_CALL SfxUnoPanel::moveUp()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
@@ -237,7 +225,6 @@ void SAL_CALL SfxUnoPanel::moveUp()
}
void SAL_CALL SfxUnoPanel::moveDown()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SidebarController* pSidebarController = getSidebarController();
diff --git a/sfx2/source/sidebar/UnoPanels.cxx b/sfx2/source/sidebar/UnoPanels.cxx
index 22cc780e56b6..dd47d3f95d1f 100644
--- a/sfx2/source/sidebar/UnoPanels.cxx
+++ b/sfx2/source/sidebar/UnoPanels.cxx
@@ -35,7 +35,6 @@ SidebarController* SfxUnoPanels::getSidebarController()
}
OUString SAL_CALL SfxUnoPanels::getDeckId()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -45,9 +44,6 @@ OUString SAL_CALL SfxUnoPanels::getDeckId()
// XNameAccess
uno::Any SAL_CALL SfxUnoPanels::getByName( const OUString& aName )
- throw(container::NoSuchElementException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -66,7 +62,6 @@ uno::Any SAL_CALL SfxUnoPanels::getByName( const OUString& aName )
uno::Sequence< OUString > SAL_CALL SfxUnoPanels::getElementNames()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -101,7 +96,6 @@ uno::Sequence< OUString > SAL_CALL SfxUnoPanels::getElementNames()
}
sal_Bool SAL_CALL SfxUnoPanels::hasByName( const OUString& aName )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -132,7 +126,7 @@ sal_Bool SAL_CALL SfxUnoPanels::hasByName( const OUString& aName )
// XIndexAccess
-sal_Int32 SAL_CALL SfxUnoPanels::getCount() throw(uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL SfxUnoPanels::getCount()
{
SolarMutexGuard aGuard;
@@ -141,9 +135,6 @@ sal_Int32 SAL_CALL SfxUnoPanels::getCount() throw(uno::RuntimeException, std::ex
}
uno::Any SAL_CALL SfxUnoPanels::getByIndex( sal_Int32 Index )
- throw(lang::IndexOutOfBoundsException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -162,14 +153,13 @@ uno::Any SAL_CALL SfxUnoPanels::getByIndex( sal_Int32 Index )
// XElementAccess
uno::Type SAL_CALL SfxUnoPanels::getElementType()
- throw(css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return uno::Type();
}
-sal_Bool SAL_CALL SfxUnoPanels::hasElements() throw(css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL SfxUnoPanels::hasElements()
{
SolarMutexGuard aGuard;
diff --git a/sfx2/source/sidebar/UnoSidebar.cxx b/sfx2/source/sidebar/UnoSidebar.cxx
index 6ea75563d16c..abf4d420f975 100644
--- a/sfx2/source/sidebar/UnoSidebar.cxx
+++ b/sfx2/source/sidebar/UnoSidebar.cxx
@@ -36,7 +36,6 @@ SidebarController* SfxUnoSidebar::getSidebarController()
}
void SAL_CALL SfxUnoSidebar::showDecks ( const sal_Bool bVisible )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -52,7 +51,6 @@ void SAL_CALL SfxUnoSidebar::showDecks ( const sal_Bool bVisible )
}
void SAL_CALL SfxUnoSidebar::setVisible ( const sal_Bool bVisible )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -69,7 +67,6 @@ void SAL_CALL SfxUnoSidebar::setVisible ( const sal_Bool bVisible )
}
sal_Bool SAL_CALL SfxUnoSidebar::isVisible()
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -79,7 +76,6 @@ sal_Bool SAL_CALL SfxUnoSidebar::isVisible()
}
uno::Reference<frame::XFrame> SAL_CALL SfxUnoSidebar::getFrame()
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -90,7 +86,6 @@ uno::Reference<frame::XFrame> SAL_CALL SfxUnoSidebar::getFrame()
}
uno::Reference<ui::XDecks> SAL_CALL SfxUnoSidebar::getDecks()
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -99,7 +94,6 @@ uno::Reference<ui::XDecks> SAL_CALL SfxUnoSidebar::getDecks()
}
uno::Reference<ui::XSidebar> SAL_CALL SfxUnoSidebar::getSidebar()
- throw (uno::RuntimeException, std::exception)
{
return getSidebarController();
}
diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx
index 87b2102a7f88..db33fb780cb7 100644
--- a/sfx2/source/statbar/stbitem.cxx
+++ b/sfx2/source/statbar/stbitem.cxx
@@ -185,7 +185,6 @@ void SAL_CALL SfxStatusBarControl::release() throw()
// XStatusListener
void SAL_CALL SfxStatusBarControl::statusChanged( const frame::FeatureStateEvent& rEvent )
-throw ( css::uno::RuntimeException, std::exception )
{
SfxViewFrame* pViewFrame = nullptr;
uno::Reference < frame::XController > xController;
@@ -293,7 +292,6 @@ throw ( css::uno::RuntimeException, std::exception )
sal_Bool SAL_CALL SfxStatusBarControl::mouseButtonDown(
const awt::MouseEvent& rMouseEvent )
-throw ( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
::Point aPos( rMouseEvent.X, rMouseEvent.Y );
@@ -310,7 +308,6 @@ throw ( uno::RuntimeException, std::exception )
sal_Bool SAL_CALL SfxStatusBarControl::mouseMove(
const awt::MouseEvent& rMouseEvent )
-throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
::Point aPos( rMouseEvent.X, rMouseEvent.Y );
@@ -326,7 +323,6 @@ throw (uno::RuntimeException, std::exception)
sal_Bool SAL_CALL SfxStatusBarControl::mouseButtonUp(
const ::awt::MouseEvent& rMouseEvent )
-throw ( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
::Point aPos( rMouseEvent.X, rMouseEvent.Y );
@@ -345,7 +341,6 @@ void SAL_CALL SfxStatusBarControl::command(
::sal_Int32 nCommand,
sal_Bool /*bMouseEvent*/,
const css::uno::Any& /*aData*/ )
-throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
::Point aPos( rPos.X, rPos.Y );
@@ -359,7 +354,6 @@ void SAL_CALL SfxStatusBarControl::paint(
const uno::Reference< awt::XGraphics >& xGraphics,
const awt::Rectangle& rOutputRectangle,
::sal_Int32 nStyle )
-throw ( ::uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
@@ -374,7 +368,6 @@ throw ( ::uno::RuntimeException, std::exception )
void SAL_CALL SfxStatusBarControl::click( const awt::Point& )
-throw ( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
Click();
@@ -382,7 +375,6 @@ throw ( uno::RuntimeException, std::exception )
void SAL_CALL SfxStatusBarControl::doubleClick( const awt::Point& )
-throw ( uno::RuntimeException, std::exception )
{
}
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx
index 15df10869efd..b908b6f932f6 100644
--- a/sfx2/source/toolbox/tbxitem.cxx
+++ b/sfx2/source/toolbox/tbxitem.cxx
@@ -242,7 +242,7 @@ unsigned short SfxToolBoxControl::GetSlotId() const
}
-void SAL_CALL SfxToolBoxControl::dispose() throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SfxToolBoxControl::dispose()
{
if ( m_bDisposed )
return;
@@ -421,7 +421,6 @@ void SfxToolBoxControl::Dispatch( const OUString& aCommand, css::uno::Sequence<
// XStatusListener
void SAL_CALL SfxToolBoxControl::statusChanged( const FeatureStateEvent& rEvent )
-throw ( css::uno::RuntimeException, std::exception )
{
SfxViewFrame* pViewFrame = nullptr;
Reference < XController > xController;
@@ -539,25 +538,25 @@ throw ( css::uno::RuntimeException, std::exception )
}
// XToolbarController
-void SAL_CALL SfxToolBoxControl::execute( sal_Int16 KeyModifier ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SfxToolBoxControl::execute( sal_Int16 KeyModifier )
{
SolarMutexGuard aGuard;
Select( (sal_uInt16)KeyModifier );
}
-void SAL_CALL SfxToolBoxControl::click() throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SfxToolBoxControl::click()
{
SolarMutexGuard aGuard;
Click();
}
-void SAL_CALL SfxToolBoxControl::doubleClick() throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL SfxToolBoxControl::doubleClick()
{
SolarMutexGuard aGuard;
DoubleClick();
}
-Reference< css::awt::XWindow > SAL_CALL SfxToolBoxControl::createPopupWindow() throw (css::uno::RuntimeException, std::exception)
+Reference< css::awt::XWindow > SAL_CALL SfxToolBoxControl::createPopupWindow()
{
SolarMutexGuard aGuard;
VclPtr<vcl::Window> pWindow = CreatePopupWindow();
@@ -567,7 +566,7 @@ Reference< css::awt::XWindow > SAL_CALL SfxToolBoxControl::createPopupWindow() t
return Reference< css::awt::XWindow >();
}
-Reference< css::awt::XWindow > SAL_CALL SfxToolBoxControl::createItemWindow( const Reference< css::awt::XWindow >& rParent ) throw (css::uno::RuntimeException, std::exception)
+Reference< css::awt::XWindow > SAL_CALL SfxToolBoxControl::createItemWindow( const Reference< css::awt::XWindow >& rParent )
{
SolarMutexGuard aGuard;
return VCLUnoHelper::GetInterface( CreateItemWindow( VCLUnoHelper::GetWindow( rParent )));
@@ -706,8 +705,7 @@ class SfxFrameStatusListener : public svt::FrameStatusListener
SfxPopupWindow* pCallee );
// XStatusListener
- virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override;
private:
VclPtr<SfxPopupWindow> m_pCallee;
@@ -723,7 +721,6 @@ SfxFrameStatusListener::SfxFrameStatusListener(
// XStatusListener
void SAL_CALL SfxFrameStatusListener::statusChanged( const css::frame::FeatureStateEvent& rEvent )
-throw ( css::uno::RuntimeException, std::exception )
{
m_pCallee->statusChanged( rEvent );
}
diff --git a/sfx2/source/view/classificationcontroller.cxx b/sfx2/source/view/classificationcontroller.cxx
index 5abbff30be45..0c736331e030 100644
--- a/sfx2/source/view/classificationcontroller.cxx
+++ b/sfx2/source/view/classificationcontroller.cxx
@@ -64,18 +64,18 @@ public:
explicit ClassificationCategoriesController(const uno::Reference<uno::XComponentContext>& rContext);
// XServiceInfo
- OUString SAL_CALL getImplementationName() throw (uno::RuntimeException, std::exception) override;
- sal_Bool SAL_CALL supportsService(const OUString& rServiceName) throw (uno::RuntimeException, std::exception) override;
- uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (uno::RuntimeException, std::exception) override;
+ OUString SAL_CALL getImplementationName() override;
+ sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
+ uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
// XComponent
- void SAL_CALL dispose() throw (uno::RuntimeException, std::exception) override;
+ void SAL_CALL dispose() override;
// XToolbarController
- uno::Reference<awt::XWindow> SAL_CALL createItemWindow(const uno::Reference<awt::XWindow>& rParent) throw (uno::RuntimeException, std::exception) override;
+ uno::Reference<awt::XWindow> SAL_CALL createItemWindow(const uno::Reference<awt::XWindow>& rParent) override;
// XStatusListener
- void SAL_CALL statusChanged(const frame::FeatureStateEvent& rEvent) throw (uno::RuntimeException, std::exception) override;
+ void SAL_CALL statusChanged(const frame::FeatureStateEvent& rEvent) override;
void removeEntries();
};
@@ -119,17 +119,17 @@ ClassificationCategoriesController::ClassificationCategoriesController(const uno
}
-OUString ClassificationCategoriesController::getImplementationName() throw (uno::RuntimeException, std::exception)
+OUString ClassificationCategoriesController::getImplementationName()
{
return OUString("com.sun.star.comp.sfx2.ClassificationCategoriesController");
}
-sal_Bool ClassificationCategoriesController::supportsService(const OUString& rServiceName) throw (uno::RuntimeException, std::exception)
+sal_Bool ClassificationCategoriesController::supportsService(const OUString& rServiceName)
{
return cppu::supportsService(this, rServiceName);
}
-uno::Sequence<OUString> ClassificationCategoriesController::getSupportedServiceNames() throw (uno::RuntimeException, std::exception)
+uno::Sequence<OUString> ClassificationCategoriesController::getSupportedServiceNames()
{
uno::Sequence<OUString> aServices
{
@@ -138,7 +138,7 @@ uno::Sequence<OUString> ClassificationCategoriesController::getSupportedServiceN
return aServices;
}
-void ClassificationCategoriesController::dispose() throw (uno::RuntimeException, std::exception)
+void ClassificationCategoriesController::dispose()
{
SolarMutexGuard aSolarMutexGuard;
@@ -148,7 +148,7 @@ void ClassificationCategoriesController::dispose() throw (uno::RuntimeException,
m_xListener->dispose();
}
-uno::Reference<awt::XWindow> ClassificationCategoriesController::createItemWindow(const uno::Reference<awt::XWindow>& rParent) throw (uno::RuntimeException, std::exception)
+uno::Reference<awt::XWindow> ClassificationCategoriesController::createItemWindow(const uno::Reference<awt::XWindow>& rParent)
{
VclPtr<vcl::Window> pParent = VCLUnoHelper::GetWindow(rParent);
auto pToolbar = dynamic_cast<ToolBox*>(pParent.get());
@@ -178,7 +178,7 @@ IMPL_LINK(ClassificationCategoriesController, SelectHdl, ListBox&, rCategory, vo
comphelper::dispatchCommand(".uno:ClassificationApply", aPropertyValues);
}
-void ClassificationCategoriesController::statusChanged(const frame::FeatureStateEvent& /*rEvent*/) throw (uno::RuntimeException, std::exception)
+void ClassificationCategoriesController::statusChanged(const frame::FeatureStateEvent& /*rEvent*/)
{
if (!m_pClassification)
return;
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx
index 33323d64be96..63f06265f300 100644
--- a/sfx2/source/view/classificationhelper.cxx
+++ b/sfx2/source/view/classificationhelper.cxx
@@ -119,37 +119,34 @@ public:
SfxClassificationParser();
- void SAL_CALL startDocument() throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ void SAL_CALL startDocument() override;
- void SAL_CALL endDocument() throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ void SAL_CALL endDocument() override;
- void SAL_CALL startElement(const OUString& aName, const uno::Reference<xml::sax::XAttributeList>& xAttribs)
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ void SAL_CALL startElement(const OUString& aName, const uno::Reference<xml::sax::XAttributeList>& xAttribs) override;
- void SAL_CALL endElement(const OUString& aName) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ void SAL_CALL endElement(const OUString& aName) override;
- void SAL_CALL characters(const OUString& aChars) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ void SAL_CALL characters(const OUString& aChars) override;
- void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces) override;
- void SAL_CALL processingInstruction(const OUString& aTarget, const OUString& aData) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ void SAL_CALL processingInstruction(const OUString& aTarget, const OUString& aData) override;
- void SAL_CALL setDocumentLocator(const uno::Reference<xml::sax::XLocator>& xLocator)
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ void SAL_CALL setDocumentLocator(const uno::Reference<xml::sax::XLocator>& xLocator) override;
};
SfxClassificationParser::SfxClassificationParser() = default;
-void SAL_CALL SfxClassificationParser::startDocument() throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
+void SAL_CALL SfxClassificationParser::startDocument()
{
}
-void SAL_CALL SfxClassificationParser::endDocument() throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
+void SAL_CALL SfxClassificationParser::endDocument()
{
}
void SAL_CALL SfxClassificationParser::startElement(const OUString& rName, const uno::Reference<xml::sax::XAttributeList>& xAttribs)
-throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
if (rName == "baf:PolicyAuthorityName")
{
@@ -235,7 +232,7 @@ throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
}
}
-void SAL_CALL SfxClassificationParser::endElement(const OUString& rName) throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
+void SAL_CALL SfxClassificationParser::endElement(const OUString& rName)
{
if (rName == "baf:PolicyAuthorityName")
m_bInPolicyAuthorityName = false;
@@ -282,7 +279,7 @@ void SAL_CALL SfxClassificationParser::endElement(const OUString& rName) throw (
}
}
-void SAL_CALL SfxClassificationParser::characters(const OUString& rChars) throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
+void SAL_CALL SfxClassificationParser::characters(const OUString& rChars)
{
if (m_bInPolicyAuthorityName)
m_aPolicyAuthorityName += rChars;
@@ -300,15 +297,15 @@ void SAL_CALL SfxClassificationParser::characters(const OUString& rChars) throw
m_aValue += rChars;
}
-void SAL_CALL SfxClassificationParser::ignorableWhitespace(const OUString& /*rWhitespace*/) throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
+void SAL_CALL SfxClassificationParser::ignorableWhitespace(const OUString& /*rWhitespace*/)
{
}
-void SAL_CALL SfxClassificationParser::processingInstruction(const OUString& /*rTarget*/, const OUString& /*rData*/) throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
+void SAL_CALL SfxClassificationParser::processingInstruction(const OUString& /*rTarget*/, const OUString& /*rData*/)
{
}
-void SAL_CALL SfxClassificationParser::setDocumentLocator(const uno::Reference<xml::sax::XLocator>& /*xLocator*/) throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
+void SAL_CALL SfxClassificationParser::setDocumentLocator(const uno::Reference<xml::sax::XLocator>& /*xLocator*/)
{
}
diff --git a/sfx2/source/view/frmload.cxx b/sfx2/source/view/frmload.cxx
index ffdbfda5f78f..16d1d04a351e 100644
--- a/sfx2/source/view/frmload.cxx
+++ b/sfx2/source/view/frmload.cxx
@@ -103,20 +103,17 @@ class SfxFrameLoader_Impl : public ::cppu::WeakImplHelper< css::frame::XSynchron
public:
explicit SfxFrameLoader_Impl( const css::uno::Reference < css::uno::XComponentContext >& _rxContext );
- 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;
// XSynchronousFrameLoader
- virtual sal_Bool SAL_CALL load( const css::uno::Sequence< css::beans::PropertyValue >& _rArgs, const css::uno::Reference< css::frame::XFrame >& _rxFrame ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL cancel() throw( css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Bool SAL_CALL load( const css::uno::Sequence< css::beans::PropertyValue >& _rArgs, const css::uno::Reference< css::frame::XFrame >& _rxFrame ) override;
+ virtual void SAL_CALL cancel() override;
protected:
virtual ~SfxFrameLoader_Impl() override;
@@ -609,7 +606,6 @@ Reference< XController2 > SfxFrameLoader_Impl::impl_createDocumentView( const Re
sal_Bool SAL_CALL SfxFrameLoader_Impl::load( const Sequence< PropertyValue >& rArgs,
const Reference< XFrame >& _rTargetFrame )
- throw( RuntimeException, std::exception )
{
ENSURE_OR_THROW( _rTargetFrame.is(), "illegal NULL frame" );
@@ -753,24 +749,24 @@ sal_Bool SAL_CALL SfxFrameLoader_Impl::load( const Sequence< PropertyValue >& rA
return bLoadSuccess;
}
-void SfxFrameLoader_Impl::cancel() throw( RuntimeException, std::exception )
+void SfxFrameLoader_Impl::cancel()
{
}
/* XServiceInfo */
-OUString SAL_CALL SfxFrameLoader_Impl::getImplementationName() throw( RuntimeException, std::exception )
+OUString SAL_CALL SfxFrameLoader_Impl::getImplementationName()
{
return OUString("com.sun.star.comp.office.FrameLoader");
}
/* XServiceInfo */
-sal_Bool SAL_CALL SfxFrameLoader_Impl::supportsService( const OUString& sServiceName ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxFrameLoader_Impl::supportsService( const OUString& sServiceName )
{
return cppu::supportsService(this, sServiceName);
}
/* XServiceInfo */
-Sequence< OUString > SAL_CALL SfxFrameLoader_Impl::getSupportedServiceNames() throw( RuntimeException, std::exception )
+Sequence< OUString > SAL_CALL SfxFrameLoader_Impl::getSupportedServiceNames()
{
Sequence< OUString > seqServiceNames( 2 );
seqServiceNames.getArray() [0] = "com.sun.star.frame.SynchronousFrameLoader";
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index f216e55c38c5..0ca24239445b 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -125,43 +125,42 @@ public:
uno::Reference < frame::XFrame > GetFrame() const;
// XEmbeddedClient
- virtual void SAL_CALL saveObject() throw ( embed::ObjectSaveVetoException, uno::Exception, uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL visibilityChanged( sal_Bool bVisible ) throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL saveObject() override;
+ virtual void SAL_CALL visibilityChanged( sal_Bool bVisible ) override;
// XInplaceClient
- virtual sal_Bool SAL_CALL canInplaceActivate() throw ( uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL activatingInplace() throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL activatingUI() throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL deactivatedInplace() throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL deactivatedUI() throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual uno::Reference< css::frame::XLayoutManager > SAL_CALL getLayoutManager() throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual uno::Reference< frame::XDispatchProvider > SAL_CALL getInplaceDispatchProvider() throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual awt::Rectangle SAL_CALL getPlacement() throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual awt::Rectangle SAL_CALL getClipRectangle() throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL translateAccelerators( const uno::Sequence< awt::KeyEvent >& aKeys ) throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL scrollObject( const awt::Size& aOffset ) throw ( embed::WrongStateException, uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL changedPlacement( const awt::Rectangle& aPosRect ) throw ( embed::WrongStateException, uno::Exception, uno::RuntimeException, std::exception ) override;
+ virtual sal_Bool SAL_CALL canInplaceActivate() override;
+ virtual void SAL_CALL activatingInplace() override;
+ virtual void SAL_CALL activatingUI() override;
+ virtual void SAL_CALL deactivatedInplace() override;
+ virtual void SAL_CALL deactivatedUI() override;
+ virtual uno::Reference< css::frame::XLayoutManager > SAL_CALL getLayoutManager() override;
+ virtual uno::Reference< frame::XDispatchProvider > SAL_CALL getInplaceDispatchProvider() override;
+ virtual awt::Rectangle SAL_CALL getPlacement() override;
+ virtual awt::Rectangle SAL_CALL getClipRectangle() override;
+ virtual void SAL_CALL translateAccelerators( const uno::Sequence< awt::KeyEvent >& aKeys ) override;
+ virtual void SAL_CALL scrollObject( const awt::Size& aOffset ) override;
+ virtual void SAL_CALL changedPlacement( const awt::Rectangle& aPosRect ) override;
// XComponentSupplier
- virtual uno::Reference< util::XCloseable > SAL_CALL getComponent() throw ( uno::RuntimeException, std::exception ) override;
+ virtual uno::Reference< util::XCloseable > SAL_CALL getComponent() override;
// XWindowSupplier
- virtual uno::Reference< awt::XWindow > SAL_CALL getWindow() throw ( uno::RuntimeException, std::exception ) override;
+ virtual uno::Reference< awt::XWindow > SAL_CALL getWindow() override;
// document::XEventListener
- virtual void SAL_CALL notifyEvent( const document::EventObject& aEvent ) throw( uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL notifyEvent( const document::EventObject& aEvent ) override;
// XStateChangeListener
- virtual void SAL_CALL changingState( const css::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (css::embed::WrongStateException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL stateChanged( const css::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL changingState( const css::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) override;
+ virtual void SAL_CALL stateChanged( const css::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) override;
};
void SAL_CALL SfxInPlaceClient_Impl::changingState(
const css::lang::EventObject& /*aEvent*/,
::sal_Int32 /*nOldState*/,
::sal_Int32 /*nNewState*/ )
-throw (css::embed::WrongStateException, css::uno::RuntimeException, std::exception)
{
}
@@ -169,7 +168,6 @@ void SAL_CALL SfxInPlaceClient_Impl::stateChanged(
const css::lang::EventObject& /*aEvent*/,
::sal_Int32 nOldState,
::sal_Int32 nNewState )
-throw (css::uno::RuntimeException, std::exception)
{
if ( m_pClient && nOldState != embed::EmbedStates::LOADED && nNewState == embed::EmbedStates::RUNNING )
{
@@ -181,7 +179,7 @@ throw (css::uno::RuntimeException, std::exception)
}
}
-void SAL_CALL SfxInPlaceClient_Impl::notifyEvent( const document::EventObject& aEvent ) throw( uno::RuntimeException, std::exception )
+void SAL_CALL SfxInPlaceClient_Impl::notifyEvent( const document::EventObject& aEvent )
{
SolarMutexGuard aGuard;
@@ -194,7 +192,6 @@ void SAL_CALL SfxInPlaceClient_Impl::notifyEvent( const document::EventObject& a
}
void SAL_CALL SfxInPlaceClient_Impl::disposing( const css::lang::EventObject& /*aEvent*/ )
-throw (css::uno::RuntimeException, std::exception)
{
DELETEZ( m_pClient );
}
@@ -209,9 +206,6 @@ uno::Reference < frame::XFrame > SfxInPlaceClient_Impl::GetFrame() const
}
void SAL_CALL SfxInPlaceClient_Impl::saveObject()
- throw ( embed::ObjectSaveVetoException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
if ( !m_bStoreObject )
// client wants to discard the object (usually it means the container document is closed while an object is active
@@ -305,8 +299,6 @@ void SAL_CALL SfxInPlaceClient_Impl::saveObject()
void SAL_CALL SfxInPlaceClient_Impl::visibilityChanged( sal_Bool bVisible )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
@@ -321,7 +313,6 @@ void SAL_CALL SfxInPlaceClient_Impl::visibilityChanged( sal_Bool bVisible )
// XInplaceClient
sal_Bool SAL_CALL SfxInPlaceClient_Impl::canInplaceActivate()
- throw ( uno::RuntimeException, std::exception )
{
if ( !m_xObject.is() )
throw uno::RuntimeException();
@@ -335,8 +326,6 @@ sal_Bool SAL_CALL SfxInPlaceClient_Impl::canInplaceActivate()
void SAL_CALL SfxInPlaceClient_Impl::activatingInplace()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -344,8 +333,6 @@ void SAL_CALL SfxInPlaceClient_Impl::activatingInplace()
void SAL_CALL SfxInPlaceClient_Impl::activatingUI()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -357,8 +344,6 @@ void SAL_CALL SfxInPlaceClient_Impl::activatingUI()
void SAL_CALL SfxInPlaceClient_Impl::deactivatedInplace()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -366,8 +351,6 @@ void SAL_CALL SfxInPlaceClient_Impl::deactivatedInplace()
void SAL_CALL SfxInPlaceClient_Impl::deactivatedUI()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -378,8 +361,6 @@ void SAL_CALL SfxInPlaceClient_Impl::deactivatedUI()
uno::Reference< css::frame::XLayoutManager > SAL_CALL SfxInPlaceClient_Impl::getLayoutManager()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
uno::Reference < beans::XPropertySet > xFrame( GetFrame(), uno::UNO_QUERY );
if ( !xFrame.is() )
@@ -401,16 +382,12 @@ uno::Reference< css::frame::XLayoutManager > SAL_CALL SfxInPlaceClient_Impl::get
uno::Reference< frame::XDispatchProvider > SAL_CALL SfxInPlaceClient_Impl::getInplaceDispatchProvider()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
return uno::Reference < frame::XDispatchProvider >( GetFrame(), uno::UNO_QUERY_THROW );
}
awt::Rectangle SAL_CALL SfxInPlaceClient_Impl::getPlacement()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -426,8 +403,6 @@ awt::Rectangle SAL_CALL SfxInPlaceClient_Impl::getPlacement()
awt::Rectangle SAL_CALL SfxInPlaceClient_Impl::getClipRectangle()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -443,8 +418,6 @@ awt::Rectangle SAL_CALL SfxInPlaceClient_Impl::getClipRectangle()
void SAL_CALL SfxInPlaceClient_Impl::translateAccelerators( const uno::Sequence< awt::KeyEvent >& /*aKeys*/ )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -454,8 +427,6 @@ void SAL_CALL SfxInPlaceClient_Impl::translateAccelerators( const uno::Sequence<
void SAL_CALL SfxInPlaceClient_Impl::scrollObject( const awt::Size& /*aOffset*/ )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -463,9 +434,6 @@ void SAL_CALL SfxInPlaceClient_Impl::scrollObject( const awt::Size& /*aOffset*/
void SAL_CALL SfxInPlaceClient_Impl::changedPlacement( const awt::Rectangle& aPosRect )
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
uno::Reference< embed::XInplaceObject > xInplace( m_xObject, uno::UNO_QUERY );
if ( !xInplace.is() || !m_pClient || !m_pClient->GetEditWin() || !m_pClient->GetViewShell() )
@@ -515,7 +483,6 @@ void SAL_CALL SfxInPlaceClient_Impl::changedPlacement( const awt::Rectangle& aPo
// XComponentSupplier
uno::Reference< util::XCloseable > SAL_CALL SfxInPlaceClient_Impl::getComponent()
- throw ( uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetViewShell() )
throw uno::RuntimeException();
@@ -536,7 +503,6 @@ uno::Reference< util::XCloseable > SAL_CALL SfxInPlaceClient_Impl::getComponent(
// XWindowSupplier
uno::Reference< awt::XWindow > SAL_CALL SfxInPlaceClient_Impl::getWindow()
- throw ( uno::RuntimeException, std::exception )
{
if ( !m_pClient || !m_pClient->GetEditWin() )
throw uno::RuntimeException();
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx
index c68a851adb4f..8c273a78e69e 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -213,16 +213,16 @@ public:
--m_refCount;
}
- virtual void SAL_CALL start(const OUString& aText, sal_Int32 nRange) throw(RuntimeException, std::exception) override;
- virtual void SAL_CALL end() throw(RuntimeException, std::exception) override;
- virtual void SAL_CALL setText(const OUString& aText) throw(RuntimeException, std::exception) override;
- virtual void SAL_CALL setValue(sal_Int32 nValue) throw(RuntimeException, std::exception) override;
- virtual void SAL_CALL reset() throw(RuntimeException, std::exception) override;
+ virtual void SAL_CALL start(const OUString& aText, sal_Int32 nRange) override;
+ virtual void SAL_CALL end() override;
+ virtual void SAL_CALL setText(const OUString& aText) override;
+ virtual void SAL_CALL setValue(sal_Int32 nValue) override;
+ virtual void SAL_CALL reset() override;
- virtual void SAL_CALL disposing( const lang::EventObject& Source ) throw(RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const lang::EventObject& Source ) override;
};
-void SAL_CALL SfxStatusIndicator::start(const OUString& aText, sal_Int32 nRange) throw(RuntimeException, std::exception)
+void SAL_CALL SfxStatusIndicator::start(const OUString& aText, sal_Int32 nRange)
{
SolarMutexGuard aGuard;
if ( xOwner.is() )
@@ -241,7 +241,7 @@ void SAL_CALL SfxStatusIndicator::start(const OUString& aText, sal_Int32 nRange)
}
}
-void SAL_CALL SfxStatusIndicator::end() throw(RuntimeException, std::exception)
+void SAL_CALL SfxStatusIndicator::end()
{
SolarMutexGuard aGuard;
if ( xOwner.is() )
@@ -256,7 +256,7 @@ void SAL_CALL SfxStatusIndicator::end() throw(RuntimeException, std::exception)
}
}
-void SAL_CALL SfxStatusIndicator::setText(const OUString& aText) throw(RuntimeException, std::exception)
+void SAL_CALL SfxStatusIndicator::setText(const OUString& aText)
{
SolarMutexGuard aGuard;
if ( xOwner.is() )
@@ -271,7 +271,7 @@ void SAL_CALL SfxStatusIndicator::setText(const OUString& aText) throw(RuntimeEx
}
}
-void SAL_CALL SfxStatusIndicator::setValue( sal_Int32 nValue ) throw(RuntimeException, std::exception)
+void SAL_CALL SfxStatusIndicator::setValue( sal_Int32 nValue )
{
SolarMutexGuard aGuard;
if ( xOwner.is() )
@@ -290,7 +290,7 @@ void SAL_CALL SfxStatusIndicator::setValue( sal_Int32 nValue ) throw(RuntimeExce
}
}
-void SAL_CALL SfxStatusIndicator::reset() throw(RuntimeException, std::exception)
+void SAL_CALL SfxStatusIndicator::reset()
{
SolarMutexGuard aGuard;
if ( xOwner.is() )
@@ -305,7 +305,7 @@ void SAL_CALL SfxStatusIndicator::reset() throw(RuntimeException, std::exception
}
}
-void SAL_CALL SfxStatusIndicator::disposing( const lang::EventObject& /*Source*/ ) throw(RuntimeException, std::exception)
+void SAL_CALL SfxStatusIndicator::disposing( const lang::EventObject& /*Source*/ )
{
SolarMutexGuard aGuard;
xOwner = nullptr;
@@ -321,8 +321,8 @@ class IMPL_SfxBaseController_ListenerHelper : public ::cppu::WeakImplHelper< fra
public:
explicit IMPL_SfxBaseController_ListenerHelper( SfxBaseController* pController ) ;
- virtual void SAL_CALL frameAction( const frame::FrameActionEvent& aEvent ) throw (RuntimeException, std::exception) override ;
- virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) throw (RuntimeException, std::exception) override ;
+ virtual void SAL_CALL frameAction( const frame::FrameActionEvent& aEvent ) override ;
+ virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) override ;
private:
@@ -335,10 +335,9 @@ class IMPL_SfxBaseController_CloseListenerHelper : public ::cppu::WeakImplHelper
public:
explicit IMPL_SfxBaseController_CloseListenerHelper( SfxBaseController* pController ) ;
- virtual void SAL_CALL queryClosing( const lang::EventObject& aEvent, sal_Bool bDeliverOwnership )
- throw (RuntimeException, util::CloseVetoException, std::exception) override ;
- virtual void SAL_CALL notifyClosing( const lang::EventObject& aEvent ) throw (RuntimeException, std::exception) override ;
- virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) throw (RuntimeException, std::exception) override ;
+ virtual void SAL_CALL queryClosing( const lang::EventObject& aEvent, sal_Bool bDeliverOwnership ) override ;
+ virtual void SAL_CALL notifyClosing( const lang::EventObject& aEvent ) override ;
+ virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) override ;
private:
@@ -351,12 +350,11 @@ IMPL_SfxBaseController_CloseListenerHelper::IMPL_SfxBaseController_CloseListener
{
}
-void SAL_CALL IMPL_SfxBaseController_CloseListenerHelper::disposing( const lang::EventObject& /*aEvent*/ ) throw( RuntimeException, std::exception )
+void SAL_CALL IMPL_SfxBaseController_CloseListenerHelper::disposing( const lang::EventObject& /*aEvent*/ )
{
}
void SAL_CALL IMPL_SfxBaseController_CloseListenerHelper::queryClosing( const lang::EventObject& aEvent, sal_Bool bDeliverOwnership )
- throw (RuntimeException, util::CloseVetoException, std::exception)
{
SolarMutexGuard aGuard;
SfxViewShell* pShell = m_pController->GetViewShell_Impl();
@@ -380,7 +378,7 @@ void SAL_CALL IMPL_SfxBaseController_CloseListenerHelper::queryClosing( const la
}
}
-void SAL_CALL IMPL_SfxBaseController_CloseListenerHelper::notifyClosing( const lang::EventObject& /*aEvent*/ ) throw (RuntimeException, std::exception)
+void SAL_CALL IMPL_SfxBaseController_CloseListenerHelper::notifyClosing( const lang::EventObject& /*aEvent*/ )
{
}
@@ -430,7 +428,7 @@ IMPL_SfxBaseController_ListenerHelper::IMPL_SfxBaseController_ListenerHelper(
{
}
-void SAL_CALL IMPL_SfxBaseController_ListenerHelper::frameAction( const frame::FrameActionEvent& aEvent ) throw( RuntimeException, std::exception )
+void SAL_CALL IMPL_SfxBaseController_ListenerHelper::frameAction( const frame::FrameActionEvent& aEvent )
{
SolarMutexGuard aGuard;
if (
@@ -455,7 +453,7 @@ void SAL_CALL IMPL_SfxBaseController_ListenerHelper::frameAction( const frame::F
// IMPL_SfxBaseController_ListenerHelper -> XEventListener
-void SAL_CALL IMPL_SfxBaseController_ListenerHelper::disposing( const lang::EventObject& /*aEvent*/ ) throw( RuntimeException, std::exception )
+void SAL_CALL IMPL_SfxBaseController_ListenerHelper::disposing( const lang::EventObject& /*aEvent*/ )
{
SolarMutexGuard aGuard;
if ( m_pController && m_pController->getFrame().is() )
@@ -480,7 +478,7 @@ SfxBaseController::~SfxBaseController()
// SfxBaseController -> XController2
-Reference< XWindow > SAL_CALL SfxBaseController::getComponentWindow() throw (RuntimeException, std::exception)
+Reference< XWindow > SAL_CALL SfxBaseController::getComponentWindow()
{
SolarMutexGuard aGuard;
if ( !m_pData->m_pViewShell )
@@ -489,7 +487,7 @@ Reference< XWindow > SAL_CALL SfxBaseController::getComponentWindow() throw (Run
return Reference< XWindow >( GetViewFrame_Impl().GetFrame().GetWindow().GetComponentInterface(), UNO_QUERY_THROW );
}
-OUString SAL_CALL SfxBaseController::getViewControllerName() throw (RuntimeException, std::exception)
+OUString SAL_CALL SfxBaseController::getViewControllerName()
{
SolarMutexGuard aGuard;
if ( !m_pData->m_pViewShell || !m_pData->m_pViewShell->GetObjectShell() )
@@ -506,7 +504,7 @@ OUString SAL_CALL SfxBaseController::getViewControllerName() throw (RuntimeExcep
return sViewName;
}
-Sequence< PropertyValue > SAL_CALL SfxBaseController::getCreationArguments() throw (RuntimeException, std::exception)
+Sequence< PropertyValue > SAL_CALL SfxBaseController::getCreationArguments()
{
SolarMutexGuard aGuard;
if ( !m_pData->m_pViewShell || !m_pData->m_pViewShell->GetObjectShell() )
@@ -530,7 +528,7 @@ SfxViewFrame& SfxBaseController::GetViewFrame_Impl() const
}
-Reference<XSidebarProvider> SAL_CALL SfxBaseController::getSidebar() throw (RuntimeException, std::exception)
+Reference<XSidebarProvider> SAL_CALL SfxBaseController::getSidebar()
{
SfxViewFrame& rViewFrame = GetViewFrame_Impl();
SfxFrame& rFrame = rViewFrame.GetFrame();
@@ -543,7 +541,7 @@ Reference<XSidebarProvider> SAL_CALL SfxBaseController::getSidebar() throw (Runt
// SfxBaseController -> XController2 -> XController
-void SAL_CALL SfxBaseController::attachFrame( const Reference< frame::XFrame >& xFrame ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseController::attachFrame( const Reference< frame::XFrame >& xFrame )
{
Reference< frame::XFrame > xTemp( getFrame() ) ;
@@ -581,7 +579,7 @@ void SAL_CALL SfxBaseController::attachFrame( const Reference< frame::XFrame >&
// SfxBaseController -> XController
-sal_Bool SAL_CALL SfxBaseController::attachModel( const Reference< frame::XModel >& xModel ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxBaseController::attachModel( const Reference< frame::XModel >& xModel )
{
if ( m_pData->m_pViewShell && xModel.is() && xModel != m_pData->m_pViewShell->GetObjectShell()->GetModel() )
{
@@ -600,7 +598,7 @@ sal_Bool SAL_CALL SfxBaseController::attachModel( const Reference< frame::XModel
// SfxBaseController -> XController
-sal_Bool SAL_CALL SfxBaseController::suspend( sal_Bool bSuspend ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL SfxBaseController::suspend( sal_Bool bSuspend )
{
SolarMutexGuard aGuard;
@@ -658,7 +656,7 @@ sal_Bool SAL_CALL SfxBaseController::suspend( sal_Bool bSuspend ) throw( Runtime
// SfxBaseController -> XController
-uno::Any SfxBaseController::getViewData() throw( RuntimeException, std::exception )
+uno::Any SfxBaseController::getViewData()
{
uno::Any aAny;
OUString sData;
@@ -676,7 +674,7 @@ uno::Any SfxBaseController::getViewData() throw( RuntimeException, std::exceptio
// SfxBaseController -> XController
-void SAL_CALL SfxBaseController::restoreViewData( const uno::Any& aValue ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseController::restoreViewData( const uno::Any& aValue )
{
SolarMutexGuard aGuard;
if ( m_pData->m_pViewShell )
@@ -691,7 +689,7 @@ void SAL_CALL SfxBaseController::restoreViewData( const uno::Any& aValue ) throw
// SfxBaseController -> XController
-Reference< frame::XFrame > SAL_CALL SfxBaseController::getFrame() throw( RuntimeException, std::exception )
+Reference< frame::XFrame > SAL_CALL SfxBaseController::getFrame()
{
SolarMutexGuard aGuard;
return m_pData->m_xFrame;
@@ -701,7 +699,7 @@ Reference< frame::XFrame > SAL_CALL SfxBaseController::getFrame() throw( Runtime
// SfxBaseController -> XController
-Reference< frame::XModel > SAL_CALL SfxBaseController::getModel() throw( RuntimeException, std::exception )
+Reference< frame::XModel > SAL_CALL SfxBaseController::getModel()
{
SolarMutexGuard aGuard;
return m_pData->m_pViewShell ? m_pData->m_pViewShell->GetObjectShell()->GetModel() : Reference < frame::XModel > () ;
@@ -713,7 +711,7 @@ Reference< frame::XModel > SAL_CALL SfxBaseController::getModel() throw( Runtime
Reference< frame::XDispatch > SAL_CALL SfxBaseController::queryDispatch( const util::URL& aURL ,
const OUString& sTargetFrameName,
- sal_Int32 eSearchFlags ) throw( RuntimeException, std::exception )
+ sal_Int32 eSearchFlags )
{
SolarMutexGuard aGuard;
Reference< frame::XDispatch > xDisp;
@@ -869,7 +867,7 @@ Reference< frame::XDispatch > SAL_CALL SfxBaseController::queryDispatch( const
// SfxBaseController -> XDispatchProvider
-uno::Sequence< Reference< frame::XDispatch > > SAL_CALL SfxBaseController::queryDispatches( const uno::Sequence< frame::DispatchDescriptor >& seqDescripts ) throw( RuntimeException, std::exception )
+uno::Sequence< Reference< frame::XDispatch > > SAL_CALL SfxBaseController::queryDispatches( const uno::Sequence< frame::DispatchDescriptor >& seqDescripts )
{
// Create return list - which must have same size then the given descriptor
// It's not allowed to pack it!
@@ -891,7 +889,6 @@ uno::Sequence< Reference< frame::XDispatch > > SAL_CALL SfxBaseController::query
frame::BorderWidths SAL_CALL SfxBaseController::getBorder()
- throw ( RuntimeException, std::exception )
{
frame::BorderWidths aResult;
@@ -909,21 +906,18 @@ frame::BorderWidths SAL_CALL SfxBaseController::getBorder()
}
void SAL_CALL SfxBaseController::addBorderResizeListener( const Reference< frame::XBorderResizeListener >& xListener )
- throw ( RuntimeException, std::exception )
{
m_pData->m_aListenerContainer.addInterface( cppu::UnoType<frame::XBorderResizeListener>::get(),
xListener );
}
void SAL_CALL SfxBaseController::removeBorderResizeListener( const Reference< frame::XBorderResizeListener >& xListener )
- throw ( RuntimeException, std::exception )
{
m_pData->m_aListenerContainer.removeInterface( cppu::UnoType<frame::XBorderResizeListener>::get(),
xListener );
}
awt::Rectangle SAL_CALL SfxBaseController::queryBorderedArea( const awt::Rectangle& aPreliminaryRectangle )
- throw ( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
if ( m_pData->m_pViewShell )
@@ -964,7 +958,7 @@ void SfxBaseController::BorderWidthsChanged_Impl()
// SfxBaseController -> XComponent
-void SAL_CALL SfxBaseController::dispose() throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseController::dispose()
{
SolarMutexGuard aGuard;
Reference< XController > xTmp( this );
@@ -1035,7 +1029,7 @@ void SAL_CALL SfxBaseController::dispose() throw( RuntimeException, std::excepti
// SfxBaseController -> XComponent
-void SAL_CALL SfxBaseController::addEventListener( const Reference< lang::XEventListener >& aListener ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseController::addEventListener( const Reference< lang::XEventListener >& aListener )
{
m_pData->m_aListenerContainer.addInterface( cppu::UnoType<lang::XEventListener>::get(), aListener );
}
@@ -1044,7 +1038,7 @@ void SAL_CALL SfxBaseController::addEventListener( const Reference< lang::XEvent
// SfxBaseController -> XComponent
-void SAL_CALL SfxBaseController::removeEventListener( const Reference< lang::XEventListener >& aListener ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseController::removeEventListener( const Reference< lang::XEventListener >& aListener )
{
m_pData->m_aListenerContainer.removeInterface( cppu::UnoType<lang::XEventListener>::get(), aListener );
}
@@ -1075,7 +1069,7 @@ SfxViewShell* SfxBaseController::GetViewShell_Impl() const
return m_pData->m_pViewShell;
}
-Reference< task::XStatusIndicator > SAL_CALL SfxBaseController::getStatusIndicator( ) throw (RuntimeException, std::exception)
+Reference< task::XStatusIndicator > SAL_CALL SfxBaseController::getStatusIndicator( )
{
SolarMutexGuard aGuard;
if ( m_pData->m_pViewShell && !m_pData->m_xIndicator.is() )
@@ -1083,7 +1077,7 @@ Reference< task::XStatusIndicator > SAL_CALL SfxBaseController::getStatusIndicat
return m_pData->m_xIndicator;
}
-void SAL_CALL SfxBaseController::registerContextMenuInterceptor( const Reference< ui::XContextMenuInterceptor >& xInterceptor ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseController::registerContextMenuInterceptor( const Reference< ui::XContextMenuInterceptor >& xInterceptor )
{
m_pData->m_aInterceptorContainer.addInterface( xInterceptor );
@@ -1093,7 +1087,7 @@ void SAL_CALL SfxBaseController::registerContextMenuInterceptor( const Reference
m_pData->m_pViewShell->AddContextMenuInterceptor_Impl( xInterceptor );
}
-void SAL_CALL SfxBaseController::releaseContextMenuInterceptor( const Reference< ui::XContextMenuInterceptor >& xInterceptor ) throw( RuntimeException, std::exception )
+void SAL_CALL SfxBaseController::releaseContextMenuInterceptor( const Reference< ui::XContextMenuInterceptor >& xInterceptor )
{
m_pData->m_aInterceptorContainer.removeInterface( xInterceptor );
@@ -1103,32 +1097,31 @@ void SAL_CALL SfxBaseController::releaseContextMenuInterceptor( const Reference<
m_pData->m_pViewShell->RemoveContextMenuInterceptor_Impl( xInterceptor );
}
-void SAL_CALL SfxBaseController::addKeyHandler( const Reference< awt::XKeyHandler >& xHandler ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxBaseController::addKeyHandler( const Reference< awt::XKeyHandler >& xHandler )
{
SolarMutexGuard aGuard;
m_pData->m_aUserInputInterception.addKeyHandler( xHandler );
}
-void SAL_CALL SfxBaseController::removeKeyHandler( const Reference< awt::XKeyHandler >& xHandler ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxBaseController::removeKeyHandler( const Reference< awt::XKeyHandler >& xHandler )
{
SolarMutexGuard aGuard;
m_pData->m_aUserInputInterception.removeKeyHandler( xHandler );
}
-void SAL_CALL SfxBaseController::addMouseClickHandler( const Reference< awt::XMouseClickHandler >& xHandler ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxBaseController::addMouseClickHandler( const Reference< awt::XMouseClickHandler >& xHandler )
{
SolarMutexGuard aGuard;
m_pData->m_aUserInputInterception.addMouseClickHandler( xHandler );
}
-void SAL_CALL SfxBaseController::removeMouseClickHandler( const Reference< awt::XMouseClickHandler >& xHandler ) throw (RuntimeException, std::exception)
+void SAL_CALL SfxBaseController::removeMouseClickHandler( const Reference< awt::XMouseClickHandler >& xHandler )
{
SolarMutexGuard aGuard;
m_pData->m_aUserInputInterception.removeMouseClickHandler( xHandler );
}
uno::Sequence< sal_Int16 > SAL_CALL SfxBaseController::getSupportedCommandGroups()
-throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1160,7 +1153,6 @@ throw (RuntimeException, std::exception)
}
uno::Sequence< frame::DispatchInformation > SAL_CALL SfxBaseController::getConfigurableDispatchInformation( sal_Int16 nCmdGroup )
-throw (RuntimeException, std::exception)
{
std::list< frame::DispatchInformation > aCmdList;
@@ -1493,7 +1485,6 @@ Reference< frame::XTitle > SfxBaseController::impl_getTitleHelper ()
// frame::XTitle
OUString SAL_CALL SfxBaseController::getTitle()
- throw (RuntimeException, std::exception)
{
return impl_getTitleHelper()->getTitle ();
}
@@ -1501,7 +1492,6 @@ OUString SAL_CALL SfxBaseController::getTitle()
// frame::XTitle
void SAL_CALL SfxBaseController::setTitle(const OUString& sTitle)
- throw (RuntimeException, std::exception)
{
impl_getTitleHelper()->setTitle (sTitle);
}
@@ -1509,7 +1499,6 @@ void SAL_CALL SfxBaseController::setTitle(const OUString& sTitle)
// frame::XTitleChangeBroadcaster
void SAL_CALL SfxBaseController::addTitleChangeListener(const Reference< frame::XTitleChangeListener >& xListener)
- throw (RuntimeException, std::exception)
{
Reference< frame::XTitleChangeBroadcaster > xBroadcaster(impl_getTitleHelper(), uno::UNO_QUERY);
if (xBroadcaster.is ())
@@ -1519,14 +1508,13 @@ void SAL_CALL SfxBaseController::addTitleChangeListener(const Reference< frame::
// frame::XTitleChangeBroadcaster
void SAL_CALL SfxBaseController::removeTitleChangeListener(const Reference< frame::XTitleChangeListener >& xListener)
- throw (RuntimeException, std::exception)
{
Reference< frame::XTitleChangeBroadcaster > xBroadcaster(impl_getTitleHelper(), uno::UNO_QUERY);
if (xBroadcaster.is ())
xBroadcaster->removeTitleChangeListener (xListener);
}
-void SfxBaseController::initialize( const css::uno::Sequence< css::uno::Any >& /*aArguments*/ ) throw (css::uno::RuntimeException, std::exception)
+void SfxBaseController::initialize( const css::uno::Sequence< css::uno::Any >& /*aArguments*/ )
{
}
diff --git a/sfx2/source/view/userinputinterception.cxx b/sfx2/source/view/userinputinterception.cxx
index 54062262b4bb..3c830c5bc653 100644
--- a/sfx2/source/view/userinputinterception.cxx
+++ b/sfx2/source/view/userinputinterception.cxx
@@ -124,27 +124,27 @@ namespace sfx2
}
- void UserInputInterception::addKeyHandler( const Reference< XKeyHandler >& _rxHandler ) throw (RuntimeException)
+ void UserInputInterception::addKeyHandler( const Reference< XKeyHandler >& _rxHandler )
{
if ( _rxHandler.is() )
m_pData->m_aKeyHandlers.addInterface( _rxHandler );
}
- void UserInputInterception::removeKeyHandler( const Reference< XKeyHandler >& _rxHandler ) throw (RuntimeException)
+ void UserInputInterception::removeKeyHandler( const Reference< XKeyHandler >& _rxHandler )
{
m_pData->m_aKeyHandlers.removeInterface( _rxHandler );
}
- void UserInputInterception::addMouseClickHandler( const Reference< XMouseClickHandler >& _rxHandler ) throw (RuntimeException)
+ void UserInputInterception::addMouseClickHandler( const Reference< XMouseClickHandler >& _rxHandler )
{
if ( _rxHandler.is() )
m_pData->m_aMouseClickHandlers.addInterface( _rxHandler );
}
- void UserInputInterception::removeMouseClickHandler( const Reference< XMouseClickHandler >& _rxHandler ) throw (RuntimeException)
+ void UserInputInterception::removeMouseClickHandler( const Reference< XMouseClickHandler >& _rxHandler )
{
m_pData->m_aMouseClickHandlers.removeInterface( _rxHandler );
}
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 04e600f096bf..7ac1bcef8343 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -106,12 +106,10 @@ public:
SfxClipboardChangeListener( SfxViewShell* pView, const uno::Reference< datatransfer::clipboard::XClipboardNotifier >& xClpbrdNtfr );
// XEventListener
- virtual void SAL_CALL disposing( const lang::EventObject& rEventObject )
- throw ( uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL disposing( const lang::EventObject& rEventObject ) override;
// XClipboardListener
- virtual void SAL_CALL changedContents( const datatransfer::clipboard::ClipboardEvent& rEventObject )
- throw ( uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL changedContents( const datatransfer::clipboard::ClipboardEvent& rEventObject ) override;
void DisconnectViewShell() { m_pViewShell = nullptr; }
void ChangedContents();
@@ -184,7 +182,6 @@ IMPL_STATIC_LINK( SfxClipboardChangeListener, AsyncExecuteHdl_Impl, void*, p, vo
}
void SAL_CALL SfxClipboardChangeListener::disposing( const lang::EventObject& /*rEventObject*/ )
- throw ( uno::RuntimeException, std::exception )
{
// Either clipboard or ViewShell is going to be destroyed -> no interest in listening anymore
uno::Reference< lang::XComponent > xCtrl( m_xCtrl );
@@ -204,7 +201,6 @@ void SAL_CALL SfxClipboardChangeListener::disposing( const lang::EventObject& /*
}
void SAL_CALL SfxClipboardChangeListener::changedContents( const datatransfer::clipboard::ClipboardEvent& )
- throw ( RuntimeException, std::exception )
{
// Make asynchronous call to avoid locking SolarMutex which is the
// root for many deadlocks, especially in conjunction with the "Windows"