summaryrefslogtreecommitdiff
path: root/embeddedobj
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 /embeddedobj
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 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/embedobj.cxx33
-rw-r--r--embeddedobj/source/commonembedding/inplaceobj.cxx8
-rw-r--r--embeddedobj/source/commonembedding/miscobj.cxx14
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx45
-rw-r--r--embeddedobj/source/commonembedding/specialobject.cxx24
-rw-r--r--embeddedobj/source/commonembedding/visobj.cxx14
-rw-r--r--embeddedobj/source/commonembedding/xfactory.cxx36
-rw-r--r--embeddedobj/source/commonembedding/xfactory.hxx26
-rw-r--r--embeddedobj/source/general/docholder.cxx16
-rw-r--r--embeddedobj/source/general/dummyobject.cxx87
-rw-r--r--embeddedobj/source/general/intercept.cxx28
-rw-r--r--embeddedobj/source/general/xcreator.cxx24
-rw-r--r--embeddedobj/source/inc/closepreventer.hxx6
-rw-r--r--embeddedobj/source/inc/commonembobj.hxx205
-rw-r--r--embeddedobj/source/inc/docholder.hxx30
-rw-r--r--embeddedobj/source/inc/dummyobject.hxx165
-rw-r--r--embeddedobj/source/inc/intercept.hxx48
-rw-r--r--embeddedobj/source/inc/oleembobj.hxx222
-rw-r--r--embeddedobj/source/inc/specialobject.hxx38
-rw-r--r--embeddedobj/source/inc/xcreator.hxx16
-rw-r--r--embeddedobj/source/msole/closepreventer.cxx3
-rw-r--r--embeddedobj/source/msole/graphconvert.cxx2
-rw-r--r--embeddedobj/source/msole/mtnotification.hxx3
-rw-r--r--embeddedobj/source/msole/olecomponent.cxx22
-rw-r--r--embeddedobj/source/msole/olecomponent.hxx29
-rw-r--r--embeddedobj/source/msole/oleembed.cxx27
-rw-r--r--embeddedobj/source/msole/olemisc.cxx25
-rw-r--r--embeddedobj/source/msole/olepersist.cxx52
-rw-r--r--embeddedobj/source/msole/olepersist.hxx3
-rw-r--r--embeddedobj/source/msole/olevisual.cxx15
-rw-r--r--embeddedobj/source/msole/ownview.cxx9
-rw-r--r--embeddedobj/source/msole/ownview.hxx8
-rw-r--r--embeddedobj/source/msole/xdialogcreator.cxx11
-rw-r--r--embeddedobj/source/msole/xdialogcreator.hxx10
-rw-r--r--embeddedobj/source/msole/xolefactory.cxx24
-rw-r--r--embeddedobj/source/msole/xolefactory.hxx16
36 files changed, 249 insertions, 1095 deletions
diff --git a/embeddedobj/source/commonembedding/embedobj.cxx b/embeddedobj/source/commonembedding/embedobj.cxx
index 881a75b09dd0..8184d88ec9dc 100644
--- a/embeddedobj/source/commonembedding/embedobj.cxx
+++ b/embeddedobj/source/commonembedding/embedobj.cxx
@@ -417,10 +417,6 @@ uno::Sequence< sal_Int32 > const & OCommonEmbeddedObject::GetIntermediateStatesS
void SAL_CALL OCommonEmbeddedObject::changeState( sal_Int32 nNewState )
- throw ( embed::UnreachableStateException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
{
::osl::ResettableMutexGuard aGuard( m_aMutex );
@@ -487,8 +483,6 @@ void SAL_CALL OCommonEmbeddedObject::changeState( sal_Int32 nNewState )
uno::Sequence< sal_Int32 > SAL_CALL OCommonEmbeddedObject::getReachableStates()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
@@ -502,8 +496,6 @@ uno::Sequence< sal_Int32 > SAL_CALL OCommonEmbeddedObject::getReachableStates()
sal_Int32 SAL_CALL OCommonEmbeddedObject::getCurrentState()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
@@ -517,11 +509,6 @@ sal_Int32 SAL_CALL OCommonEmbeddedObject::getCurrentState()
void SAL_CALL OCommonEmbeddedObject::doVerb( sal_Int32 nVerbID )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- embed::UnreachableStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
SolarMutexGuard aSolarGuard;
//TODO: a gross hack to avoid deadlocks when this is called from the
@@ -564,8 +551,6 @@ void SAL_CALL OCommonEmbeddedObject::doVerb( sal_Int32 nVerbID )
uno::Sequence< embed::VerbDescriptor > SAL_CALL OCommonEmbeddedObject::getSupportedVerbs()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
@@ -580,8 +565,6 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL OCommonEmbeddedObject::getSuppor
void SAL_CALL OCommonEmbeddedObject::setClientSite(
const uno::Reference< embed::XEmbeddedClient >& xClient )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -600,8 +583,6 @@ void SAL_CALL OCommonEmbeddedObject::setClientSite(
uno::Reference< embed::XEmbeddedClient > SAL_CALL OCommonEmbeddedObject::getClientSite()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
@@ -615,9 +596,6 @@ uno::Reference< embed::XEmbeddedClient > SAL_CALL OCommonEmbeddedObject::getClie
void SAL_CALL OCommonEmbeddedObject::update()
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -632,8 +610,6 @@ void SAL_CALL OCommonEmbeddedObject::update()
void SAL_CALL OCommonEmbeddedObject::setUpdateMode( sal_Int32 nMode )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -651,8 +627,6 @@ void SAL_CALL OCommonEmbeddedObject::setUpdateMode( sal_Int32 nMode )
sal_Int64 SAL_CALL OCommonEmbeddedObject::getStatus( sal_Int64 )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
@@ -662,7 +636,6 @@ sal_Int64 SAL_CALL OCommonEmbeddedObject::getStatus( sal_Int64 )
void SAL_CALL OCommonEmbeddedObject::setContainerName( const OUString& sName )
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -671,12 +644,12 @@ void SAL_CALL OCommonEmbeddedObject::setContainerName( const OUString& sName )
m_aContainerName = sName;
}
-css::uno::Reference< css::uno::XInterface > SAL_CALL OCommonEmbeddedObject::getParent() throw (css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::uno::XInterface > SAL_CALL OCommonEmbeddedObject::getParent()
{
return m_xParent;
}
-void SAL_CALL OCommonEmbeddedObject::setParent( const css::uno::Reference< css::uno::XInterface >& xParent ) throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception)
+void SAL_CALL OCommonEmbeddedObject::setParent( const css::uno::Reference< css::uno::XInterface >& xParent )
{
m_xParent = xParent;
if ( m_nObjectState != -1 && m_nObjectState != embed::EmbedStates::LOADED )
@@ -688,7 +661,7 @@ void SAL_CALL OCommonEmbeddedObject::setParent( const css::uno::Reference< css::
}
// XDefaultSizeTransmitter
-void SAL_CALL OCommonEmbeddedObject::setDefaultSize( const css::awt::Size& rSize_100TH_MM ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL OCommonEmbeddedObject::setDefaultSize( const css::awt::Size& rSize_100TH_MM )
{
//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method
m_aDefaultSizeForChart_In_100TH_MM = rSize_100TH_MM;
diff --git a/embeddedobj/source/commonembedding/inplaceobj.cxx b/embeddedobj/source/commonembedding/inplaceobj.cxx
index 1b618553806c..42135a5cc0d4 100644
--- a/embeddedobj/source/commonembedding/inplaceobj.cxx
+++ b/embeddedobj/source/commonembedding/inplaceobj.cxx
@@ -36,9 +36,6 @@ bool RectanglesEqual( const awt::Rectangle& aRect1, const awt::Rectangle& aRect2
void SAL_CALL OCommonEmbeddedObject::setObjectRectangles( const awt::Rectangle& aPosRect,
const awt::Rectangle& aClipRect )
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -62,17 +59,12 @@ void SAL_CALL OCommonEmbeddedObject::setObjectRectangles( const awt::Rectangle&
}
void SAL_CALL OCommonEmbeddedObject::enableModeless( sal_Bool /*bEnable*/ )
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// TODO: notify model that it can not use modal dialogs
}
void SAL_CALL OCommonEmbeddedObject::translateAccelerators(
const uno::Sequence< awt::KeyEvent >& /*aKeys*/ )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// TODO: UI activation related
}
diff --git a/embeddedobj/source/commonembedding/miscobj.cxx b/embeddedobj/source/commonembedding/miscobj.cxx
index eb29ac43eff4..865ebd89cf23 100644
--- a/embeddedobj/source/commonembedding/miscobj.cxx
+++ b/embeddedobj/source/commonembedding/miscobj.cxx
@@ -350,7 +350,6 @@ void OCommonEmbeddedObject::PostEvent_Impl( const OUString& aEventName )
uno::Any SAL_CALL OCommonEmbeddedObject::queryInterface( const uno::Type& rType )
- throw( uno::RuntimeException, std::exception )
{
uno::Any aReturn;
@@ -403,7 +402,6 @@ void SAL_CALL OCommonEmbeddedObject::release()
uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getClassID()
- throw ( uno::RuntimeException, std::exception )
{
if ( m_bDisposed )
throw lang::DisposedException();
@@ -412,7 +410,6 @@ uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getClassID()
}
OUString SAL_CALL OCommonEmbeddedObject::getClassName()
- throw ( uno::RuntimeException, std::exception )
{
if ( m_bDisposed )
throw lang::DisposedException();
@@ -422,8 +419,6 @@ OUString SAL_CALL OCommonEmbeddedObject::getClassName()
void SAL_CALL OCommonEmbeddedObject::setClassInfo(
const uno::Sequence< sal_Int8 >& /*aClassID*/, const OUString& /*aClassName*/ )
- throw ( lang::NoSupportException,
- uno::RuntimeException, std::exception )
{
// the object class info can not be changed explicitly
throw lang::NoSupportException(); //TODO:
@@ -431,7 +426,6 @@ void SAL_CALL OCommonEmbeddedObject::setClassInfo(
uno::Reference< util::XCloseable > SAL_CALL OCommonEmbeddedObject::getComponent()
- throw ( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
if ( m_bDisposed )
@@ -450,7 +444,6 @@ uno::Reference< util::XCloseable > SAL_CALL OCommonEmbeddedObject::getComponent(
void SAL_CALL OCommonEmbeddedObject::addStateChangeListener( const uno::Reference< embed::XStateChangeListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
if ( m_bDisposed )
@@ -466,7 +459,6 @@ void SAL_CALL OCommonEmbeddedObject::addStateChangeListener( const uno::Referenc
void SAL_CALL OCommonEmbeddedObject::removeStateChangeListener(
const uno::Reference< embed::XStateChangeListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if ( m_pInterfaceContainer )
@@ -476,8 +468,6 @@ void SAL_CALL OCommonEmbeddedObject::removeStateChangeListener(
void SAL_CALL OCommonEmbeddedObject::close( sal_Bool bDeliverOwnership )
- throw ( util::CloseVetoException,
- uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
if ( m_bClosed )
@@ -579,7 +569,6 @@ void SAL_CALL OCommonEmbeddedObject::close( sal_Bool bDeliverOwnership )
void SAL_CALL OCommonEmbeddedObject::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
if ( m_bDisposed )
@@ -593,7 +582,6 @@ void SAL_CALL OCommonEmbeddedObject::addCloseListener( const uno::Reference< uti
void SAL_CALL OCommonEmbeddedObject::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if ( m_pInterfaceContainer )
@@ -603,7 +591,6 @@ void SAL_CALL OCommonEmbeddedObject::removeCloseListener( const uno::Reference<
void SAL_CALL OCommonEmbeddedObject::addEventListener( const uno::Reference< document::XEventListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
if ( m_bDisposed )
@@ -617,7 +604,6 @@ void SAL_CALL OCommonEmbeddedObject::addEventListener( const uno::Reference< doc
void SAL_CALL OCommonEmbeddedObject::removeEventListener( const uno::Reference< document::XEventListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
if ( m_pInterfaceContainer )
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index d7dfd4ebe925..a711988631a2 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -928,11 +928,6 @@ void SAL_CALL OCommonEmbeddedObject::setPersistentEntry(
sal_Int32 nEntryConnectionMode,
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// the type of the object must be already set
// a kind of typedetection should be done in the factory
@@ -1154,11 +1149,6 @@ void SAL_CALL OCommonEmbeddedObject::storeToEntry( const uno::Reference< embed::
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::ResettableMutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1285,11 +1275,6 @@ void SAL_CALL OCommonEmbeddedObject::storeAsEntry( const uno::Reference< embed::
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// TODO: use lObjArgs
@@ -1429,9 +1414,6 @@ void SAL_CALL OCommonEmbeddedObject::storeAsEntry( const uno::Reference< embed::
void SAL_CALL OCommonEmbeddedObject::saveCompleted( sal_Bool bUseNew )
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1510,8 +1492,6 @@ void SAL_CALL OCommonEmbeddedObject::saveCompleted( sal_Bool bUseNew )
sal_Bool SAL_CALL OCommonEmbeddedObject::hasEntry()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1530,8 +1510,6 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::hasEntry()
OUString SAL_CALL OCommonEmbeddedObject::getEntryName()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1554,10 +1532,6 @@ OUString SAL_CALL OCommonEmbeddedObject::getEntryName()
void SAL_CALL OCommonEmbeddedObject::storeOwn()
- throw ( embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// during switching from Activated to Running and from Running to Loaded states the object will
// ask container to store the object, the container has to make decision
@@ -1650,8 +1624,6 @@ void SAL_CALL OCommonEmbeddedObject::storeOwn()
sal_Bool SAL_CALL OCommonEmbeddedObject::isReadonly()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1676,11 +1648,6 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::isReadonly()
void SAL_CALL OCommonEmbeddedObject::reload(
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// TODO: use lObjArgs
// for now this method is used only to switch readonly state
@@ -1796,7 +1763,7 @@ void SAL_CALL OCommonEmbeddedObject::reload(
}
}
-sal_Bool SAL_CALL OCommonEmbeddedObject::isStored() throw (css::uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL OCommonEmbeddedObject::isStored()
{
uno::Reference<container::XNameAccess> xNA(m_xObjectStorage, uno::UNO_QUERY);
if (!xNA.is())
@@ -1808,11 +1775,6 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::isStored() throw (css::uno::RuntimeExce
void SAL_CALL OCommonEmbeddedObject::breakLink( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::ResettableMutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1898,8 +1860,6 @@ void SAL_CALL OCommonEmbeddedObject::breakLink( const uno::Reference< embed::XSt
sal_Bool SAL_CALL OCommonEmbeddedObject::isLink()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1910,9 +1870,6 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::isLink()
OUString SAL_CALL OCommonEmbeddedObject::getLinkURL()
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
diff --git a/embeddedobj/source/commonembedding/specialobject.cxx b/embeddedobj/source/commonembedding/specialobject.cxx
index 5de49e704d53..5f0e18e0b365 100644
--- a/embeddedobj/source/commonembedding/specialobject.cxx
+++ b/embeddedobj/source/commonembedding/specialobject.cxx
@@ -53,7 +53,6 @@ OSpecialEmbeddedObject::OSpecialEmbeddedObject( const uno::Reference< uno::XComp
uno::Any SAL_CALL OSpecialEmbeddedObject::queryInterface( const uno::Type& rType )
- throw( uno::RuntimeException, std::exception )
{
uno::Any aReturn;
@@ -74,10 +73,6 @@ uno::Any SAL_CALL OSpecialEmbeddedObject::queryInterface( const uno::Type& rType
embed::VisualRepresentation SAL_CALL OSpecialEmbeddedObject::getPreferredVisualRepresentation( sal_Int64 nAspect )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -100,10 +95,6 @@ embed::VisualRepresentation SAL_CALL OSpecialEmbeddedObject::getPreferredVisualR
}
void SAL_CALL OSpecialEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt::Size& aSize )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -119,10 +110,6 @@ void SAL_CALL OSpecialEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, cons
}
awt::Size SAL_CALL OSpecialEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -142,8 +129,6 @@ awt::Size SAL_CALL OSpecialEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect
}
sal_Int32 SAL_CALL OSpecialEmbeddedObject::getMapUnit( sal_Int64 nAspect )
- throw ( uno::Exception,
- uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -159,10 +144,6 @@ sal_Int32 SAL_CALL OSpecialEmbeddedObject::getMapUnit( sal_Int64 nAspect )
}
void SAL_CALL OSpecialEmbeddedObject::changeState( sal_Int32 nNewState )
- throw ( css::embed::UnreachableStateException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception )
{
if ( nNewState == embed::EmbedStates::UI_ACTIVE )
nNewState = embed::EmbedStates::INPLACE_ACTIVE;
@@ -170,11 +151,6 @@ void SAL_CALL OSpecialEmbeddedObject::changeState( sal_Int32 nNewState )
}
void SAL_CALL OSpecialEmbeddedObject::doVerb( sal_Int32 nVerbID )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- embed::UnreachableStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
diff --git a/embeddedobj/source/commonembedding/visobj.cxx b/embeddedobj/source/commonembedding/visobj.cxx
index 98ebda348dd3..8c7217d30256 100644
--- a/embeddedobj/source/commonembedding/visobj.cxx
+++ b/embeddedobj/source/commonembedding/visobj.cxx
@@ -30,10 +30,6 @@
using namespace ::com::sun::star;
void SAL_CALL OCommonEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt::Size& aSize )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -70,10 +66,6 @@ void SAL_CALL OCommonEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const
}
awt::Size SAL_CALL OCommonEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -110,8 +102,6 @@ awt::Size SAL_CALL OCommonEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
}
sal_Int32 SAL_CALL OCommonEmbeddedObject::getMapUnit( sal_Int64 nAspect )
- throw ( uno::Exception,
- uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -151,10 +141,6 @@ sal_Int32 SAL_CALL OCommonEmbeddedObject::getMapUnit( sal_Int64 nAspect )
}
embed::VisualRepresentation SAL_CALL OCommonEmbeddedObject::getPreferredVisualRepresentation( sal_Int64 nAspect )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
diff --git a/embeddedobj/source/commonembedding/xfactory.cxx b/embeddedobj/source/commonembedding/xfactory.cxx
index 35738523bd66..8f09dcd42776 100644
--- a/embeddedobj/source/commonembedding/xfactory.cxx
+++ b/embeddedobj/source/commonembedding/xfactory.cxx
@@ -60,11 +60,6 @@ uno::Reference< uno::XInterface > SAL_CALL OOoEmbeddedObjectFactory::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aMediaDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- container::NoSuchElementException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
if ( !xStorage.is() )
throw lang::IllegalArgumentException( "No parent storage is provided!",
@@ -153,10 +148,6 @@ uno::Reference< uno::XInterface > SAL_CALL OOoEmbeddedObjectFactory::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aMediaDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
if ( !xStorage.is() )
throw lang::IllegalArgumentException( "No parent storage is provided!",
@@ -214,10 +205,6 @@ uno::Reference< uno::XInterface > SAL_CALL OOoEmbeddedObjectFactory::createInsta
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
uno::Reference< uno::XInterface > xResult;
@@ -263,10 +250,6 @@ uno::Reference< uno::XInterface > SAL_CALL OOoEmbeddedObjectFactory::createInsta
sal_Int32 nEntryConnectionMode,
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// the initialization is completely controlled by user
if ( !xStorage.is() )
@@ -319,10 +302,6 @@ uno::Reference< uno::XInterface > SAL_CALL OOoEmbeddedObjectFactory::createInsta
const OUString& /*sEntName*/,
const uno::Sequence< beans::PropertyValue >& aMediaDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
uno::Reference< uno::XInterface > xResult;
@@ -371,11 +350,6 @@ uno::Reference< uno::XInterface > SAL_CALL OOoEmbeddedObjectFactory::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException,
- std::exception )
{
uno::Reference< uno::XInterface > xResult;
@@ -428,19 +402,16 @@ uno::Reference< uno::XInterface > SAL_CALL OOoEmbeddedObjectFactory::createInsta
}
OUString SAL_CALL OOoEmbeddedObjectFactory::getImplementationName()
- throw ( uno::RuntimeException, std::exception )
{
return impl_staticGetImplementationName();
}
sal_Bool SAL_CALL OOoEmbeddedObjectFactory::supportsService( const OUString& ServiceName )
- throw ( uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL OOoEmbeddedObjectFactory::getSupportedServiceNames()
- throw ( uno::RuntimeException, std::exception )
{
return impl_staticGetSupportedServiceNames();
}
@@ -472,10 +443,6 @@ uno::Reference< uno::XInterface > SAL_CALL OOoSpecialEmbeddedObjectFactory::crea
sal_Int32 /*nEntryConnectionMode*/,
const uno::Sequence< beans::PropertyValue >& /*lArguments*/,
const uno::Sequence< beans::PropertyValue >& /*lObjArgs*/ )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
uno::Sequence< beans::NamedValue > aObject = m_aConfigHelper.GetObjectPropsByClassID( aClassID );
if ( !aObject.getLength() )
@@ -490,19 +457,16 @@ uno::Reference< uno::XInterface > SAL_CALL OOoSpecialEmbeddedObjectFactory::crea
}
OUString SAL_CALL OOoSpecialEmbeddedObjectFactory::getImplementationName()
- throw ( uno::RuntimeException, std::exception )
{
return impl_staticGetImplementationName();
}
sal_Bool SAL_CALL OOoSpecialEmbeddedObjectFactory::supportsService( const OUString& ServiceName )
- throw ( uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL OOoSpecialEmbeddedObjectFactory::getSupportedServiceNames()
- throw ( uno::RuntimeException, std::exception )
{
return impl_staticGetSupportedServiceNames();
}
diff --git a/embeddedobj/source/commonembedding/xfactory.hxx b/embeddedobj/source/commonembedding/xfactory.hxx
index dc925ffaf24b..bfcfe2740ccf 100644
--- a/embeddedobj/source/commonembedding/xfactory.hxx
+++ b/embeddedobj/source/commonembedding/xfactory.hxx
@@ -55,23 +55,23 @@ public:
// XEmbedObjectCreator
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitNew( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromMediaDescriptor( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitNew( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromMediaDescriptor( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XEmbedObjectFactory
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, sal_Int32 nEntryConnectionMode, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, sal_Int32 nEntryConnectionMode, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XLinkCreator
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceLink( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceLink( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XLinkFactory
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceLinkUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceLinkUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) 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& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
@@ -101,12 +101,12 @@ public:
const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager );
// XEmbedObjectFactory
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, sal_Int32 nEntryConnectionMode, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, sal_Int32 nEntryConnectionMode, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) 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& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
#endif
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx
index 506ec44b6a4b..d06a690c437a 100644
--- a/embeddedobj/source/general/docholder.cxx
+++ b/embeddedobj/source/general/docholder.cxx
@@ -568,7 +568,6 @@ uno::Reference< container::XIndexAccess > DocumentHolder::RetrieveOwnMenu_Impl()
void DocumentHolder::FindConnectPoints(
const uno::Reference< container::XIndexAccess >& xMenu,
sal_Int32 nConnectPoints[2] )
- throw ( uno::Exception )
{
nConnectPoints[0] = -1;
nConnectPoints[1] = -1;
@@ -601,7 +600,6 @@ uno::Reference< container::XIndexAccess > DocumentHolder::MergeMenusForInplace(
const OUString& aContModuleName,
const uno::Reference< container::XIndexAccess >& xOwnMenu,
const uno::Reference< frame::XDispatchProvider >& xOwnDisp )
- throw ( uno::Exception )
{
// TODO/LATER: use dispatch providers on merge
@@ -1096,7 +1094,6 @@ awt::Rectangle DocumentHolder::AddBorderToArea( const awt::Rectangle& aRect )
void SAL_CALL DocumentHolder::disposing( const css::lang::EventObject& aSource )
- throw (uno::RuntimeException, std::exception)
{
if ( m_xComponent.is() && m_xComponent == aSource.Source )
{
@@ -1118,7 +1115,6 @@ void SAL_CALL DocumentHolder::disposing( const css::lang::EventObject& aSource )
void SAL_CALL DocumentHolder::queryClosing( const lang::EventObject& aSource, sal_Bool /*bGetsOwnership*/ )
- throw (util::CloseVetoException, uno::RuntimeException, std::exception)
{
if ( m_xComponent.is() && m_xComponent == aSource.Source && !m_bAllowClosing )
throw util::CloseVetoException("To close an embedded document, close the document holder (document definition), not the document itself.", static_cast< ::cppu::OWeakObject*>(this));
@@ -1126,7 +1122,6 @@ void SAL_CALL DocumentHolder::queryClosing( const lang::EventObject& aSource, sa
void SAL_CALL DocumentHolder::notifyClosing( const lang::EventObject& aSource )
- throw (uno::RuntimeException, std::exception)
{
if ( m_xComponent.is() && m_xComponent == aSource.Source )
{
@@ -1148,7 +1143,6 @@ void SAL_CALL DocumentHolder::notifyClosing( const lang::EventObject& aSource )
void SAL_CALL DocumentHolder::queryTermination( const lang::EventObject& )
- throw (frame::TerminationVetoException, uno::RuntimeException, std::exception)
{
if ( m_bWaitForClose )
throw frame::TerminationVetoException();
@@ -1156,7 +1150,6 @@ void SAL_CALL DocumentHolder::queryTermination( const lang::EventObject& )
void SAL_CALL DocumentHolder::notifyTermination( const lang::EventObject& aSource )
- throw (uno::RuntimeException, std::exception)
{
OSL_ENSURE( !m_xComponent.is(), "Just a disaster..." );
@@ -1168,7 +1161,6 @@ void SAL_CALL DocumentHolder::notifyTermination( const lang::EventObject& aSourc
void SAL_CALL DocumentHolder::modified( const lang::EventObject& aEvent )
- throw ( uno::RuntimeException, std::exception )
{
// if the component does not support document::XEventBroadcaster
// the modify notifications are used as workaround, but only for running state
@@ -1178,7 +1170,6 @@ void SAL_CALL DocumentHolder::modified( const lang::EventObject& aEvent )
void SAL_CALL DocumentHolder::notifyEvent( const document::EventObject& Event )
- throw ( uno::RuntimeException, std::exception )
{
if( m_pEmbedObj && Event.Source == m_xComponent )
{
@@ -1195,7 +1186,6 @@ void SAL_CALL DocumentHolder::notifyEvent( const document::EventObject& Event )
void SAL_CALL DocumentHolder::borderWidthsChanged( const uno::Reference< uno::XInterface >& aObject,
const frame::BorderWidths& aNewSize )
- throw ( uno::RuntimeException, std::exception )
{
// TODO: may require mutex introduction ???
if ( m_pEmbedObj && m_xFrame.is() && aObject == m_xFrame->getController() )
@@ -1214,7 +1204,6 @@ void SAL_CALL DocumentHolder::borderWidthsChanged( const uno::Reference< uno::XI
void SAL_CALL DocumentHolder::requestPositioning( const awt::Rectangle& aRect )
- throw (uno::RuntimeException, std::exception)
{
// TODO: may require mutex introduction ???
if ( m_pEmbedObj )
@@ -1228,7 +1217,6 @@ void SAL_CALL DocumentHolder::requestPositioning( const awt::Rectangle& aRect )
awt::Rectangle SAL_CALL DocumentHolder::calcAdjustedRectangle( const awt::Rectangle& aRect )
- throw (uno::RuntimeException, std::exception)
{
// Solar mutex should be locked already since this is a call from HatchWindow with focus
awt::Rectangle aResult( aRect );
@@ -1254,7 +1242,7 @@ awt::Rectangle SAL_CALL DocumentHolder::calcAdjustedRectangle( const awt::Rectan
return aResult;
}
-void SAL_CALL DocumentHolder::activated( ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL DocumentHolder::activated( )
{
if ( (m_pEmbedObj->getStatus(embed::Aspects::MSOLE_CONTENT)&embed::EmbedMisc::MS_EMBED_ACTIVATEWHENVISIBLE) ||
svt::EmbeddedObjectRef::IsGLChart(m_pEmbedObj) )
@@ -1292,7 +1280,7 @@ void DocumentHolder::ResizeHatchWindow()
xHatchWindow->setHatchBorderSize( awt::Size( HATCH_BORDER_WIDTH, HATCH_BORDER_WIDTH ) );
}
-void SAL_CALL DocumentHolder::deactivated( ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL DocumentHolder::deactivated( )
{
// deactivation is too unspecific to be useful; usually we only trigger code from activation
// so UIDeactivation is actively triggered by the container
diff --git a/embeddedobj/source/general/dummyobject.cxx b/embeddedobj/source/general/dummyobject.cxx
index 8566ebbdca45..c48f62f49adc 100644
--- a/embeddedobj/source/general/dummyobject.cxx
+++ b/embeddedobj/source/general/dummyobject.cxx
@@ -96,10 +96,6 @@ ODummyEmbeddedObject::~ODummyEmbeddedObject()
void SAL_CALL ODummyEmbeddedObject::changeState( sal_Int32 nNewState )
- throw ( embed::UnreachableStateException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -112,8 +108,6 @@ void SAL_CALL ODummyEmbeddedObject::changeState( sal_Int32 nNewState )
uno::Sequence< sal_Int32 > SAL_CALL ODummyEmbeddedObject::getReachableStates()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -126,8 +120,6 @@ uno::Sequence< sal_Int32 > SAL_CALL ODummyEmbeddedObject::getReachableStates()
sal_Int32 SAL_CALL ODummyEmbeddedObject::getCurrentState()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -137,11 +129,6 @@ sal_Int32 SAL_CALL ODummyEmbeddedObject::getCurrentState()
void SAL_CALL ODummyEmbeddedObject::doVerb( sal_Int32 )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- embed::UnreachableStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -151,8 +138,6 @@ void SAL_CALL ODummyEmbeddedObject::doVerb( sal_Int32 )
uno::Sequence< embed::VerbDescriptor > SAL_CALL ODummyEmbeddedObject::getSupportedVerbs()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -163,8 +148,6 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL ODummyEmbeddedObject::getSupport
void SAL_CALL ODummyEmbeddedObject::setClientSite(
const uno::Reference< embed::XEmbeddedClient >& xClient )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -174,8 +157,6 @@ void SAL_CALL ODummyEmbeddedObject::setClientSite(
uno::Reference< embed::XEmbeddedClient > SAL_CALL ODummyEmbeddedObject::getClientSite()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -185,9 +166,6 @@ uno::Reference< embed::XEmbeddedClient > SAL_CALL ODummyEmbeddedObject::getClien
void SAL_CALL ODummyEmbeddedObject::update()
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -195,8 +173,6 @@ void SAL_CALL ODummyEmbeddedObject::update()
void SAL_CALL ODummyEmbeddedObject::setUpdateMode( sal_Int32 )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -204,8 +180,6 @@ void SAL_CALL ODummyEmbeddedObject::setUpdateMode( sal_Int32 )
sal_Int64 SAL_CALL ODummyEmbeddedObject::getStatus( sal_Int64 )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -215,7 +189,6 @@ sal_Int64 SAL_CALL ODummyEmbeddedObject::getStatus( sal_Int64 )
void SAL_CALL ODummyEmbeddedObject::setContainerName( const OUString& )
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_Runtime();
@@ -223,10 +196,6 @@ void SAL_CALL ODummyEmbeddedObject::setContainerName( const OUString& )
void SAL_CALL ODummyEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt::Size& aSize )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -244,10 +213,6 @@ void SAL_CALL ODummyEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const
awt::Size SAL_CALL ODummyEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -268,8 +233,6 @@ awt::Size SAL_CALL ODummyEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
sal_Int32 SAL_CALL ODummyEmbeddedObject::getMapUnit( sal_Int64 nAspect )
- throw ( uno::Exception,
- uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_Runtime();
@@ -285,10 +248,6 @@ sal_Int32 SAL_CALL ODummyEmbeddedObject::getMapUnit( sal_Int64 nAspect )
embed::VisualRepresentation SAL_CALL ODummyEmbeddedObject::getPreferredVisualRepresentation( sal_Int64 )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -305,11 +264,6 @@ void SAL_CALL ODummyEmbeddedObject::setPersistentEntry(
sal_Int32 nEntryConnectionMode,
const uno::Sequence< beans::PropertyValue >& /* lArguments */,
const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -370,11 +324,6 @@ void SAL_CALL ODummyEmbeddedObject::storeToEntry( const uno::Reference< embed::X
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& /* lArguments */,
const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -392,11 +341,6 @@ void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::X
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& /* lArguments */,
const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -417,9 +361,6 @@ void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::X
void SAL_CALL ODummyEmbeddedObject::saveCompleted( sal_Bool bUseNew )
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -451,8 +392,6 @@ void SAL_CALL ODummyEmbeddedObject::saveCompleted( sal_Bool bUseNew )
sal_Bool SAL_CALL ODummyEmbeddedObject::hasEntry()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -470,8 +409,6 @@ sal_Bool SAL_CALL ODummyEmbeddedObject::hasEntry()
OUString SAL_CALL ODummyEmbeddedObject::getEntryName()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -486,10 +423,6 @@ OUString SAL_CALL ODummyEmbeddedObject::getEntryName()
void SAL_CALL ODummyEmbeddedObject::storeOwn()
- throw ( embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -505,8 +438,6 @@ void SAL_CALL ODummyEmbeddedObject::storeOwn()
sal_Bool SAL_CALL ODummyEmbeddedObject::isReadonly()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -524,11 +455,6 @@ sal_Bool SAL_CALL ODummyEmbeddedObject::isReadonly()
void SAL_CALL ODummyEmbeddedObject::reload(
const uno::Sequence< beans::PropertyValue >& /* lArguments */,
const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_WrongState();
@@ -543,7 +469,6 @@ void SAL_CALL ODummyEmbeddedObject::reload(
uno::Sequence< sal_Int8 > SAL_CALL ODummyEmbeddedObject::getClassID()
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_Runtime();
@@ -555,7 +480,6 @@ uno::Sequence< sal_Int8 > SAL_CALL ODummyEmbeddedObject::getClassID()
OUString SAL_CALL ODummyEmbeddedObject::getClassName()
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -567,15 +491,12 @@ OUString SAL_CALL ODummyEmbeddedObject::getClassName()
void SAL_CALL ODummyEmbeddedObject::setClassInfo(
const uno::Sequence< sal_Int8 >& /*aClassID*/, const OUString& /*aClassName*/ )
- throw ( lang::NoSupportException,
- uno::RuntimeException, std::exception )
{
throw lang::NoSupportException();
}
uno::Reference< util::XCloseable > SAL_CALL ODummyEmbeddedObject::getComponent()
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
CheckInit_Runtime();
@@ -585,7 +506,6 @@ uno::Reference< util::XCloseable > SAL_CALL ODummyEmbeddedObject::getComponent()
void SAL_CALL ODummyEmbeddedObject::addStateChangeListener( const uno::Reference< embed::XStateChangeListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -601,7 +521,6 @@ void SAL_CALL ODummyEmbeddedObject::addStateChangeListener( const uno::Reference
void SAL_CALL ODummyEmbeddedObject::removeStateChangeListener(
const uno::Reference< embed::XStateChangeListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_pInterfaceContainer )
@@ -611,8 +530,6 @@ void SAL_CALL ODummyEmbeddedObject::removeStateChangeListener(
void SAL_CALL ODummyEmbeddedObject::close( sal_Bool bDeliverOwnership )
- throw ( util::CloseVetoException,
- uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -667,7 +584,6 @@ void SAL_CALL ODummyEmbeddedObject::close( sal_Bool bDeliverOwnership )
void SAL_CALL ODummyEmbeddedObject::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -681,7 +597,6 @@ void SAL_CALL ODummyEmbeddedObject::addCloseListener( const uno::Reference< util
void SAL_CALL ODummyEmbeddedObject::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_pInterfaceContainer )
@@ -691,7 +606,6 @@ void SAL_CALL ODummyEmbeddedObject::removeCloseListener( const uno::Reference< u
void SAL_CALL ODummyEmbeddedObject::addEventListener( const uno::Reference< document::XEventListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -705,7 +619,6 @@ void SAL_CALL ODummyEmbeddedObject::addEventListener( const uno::Reference< docu
void SAL_CALL ODummyEmbeddedObject::removeEventListener( const uno::Reference< document::XEventListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_pInterfaceContainer )
diff --git a/embeddedobj/source/general/intercept.cxx b/embeddedobj/source/general/intercept.cxx
index 982ae51e9a24..1a8cce8212c0 100644
--- a/embeddedobj/source/general/intercept.cxx
+++ b/embeddedobj/source/general/intercept.cxx
@@ -69,7 +69,6 @@ Interceptor::dispatch(
const util::URL& URL,
const uno::Sequence<
beans::PropertyValue >& Arguments )
- throw (uno::RuntimeException, std::exception)
{
osl::MutexGuard aGuard(m_aMutex);
if( m_pDocHolder )
@@ -122,9 +121,6 @@ Interceptor::addStatusListener(
const uno::Reference<
frame::XStatusListener >& Control,
const util::URL& URL )
- throw (
- uno::RuntimeException, std::exception
- )
{
if(!Control.is())
return;
@@ -201,9 +197,6 @@ Interceptor::removeStatusListener(
const uno::Reference<
frame::XStatusListener >& Control,
const util::URL& URL )
- throw (
- uno::RuntimeException, std::exception
- )
{
if(!(Control.is() && m_pStatCL))
return;
@@ -218,9 +211,6 @@ Interceptor::removeStatusListener(
uno::Sequence< OUString >
SAL_CALL
Interceptor::getInterceptedURLs( )
- throw (
- uno::RuntimeException, std::exception
- )
{
// now implemented as update
@@ -235,9 +225,6 @@ Interceptor::queryDispatch(
const util::URL& URL,
const OUString& TargetFrameName,
sal_Int32 SearchFlags )
- throw (
- uno::RuntimeException, std::exception
- )
{
osl::MutexGuard aGuard(m_aMutex);
if(URL.Complete == m_aInterceptedURL[0])
@@ -264,9 +251,6 @@ Interceptor::queryDispatch(
uno::Sequence< uno::Reference< frame::XDispatch > > SAL_CALL
Interceptor::queryDispatches(
const uno::Sequence<frame::DispatchDescriptor >& Requests )
- throw (
- uno::RuntimeException, std::exception
- )
{
uno::Sequence< uno::Reference< frame::XDispatch > > aRet;
osl::MutexGuard aGuard(m_aMutex);
@@ -297,9 +281,6 @@ Interceptor::queryDispatches(
uno::Reference< frame::XDispatchProvider > SAL_CALL
Interceptor::getSlaveDispatchProvider( )
- throw (
- uno::RuntimeException, std::exception
- )
{
osl::MutexGuard aGuard(m_aMutex);
return m_xSlaveDispatchProvider;
@@ -308,9 +289,6 @@ Interceptor::getSlaveDispatchProvider( )
void SAL_CALL
Interceptor::setSlaveDispatchProvider(
const uno::Reference< frame::XDispatchProvider >& NewDispatchProvider )
- throw (
- uno::RuntimeException, std::exception
- )
{
osl::MutexGuard aGuard(m_aMutex);
m_xSlaveDispatchProvider = NewDispatchProvider;
@@ -319,9 +297,6 @@ Interceptor::setSlaveDispatchProvider(
uno::Reference< frame::XDispatchProvider > SAL_CALL
Interceptor::getMasterDispatchProvider( )
- throw (
- uno::RuntimeException, std::exception
- )
{
osl::MutexGuard aGuard(m_aMutex);
return m_xMasterDispatchProvider;
@@ -331,9 +306,6 @@ Interceptor::getMasterDispatchProvider( )
void SAL_CALL
Interceptor::setMasterDispatchProvider(
const uno::Reference< frame::XDispatchProvider >& NewSupplier )
- throw (
- uno::RuntimeException, std::exception
- )
{
osl::MutexGuard aGuard(m_aMutex);
m_xMasterDispatchProvider = NewSupplier;
diff --git a/embeddedobj/source/general/xcreator.cxx b/embeddedobj/source/general/xcreator.cxx
index 6e171f21ebc3..3dc498c1269d 100644
--- a/embeddedobj/source/general/xcreator.cxx
+++ b/embeddedobj/source/general/xcreator.cxx
@@ -68,10 +68,6 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
uno::Reference< uno::XInterface > xResult;
@@ -110,11 +106,6 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aMedDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- container::NoSuchElementException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
if ( !xStorage.is() )
throw lang::IllegalArgumentException( "No parent storage is provided!",
@@ -234,10 +225,6 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aMediaDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
// TODO: use lObjArgs
@@ -297,10 +284,6 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
sal_Int32 nEntryConnectionMode,
const uno::Sequence< beans::PropertyValue >& aArgs,
const uno::Sequence< beans::PropertyValue >& aObjectArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
uno::Reference< uno::XInterface > xResult;
@@ -336,10 +319,6 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aMediaDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
uno::Reference< uno::XInterface > xResult;
@@ -400,19 +379,16 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
}
OUString SAL_CALL UNOEmbeddedObjectCreator::getImplementationName()
- throw ( uno::RuntimeException, std::exception )
{
return impl_staticGetImplementationName();
}
sal_Bool SAL_CALL UNOEmbeddedObjectCreator::supportsService( const OUString& ServiceName )
- throw ( uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL UNOEmbeddedObjectCreator::getSupportedServiceNames()
- throw ( uno::RuntimeException, std::exception )
{
return impl_staticGetSupportedServiceNames();
}
diff --git a/embeddedobj/source/inc/closepreventer.hxx b/embeddedobj/source/inc/closepreventer.hxx
index 5270a12999c8..009c8c7a133a 100644
--- a/embeddedobj/source/inc/closepreventer.hxx
+++ b/embeddedobj/source/inc/closepreventer.hxx
@@ -25,10 +25,10 @@
class OClosePreventer : public ::cppu::WeakImplHelper < css::util::XCloseListener >
{
- virtual void SAL_CALL queryClosing( const css::lang::EventObject& Source, sal_Bool GetsOwnership ) throw (css::util::CloseVetoException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyClosing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryClosing( const css::lang::EventObject& Source, sal_Bool GetsOwnership ) override;
+ virtual void SAL_CALL notifyClosing( const css::lang::EventObject& Source ) override;
- 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;
};
#endif
diff --git a/embeddedobj/source/inc/commonembobj.hxx b/embeddedobj/source/inc/commonembobj.hxx
index 3440a6187b77..52624c291775 100644
--- a/embeddedobj/source/inc/commonembobj.hxx
+++ b/embeddedobj/source/inc/commonembobj.hxx
@@ -250,8 +250,7 @@ public:
// XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType )
- throw( css::uno::RuntimeException, std::exception ) override ;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override ;
virtual void SAL_CALL acquire()
throw() override;
@@ -261,80 +260,39 @@ public:
// XEmbeddedObject
- virtual void SAL_CALL changeState( sal_Int32 nNewState )
- throw ( css::embed::UnreachableStateException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL changeState( sal_Int32 nNewState ) override;
- virtual css::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates() override;
- virtual sal_Int32 SAL_CALL getCurrentState()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int32 SAL_CALL getCurrentState() override;
- virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::embed::UnreachableStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL doVerb( sal_Int32 nVerbID ) override;
- virtual css::uno::Sequence< css::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< css::embed::VerbDescriptor > SAL_CALL getSupportedVerbs() override;
virtual void SAL_CALL setClientSite(
- const css::uno::Reference< css::embed::XEmbeddedClient >& xClient )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::embed::XEmbeddedClient >& xClient ) override;
- virtual css::uno::Reference< css::embed::XEmbeddedClient > SAL_CALL getClientSite()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::embed::XEmbeddedClient > SAL_CALL getClientSite() override;
- virtual void SAL_CALL update()
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL update() override;
- virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setUpdateMode( sal_Int32 nMode ) override;
- virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect ) override;
- virtual void SAL_CALL setContainerName( const OUString& sName )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setContainerName( const OUString& sName ) override;
// XVisualObject
- virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize ) override;
- virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect ) override;
- virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ) override;
- virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
- throw ( css::uno::Exception,
- css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect ) override;
// XEmbedPersist
@@ -343,161 +301,98 @@ public:
const OUString& sEntName,
sal_Int32 nEntryConnectionMode,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual void SAL_CALL storeToEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+
+ virtual void SAL_CALL storeToEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
virtual void SAL_CALL storeAsEntry(
const css::uno::Reference< css::embed::XStorage >& xStorage,
const OUString& sEntName,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual void SAL_CALL saveCompleted( sal_Bool bUseNew )
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual sal_Bool SAL_CALL hasEntry()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual OUString SAL_CALL getEntryName()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+
+ virtual void SAL_CALL saveCompleted( sal_Bool bUseNew ) override;
+
+ virtual sal_Bool SAL_CALL hasEntry() override;
+
+ virtual OUString SAL_CALL getEntryName() override;
// XLinkageSupport
virtual void SAL_CALL breakLink( const css::uno::Reference< css::embed::XStorage >& xStorage,
- const OUString& sEntName )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const OUString& sEntName ) override;
- virtual sal_Bool SAL_CALL isLink()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isLink() override;
- virtual OUString SAL_CALL getLinkURL()
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getLinkURL() override;
// XCommonEmbedPersist
- virtual void SAL_CALL storeOwn()
- throw ( css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL storeOwn() override;
- virtual sal_Bool SAL_CALL isReadonly()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Bool SAL_CALL isReadonly() override;
virtual void SAL_CALL reload(
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XEmbedPersist2
- virtual sal_Bool SAL_CALL isStored()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isStored() override;
// XInplaceObject
virtual void SAL_CALL setObjectRectangles( const css::awt::Rectangle& aPosRect,
- const css::awt::Rectangle& aClipRect )
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::awt::Rectangle& aClipRect ) override;
- virtual void SAL_CALL enableModeless( sal_Bool bEnable )
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL enableModeless( sal_Bool bEnable ) override;
virtual void SAL_CALL translateAccelerators(
- const css::uno::Sequence< css::awt::KeyEvent >& aKeys )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::awt::KeyEvent >& aKeys ) override;
// XClassifiedObject
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getClassID() override;
- virtual OUString SAL_CALL getClassName()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getClassName() override;
virtual void SAL_CALL setClassInfo(
- const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
- throw ( css::lang::NoSupportException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName ) override;
// XComponentSupplier
- virtual css::uno::Reference< css::util::XCloseable > SAL_CALL getComponent()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::util::XCloseable > SAL_CALL getComponent() override;
// XStateChangeBroadcaster
- virtual void SAL_CALL addStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) override;
+ virtual void SAL_CALL removeStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) override;
// XCloseable
- virtual void SAL_CALL close( sal_Bool DeliverOwnership )
- throw ( css::util::CloseVetoException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL close( sal_Bool DeliverOwnership ) override;
virtual void SAL_CALL addCloseListener(
- const css::uno::Reference< css::util::XCloseListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::util::XCloseListener >& Listener ) override;
virtual void SAL_CALL removeCloseListener(
- const css::uno::Reference< css::util::XCloseListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::util::XCloseListener >& Listener ) override;
// XEventBroadcaster
virtual void SAL_CALL addEventListener(
- const css::uno::Reference< css::document::XEventListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::document::XEventListener >& Listener ) override;
virtual void SAL_CALL removeEventListener(
- const css::uno::Reference< css::document::XEventListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::document::XEventListener >& Listener ) override;
// XChild
- 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;
// XDefaultSizeTransmitter
//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method
- virtual void SAL_CALL setDefaultSize( const css::awt::Size& rSize_100TH_MM ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setDefaultSize( const css::awt::Size& rSize_100TH_MM ) override;
};
#endif
diff --git a/embeddedobj/source/inc/docholder.hxx b/embeddedobj/source/inc/docholder.hxx
index 048680cda5bf..efbb664c6659 100644
--- a/embeddedobj/source/inc/docholder.hxx
+++ b/embeddedobj/source/inc/docholder.hxx
@@ -102,8 +102,7 @@ public:
/// @throws css::uno::Exception
static void FindConnectPoints(
const css::uno::Reference< css::container::XIndexAccess >& xMenu,
- sal_Int32 nConnectPoints[2] )
- throw ( css::uno::Exception );
+ sal_Int32 nConnectPoints[2] );
/// @throws css::uno::Exception
static css::uno::Reference< css::container::XIndexAccess > MergeMenusForInplace(
@@ -111,8 +110,7 @@ public:
const css::uno::Reference< css::frame::XDispatchProvider >& xContDisp,
const OUString& aContModuleName,
const css::uno::Reference< css::container::XIndexAccess >& xOwnMenu,
- const css::uno::Reference< css::frame::XDispatchProvider >& xOwnDisp )
- throw ( css::uno::Exception );
+ const css::uno::Reference< css::frame::XDispatchProvider >& xOwnDisp );
DocumentHolder( const css::uno::Reference< css::uno::XComponentContext >& xContext,
@@ -169,30 +167,30 @@ public:
const css::uno::Reference< css::util::XCloseable >& GetComponent() { return m_xComponent; }
// 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;
// XCloseListener
- virtual void SAL_CALL queryClosing( const css::lang::EventObject& Source, sal_Bool GetsOwnership ) throw (css::util::CloseVetoException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyClosing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryClosing( const css::lang::EventObject& Source, sal_Bool GetsOwnership ) override;
+ virtual void SAL_CALL notifyClosing( const css::lang::EventObject& Source ) override;
// XTerminateListener
- virtual void SAL_CALL queryTermination( const css::lang::EventObject& Event ) throw (css::frame::TerminationVetoException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyTermination( const css::lang::EventObject& Event ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryTermination( const css::lang::EventObject& Event ) override;
+ virtual void SAL_CALL notifyTermination( const css::lang::EventObject& Event ) override;
// XModifyListener
- virtual void SAL_CALL modified( const css::lang::EventObject& aEvent ) throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL modified( const css::lang::EventObject& aEvent ) override;
// XEventListener
- virtual void SAL_CALL notifyEvent( const css::document::EventObject& Event ) throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL notifyEvent( const css::document::EventObject& Event ) override;
// XBorderResizeListener
- virtual void SAL_CALL borderWidthsChanged( const css::uno::Reference< css::uno::XInterface >& aObject, const css::frame::BorderWidths& aNewSize ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL borderWidthsChanged( const css::uno::Reference< css::uno::XInterface >& aObject, const css::frame::BorderWidths& aNewSize ) override;
// XHatchWindowController
- virtual void SAL_CALL requestPositioning( const css::awt::Rectangle& aRect ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::awt::Rectangle SAL_CALL calcAdjustedRectangle( const css::awt::Rectangle& aRect ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL activated( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL deactivated( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL requestPositioning( const css::awt::Rectangle& aRect ) override;
+ virtual css::awt::Rectangle SAL_CALL calcAdjustedRectangle( const css::awt::Rectangle& aRect ) override;
+ virtual void SAL_CALL activated( ) override;
+ virtual void SAL_CALL deactivated( ) override;
};
#endif
diff --git a/embeddedobj/source/inc/dummyobject.hxx b/embeddedobj/source/inc/dummyobject.hxx
index afec254ff13f..30505a2b0244 100644
--- a/embeddedobj/source/inc/dummyobject.hxx
+++ b/embeddedobj/source/inc/dummyobject.hxx
@@ -91,80 +91,39 @@ public:
// XEmbeddedObject
- virtual void SAL_CALL changeState( sal_Int32 nNewState )
- throw ( css::embed::UnreachableStateException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual css::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual sal_Int32 SAL_CALL getCurrentState()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::embed::UnreachableStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual css::uno::Sequence< css::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL changeState( sal_Int32 nNewState ) override;
+
+ virtual css::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates() override;
+
+ virtual sal_Int32 SAL_CALL getCurrentState() override;
+
+ virtual void SAL_CALL doVerb( sal_Int32 nVerbID ) override;
+
+ virtual css::uno::Sequence< css::embed::VerbDescriptor > SAL_CALL getSupportedVerbs() override;
virtual void SAL_CALL setClientSite(
- const css::uno::Reference< css::embed::XEmbeddedClient >& xClient )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::embed::XEmbeddedClient >& xClient ) override;
- virtual css::uno::Reference< css::embed::XEmbeddedClient > SAL_CALL getClientSite()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::embed::XEmbeddedClient > SAL_CALL getClientSite() override;
- virtual void SAL_CALL update()
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL update() override;
- virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setUpdateMode( sal_Int32 nMode ) override;
- virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect ) override;
- virtual void SAL_CALL setContainerName( const OUString& sName )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setContainerName( const OUString& sName ) override;
// XVisualObject
- virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize ) override;
- virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect ) override;
- virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ) override;
- virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
- throw ( css::uno::Exception,
- css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect ) override;
// XEmbedPersist
@@ -173,112 +132,68 @@ public:
const OUString& sEntName,
sal_Int32 nEntryConnectionMode,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual void SAL_CALL storeToEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+
+ virtual void SAL_CALL storeToEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
virtual void SAL_CALL storeAsEntry(
const css::uno::Reference< css::embed::XStorage >& xStorage,
const OUString& sEntName,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
- virtual void SAL_CALL saveCompleted( sal_Bool bUseNew )
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL saveCompleted( sal_Bool bUseNew ) override;
- virtual sal_Bool SAL_CALL hasEntry()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Bool SAL_CALL hasEntry() override;
- virtual OUString SAL_CALL getEntryName()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getEntryName() override;
// XCommonEmbedPersist
- virtual void SAL_CALL storeOwn()
- throw ( css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL storeOwn() override;
- virtual sal_Bool SAL_CALL isReadonly()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Bool SAL_CALL isReadonly() override;
virtual void SAL_CALL reload(
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XClassifiedObject
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getClassID() override;
- virtual OUString SAL_CALL getClassName()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getClassName() override;
virtual void SAL_CALL setClassInfo(
- const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
- throw ( css::lang::NoSupportException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName ) override;
// XComponentSupplier
- virtual css::uno::Reference< css::util::XCloseable > SAL_CALL getComponent()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::util::XCloseable > SAL_CALL getComponent() override;
// XStateChangeBroadcaster
- virtual void SAL_CALL addStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) override;
+ virtual void SAL_CALL removeStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) override;
// XCloseable
- virtual void SAL_CALL close( sal_Bool DeliverOwnership )
- throw ( css::util::CloseVetoException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL close( sal_Bool DeliverOwnership ) override;
virtual void SAL_CALL addCloseListener(
- const css::uno::Reference< css::util::XCloseListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::util::XCloseListener >& Listener ) override;
virtual void SAL_CALL removeCloseListener(
- const css::uno::Reference< css::util::XCloseListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::util::XCloseListener >& Listener ) override;
// XEventBroadcaster
virtual void SAL_CALL addEventListener(
- const css::uno::Reference< css::document::XEventListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::document::XEventListener >& Listener ) override;
virtual void SAL_CALL removeEventListener(
- const css::uno::Reference< css::document::XEventListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::document::XEventListener >& Listener ) override;
};
diff --git a/embeddedobj/source/inc/intercept.hxx b/embeddedobj/source/inc/intercept.hxx
index 0eee7179dd02..987792c5431a 100644
--- a/embeddedobj/source/inc/intercept.hxx
+++ b/embeddedobj/source/inc/intercept.hxx
@@ -48,33 +48,23 @@ public:
dispatch(
const css::util::URL& URL,
const css::uno::Sequence<
- css::beans::PropertyValue >& Arguments )
- throw (css::uno::RuntimeException, std::exception) override;
+ css::beans::PropertyValue >& Arguments ) override;
virtual void SAL_CALL
addStatusListener(
const css::uno::Reference<
css::frame::XStatusListener >& Control,
- const css::util::URL& URL )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ const css::util::URL& URL ) override;
virtual void SAL_CALL
removeStatusListener(
const css::uno::Reference<
css::frame::XStatusListener >& Control,
- const css::util::URL& URL )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ const css::util::URL& URL ) override;
//XInterceptorInfo
virtual css::uno::Sequence< OUString >
- SAL_CALL getInterceptedURLs( )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ SAL_CALL getInterceptedURLs( ) override;
//XDispatchProvider ( inherited by XDispatchProviderInterceptor )
virtual css::uno::Reference<
@@ -82,52 +72,34 @@ public:
queryDispatch(
const css::util::URL& URL,
const OUString& TargetFrameName,
- sal_Int32 SearchFlags )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ sal_Int32 SearchFlags ) override;
virtual css::uno::Sequence<
css::uno::Reference<
css::frame::XDispatch > > SAL_CALL
queryDispatches(
const css::uno::Sequence<
- css::frame::DispatchDescriptor >& Requests )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ css::frame::DispatchDescriptor >& Requests ) override;
//XDispatchProviderInterceptor
virtual css::uno::Reference<
css::frame::XDispatchProvider > SAL_CALL
- getSlaveDispatchProvider( )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ getSlaveDispatchProvider( ) override;
virtual void SAL_CALL
setSlaveDispatchProvider(
const css::uno::Reference<
- css::frame::XDispatchProvider >& NewDispatchProvider )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ css::frame::XDispatchProvider >& NewDispatchProvider ) override;
virtual css::uno::Reference<
css::frame::XDispatchProvider > SAL_CALL
- getMasterDispatchProvider( )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ getMasterDispatchProvider( ) override;
virtual void SAL_CALL
setMasterDispatchProvider(
const css::uno::Reference<
- css::frame::XDispatchProvider >& NewSupplier )
- throw (
- css::uno::RuntimeException, std::exception
- ) override;
+ css::frame::XDispatchProvider >& NewSupplier ) override;
private:
diff --git a/embeddedobj/source/inc/oleembobj.hxx b/embeddedobj/source/inc/oleembobj.hxx
index 9fad90fc509a..2beb08e242fc 100644
--- a/embeddedobj/source/inc/oleembobj.hxx
+++ b/embeddedobj/source/inc/oleembobj.hxx
@@ -201,14 +201,12 @@ class OleEmbeddedObject : public ::cppu::WeakImplHelper
protected:
/// @throws css::uno::Exception
css::uno::Reference< css::io::XStream > TryToGetAcceptableFormat_Impl(
- const css::uno::Reference< css::io::XStream >& xStream )
- throw ( css::uno::Exception );
+ const css::uno::Reference< css::io::XStream >& xStream );
/// @throws css::io::IOException
/// @throws css::uno::RuntimeException
css::uno::Reference< css::io::XStream > GetNewFilledTempStream_Impl(
- const css::uno::Reference< css::io::XInputStream >& xInStream )
- throw( css::io::IOException, css::uno::RuntimeException );
+ const css::uno::Reference< css::io::XInputStream >& xInStream );
#ifdef _WIN32
void SwitchComponentToRunningState_Impl();
#endif
@@ -242,30 +240,25 @@ protected:
const css::uno::Reference< css::embed::XStorage >& xStorage,
const OUString& sEntName,
const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs,
- bool bSaveAs )
- throw ( css::uno::Exception );
+ bool bSaveAs );
#ifdef _WIN32
/// @throws css::uno::Exception
- void StoreObjectToStream( css::uno::Reference< css::io::XOutputStream > const & xOutStream )
- throw ( css::uno::Exception );
+ void StoreObjectToStream( css::uno::Reference< css::io::XOutputStream > const & xOutStream );
#endif
/// @throws css::uno::Exception
void InsertVisualCache_Impl(
const css::uno::Reference< css::io::XStream >& xTargetStream,
- const css::uno::Reference< css::io::XStream >& xCachedVisualRepresentation )
- throw ( css::uno::Exception );
+ const css::uno::Reference< css::io::XStream >& xCachedVisualRepresentation );
/// @throws css::uno::Exception
- void RemoveVisualCache_Impl( const css::uno::Reference< css::io::XStream >& xTargetStream )
- throw ( css::uno::Exception );
+ void RemoveVisualCache_Impl( const css::uno::Reference< css::io::XStream >& xTargetStream );
void SetVisReplInStream( bool bExists );
bool HasVisReplInStream();
/// @throws css::uno::Exception
css::embed::VisualRepresentation GetVisualRepresentationInNativeFormat_Impl(
- const css::uno::Reference< css::io::XStream >& xCachedVisRepr )
- throw ( css::uno::Exception );
+ const css::uno::Reference< css::io::XStream >& xCachedVisRepr );
css::uno::Reference< css::io::XStream > TryToRetrieveCachedVisualRepresentation_Impl(
const css::uno::Reference< css::io::XStream >& xStream,
@@ -313,80 +306,39 @@ public:
// XEmbeddedObject
- virtual void SAL_CALL changeState( sal_Int32 nNewState )
- throw ( css::embed::UnreachableStateException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL changeState( sal_Int32 nNewState ) override;
- virtual css::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates() override;
- virtual sal_Int32 SAL_CALL getCurrentState()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int32 SAL_CALL getCurrentState() override;
- virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::embed::UnreachableStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL doVerb( sal_Int32 nVerbID ) override;
- virtual css::uno::Sequence< css::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< css::embed::VerbDescriptor > SAL_CALL getSupportedVerbs() override;
virtual void SAL_CALL setClientSite(
- const css::uno::Reference< css::embed::XEmbeddedClient >& xClient )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::embed::XEmbeddedClient >& xClient ) override;
- virtual css::uno::Reference< css::embed::XEmbeddedClient > SAL_CALL getClientSite()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::embed::XEmbeddedClient > SAL_CALL getClientSite() override;
- virtual void SAL_CALL update()
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL update() override;
- virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setUpdateMode( sal_Int32 nMode ) override;
- virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect ) override;
- virtual void SAL_CALL setContainerName( const OUString& sName )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setContainerName( const OUString& sName ) override;
// XVisualObject
- virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize ) override;
- virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect ) override;
- virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ) override;
- virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
- throw ( css::uno::Exception,
- css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect ) override;
// XEmbedPersist
@@ -396,150 +348,88 @@ public:
const OUString& sEntName,
sal_Int32 nEntryConnectionMode,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual void SAL_CALL storeToEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+
+ virtual void SAL_CALL storeToEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
virtual void SAL_CALL storeAsEntry(
const css::uno::Reference< css::embed::XStorage >& xStorage,
const OUString& sEntName,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual void SAL_CALL saveCompleted( sal_Bool bUseNew )
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual sal_Bool SAL_CALL hasEntry()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual OUString SAL_CALL getEntryName()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+
+ virtual void SAL_CALL saveCompleted( sal_Bool bUseNew ) override;
+
+ virtual sal_Bool SAL_CALL hasEntry() override;
+
+ virtual OUString SAL_CALL getEntryName() override;
// XLinkageSupport
virtual void SAL_CALL breakLink( const css::uno::Reference< css::embed::XStorage >& xStorage,
- const OUString& sEntName )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
-
- virtual sal_Bool SAL_CALL isLink()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception) override;
-
- virtual OUString SAL_CALL getLinkURL()
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception) override;
+ const OUString& sEntName ) override;
+
+ virtual sal_Bool SAL_CALL isLink() override;
+
+ virtual OUString SAL_CALL getLinkURL() override;
// XCommonEmbedPersist
- virtual void SAL_CALL storeOwn()
- throw ( css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL storeOwn() override;
- virtual sal_Bool SAL_CALL isReadonly()
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Bool SAL_CALL isReadonly() override;
virtual void SAL_CALL reload(
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
- const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::io::IOException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XClassifiedObject
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getClassID() override;
- virtual OUString SAL_CALL getClassName()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getClassName() override;
virtual void SAL_CALL setClassInfo(
- const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
- throw ( css::lang::NoSupportException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName ) override;
// XStateChangeBroadcaster
- virtual void SAL_CALL addStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL removeStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) override;
+ virtual void SAL_CALL removeStateChangeListener( const css::uno::Reference< css::embed::XStateChangeListener >& xListener ) override;
// XComponentSupplier
- virtual css::uno::Reference< css::util::XCloseable > SAL_CALL getComponent()
- throw ( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::util::XCloseable > SAL_CALL getComponent() override;
// XCloseable
- virtual void SAL_CALL close( sal_Bool DeliverOwnership )
- throw ( css::util::CloseVetoException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL close( sal_Bool DeliverOwnership ) override;
virtual void SAL_CALL addCloseListener(
- const css::uno::Reference< css::util::XCloseListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::util::XCloseListener >& Listener ) override;
virtual void SAL_CALL removeCloseListener(
- const css::uno::Reference< css::util::XCloseListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::util::XCloseListener >& Listener ) override;
// XEventBroadcaster
virtual void SAL_CALL addEventListener(
- const css::uno::Reference< css::document::XEventListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::document::XEventListener >& Listener ) override;
virtual void SAL_CALL removeEventListener(
- const css::uno::Reference< css::document::XEventListener >& Listener )
- throw ( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::document::XEventListener >& Listener ) override;
// XInplaceObject ( only for wrapping scenario here )
virtual void SAL_CALL setObjectRectangles( const css::awt::Rectangle& aPosRect,
- const css::awt::Rectangle& aClipRect )
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ const css::awt::Rectangle& aClipRect ) override;
- virtual void SAL_CALL enableModeless( sal_Bool bEnable )
- throw ( css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL enableModeless( sal_Bool bEnable ) override;
virtual void SAL_CALL translateAccelerators(
- const css::uno::Sequence< css::awt::KeyEvent >& aKeys )
- throw ( css::embed::WrongStateException,
- css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Sequence< css::awt::KeyEvent >& aKeys ) override;
// XChild ( only for wrapping scenario here )
- 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;
};
diff --git a/embeddedobj/source/inc/specialobject.hxx b/embeddedobj/source/inc/specialobject.hxx
index d6c95f23235e..32ad61a7a582 100644
--- a/embeddedobj/source/inc/specialobject.hxx
+++ b/embeddedobj/source/inc/specialobject.hxx
@@ -34,44 +34,20 @@ public:
const css::uno::Sequence< css::beans::NamedValue >& aObjectProps );
// XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType )
- throw( css::uno::RuntimeException, std::exception ) override ;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override ;
// XVisualObject
- virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect ) override;
- virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const css::awt::Size& aSize ) override;
- virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual css::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect ) override;
- virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
- throw ( css::uno::Exception,
- css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect ) override;
- virtual void SAL_CALL changeState( sal_Int32 nNewState )
- throw ( css::embed::UnreachableStateException,
- css::embed::WrongStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL changeState( sal_Int32 nNewState ) override;
- virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
- throw ( css::lang::IllegalArgumentException,
- css::embed::WrongStateException,
- css::embed::UnreachableStateException,
- css::uno::Exception,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL doVerb( sal_Int32 nVerbID ) override;
};
#endif
diff --git a/embeddedobj/source/inc/xcreator.hxx b/embeddedobj/source/inc/xcreator.hxx
index eef372928d69..4e0b3630c2b4 100644
--- a/embeddedobj/source/inc/xcreator.hxx
+++ b/embeddedobj/source/inc/xcreator.hxx
@@ -53,20 +53,20 @@ public:
// XEmbedObjectCreator
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitNew( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMedDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromMediaDescriptor( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitNew( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMedDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromMediaDescriptor( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XEmbedObjectFactory
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& sClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, sal_Int32 nEntryConnectionMode, const css::uno::Sequence< css::beans::PropertyValue >& aArgs, const css::uno::Sequence< css::beans::PropertyValue >& aObjectArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& sClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, sal_Int32 nEntryConnectionMode, const css::uno::Sequence< css::beans::PropertyValue >& aArgs, const css::uno::Sequence< css::beans::PropertyValue >& aObjectArgs ) override;
// XLinkCreator
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceLink( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceLink( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) 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& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
diff --git a/embeddedobj/source/msole/closepreventer.cxx b/embeddedobj/source/msole/closepreventer.cxx
index 4ffeb4d4d444..69cf44b0d6f1 100644
--- a/embeddedobj/source/msole/closepreventer.cxx
+++ b/embeddedobj/source/msole/closepreventer.cxx
@@ -22,20 +22,17 @@
#include <osl/diagnose.h>
void SAL_CALL OClosePreventer::queryClosing( const css::lang::EventObject&, sal_Bool )
- throw (css::util::CloseVetoException, css::uno::RuntimeException, std::exception)
{
throw css::util::CloseVetoException();
}
void SAL_CALL OClosePreventer::notifyClosing( const css::lang::EventObject& )
- throw (css::uno::RuntimeException, std::exception)
{
// just a disaster
OSL_FAIL( "The object can not be prevented from closing!\n" );
}
void SAL_CALL OClosePreventer::disposing( const css::lang::EventObject& )
- throw (css::uno::RuntimeException, std::exception)
{
// just a disaster
OSL_FAIL( "The object can not be prevented from closing!\n" );
diff --git a/embeddedobj/source/msole/graphconvert.cxx b/embeddedobj/source/msole/graphconvert.cxx
index e7d4848c4823..f27d7481fba3 100644
--- a/embeddedobj/source/msole/graphconvert.cxx
+++ b/embeddedobj/source/msole/graphconvert.cxx
@@ -102,7 +102,7 @@ MainThreadNotificationRequest::MainThreadNotificationRequest( const ::rtl::Refer
, m_nAspect( nAspect )
{}
-void SAL_CALL MainThreadNotificationRequest::notify (const uno::Any& ) throw (uno::RuntimeException)
+void SAL_CALL MainThreadNotificationRequest::notify (const uno::Any& )
{
if ( m_pObject )
{
diff --git a/embeddedobj/source/msole/mtnotification.hxx b/embeddedobj/source/msole/mtnotification.hxx
index 99f4feb7295e..f8746ad36329 100644
--- a/embeddedobj/source/msole/mtnotification.hxx
+++ b/embeddedobj/source/msole/mtnotification.hxx
@@ -41,8 +41,7 @@ class MainThreadNotificationRequest : public cppu::WeakImplHelper< css::awt::XC
sal_uInt32 m_nAspect;
public:
- virtual void SAL_CALL notify (const css::uno::Any& rUserData)
- throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL notify (const css::uno::Any& rUserData) override;
MainThreadNotificationRequest( const ::rtl::Reference< OleEmbeddedObject >& xObj, sal_uInt16 nNotificationType, sal_uInt32 nAspect = 0 );
~MainThreadNotificationRequest() override;
};
diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx
index 2f06f0496cdd..140ad3dc073b 100644
--- a/embeddedobj/source/msole/olecomponent.cxx
+++ b/embeddedobj/source/msole/olecomponent.cxx
@@ -1409,8 +1409,6 @@ void OleComponent::OnClose_Impl()
// XCloseable
void SAL_CALL OleComponent::close( sal_Bool bDeliverOwnership )
- throw ( util::CloseVetoException,
- uno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1463,7 +1461,6 @@ void SAL_CALL OleComponent::close( sal_Bool bDeliverOwnership )
void SAL_CALL OleComponent::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
- throw ( uno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1477,7 +1474,6 @@ void SAL_CALL OleComponent::addCloseListener( const uno::Reference< util::XClose
void SAL_CALL OleComponent::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener )
- throw ( uno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1491,9 +1487,6 @@ void SAL_CALL OleComponent::removeCloseListener( const uno::Reference< util::XCl
// XTransferable
uno::Any SAL_CALL OleComponent::getTransferData( const datatransfer::DataFlavor& aFlavor )
- throw ( datatransfer::UnsupportedFlavorException,
- io::IOException,
- uno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1594,7 +1587,6 @@ uno::Any SAL_CALL OleComponent::getTransferData( const datatransfer::DataFlavor&
uno::Sequence< datatransfer::DataFlavor > SAL_CALL OleComponent::getTransferDataFlavors()
- throw ( uno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1610,7 +1602,6 @@ uno::Sequence< datatransfer::DataFlavor > SAL_CALL OleComponent::getTransferData
sal_Bool SAL_CALL OleComponent::isDataFlavorSupported( const datatransfer::DataFlavor& aFlavor )
- throw ( uno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1631,7 +1622,7 @@ sal_Bool SAL_CALL OleComponent::isDataFlavorSupported( const datatransfer::DataF
return false;
}
-void SAL_CALL OleComponent::dispose() throw (css::uno::RuntimeException)
+void SAL_CALL OleComponent::dispose()
{
try
{
@@ -1643,7 +1634,6 @@ void SAL_CALL OleComponent::dispose() throw (css::uno::RuntimeException)
}
void SAL_CALL OleComponent::addEventListener( const uno::Reference< lang::XEventListener >& xListener )
- throw ( uno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1657,7 +1647,6 @@ void SAL_CALL OleComponent::addEventListener( const uno::Reference< lang::XEvent
void SAL_CALL OleComponent::removeEventListener( const uno::Reference< lang::XEventListener >& xListener )
- throw ( uno::RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1668,7 +1657,7 @@ void SAL_CALL OleComponent::removeEventListener( const uno::Reference< lang::XEv
xListener );
}
-sal_Int64 SAL_CALL OleComponent::getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) throw(css::uno::RuntimeException)
+sal_Int64 SAL_CALL OleComponent::getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier )
{
try
{
@@ -1701,13 +1690,12 @@ sal_Int64 SAL_CALL OleComponent::getSomething( const css::uno::Sequence< sal_Int
return 0;
}
-sal_Bool SAL_CALL OleComponent::isModified() throw (css::uno::RuntimeException)
+sal_Bool SAL_CALL OleComponent::isModified()
{
return m_bModified;
}
void SAL_CALL OleComponent::setModified( sal_Bool bModified )
- throw (css::beans::PropertyVetoException, css::uno::RuntimeException)
{
m_bModified = bModified;
@@ -1734,7 +1722,7 @@ void SAL_CALL OleComponent::setModified( sal_Bool bModified )
}
}
-void SAL_CALL OleComponent::addModifyListener( const css::uno::Reference < css::util::XModifyListener >& xListener ) throw(css::uno::RuntimeException)
+void SAL_CALL OleComponent::addModifyListener( const css::uno::Reference < css::util::XModifyListener >& xListener )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
@@ -1746,7 +1734,7 @@ void SAL_CALL OleComponent::addModifyListener( const css::uno::Reference < css::
m_pInterfaceContainer->addInterface( cppu::UnoType<util::XModifyListener>::get(), xListener );
}
-void SAL_CALL OleComponent::removeModifyListener( const css::uno::Reference < css::util::XModifyListener >& xListener) throw(css::uno::RuntimeException)
+void SAL_CALL OleComponent::removeModifyListener( const css::uno::Reference < css::util::XModifyListener >& xListener)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( m_bDisposed )
diff --git a/embeddedobj/source/msole/olecomponent.hxx b/embeddedobj/source/msole/olecomponent.hxx
index a8a2ea81c240..6665895c28e2 100644
--- a/embeddedobj/source/msole/olecomponent.hxx
+++ b/embeddedobj/source/msole/olecomponent.hxx
@@ -143,29 +143,28 @@ public:
void OnClose_Impl();
// XCloseable
- virtual void SAL_CALL close( sal_Bool DeliverOwnership ) throw (css::util::CloseVetoException, css::uno::RuntimeException) override;
- virtual void SAL_CALL addCloseListener( const css::uno::Reference< css::util::XCloseListener >& Listener ) throw (css::uno::RuntimeException) override;
- virtual void SAL_CALL removeCloseListener( const css::uno::Reference< css::util::XCloseListener >& Listener ) throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL close( sal_Bool DeliverOwnership ) override;
+ virtual void SAL_CALL addCloseListener( const css::uno::Reference< css::util::XCloseListener >& Listener ) override;
+ virtual void SAL_CALL removeCloseListener( const css::uno::Reference< css::util::XCloseListener >& Listener ) override;
// XTransferable
- virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor ) throw (css::datatransfer::UnsupportedFlavorException, css::io::IOException, css::uno::RuntimeException) override;
- virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( ) throw (css::uno::RuntimeException) override;
- virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor ) throw (css::uno::RuntimeException) override;
+ virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor ) override;
+ virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( ) override;
+ virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor ) override;
// XComponent
- virtual void SAL_CALL dispose() throw (css::uno::RuntimeException) override;
- virtual void SAL_CALL addEventListener(const css::uno::Reference < css::lang::XEventListener >& aListener) throw (css::uno::RuntimeException) override;
- virtual void SAL_CALL removeEventListener(const css::uno::Reference < css::lang::XEventListener >& aListener) throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL dispose() override;
+ virtual void SAL_CALL addEventListener(const css::uno::Reference < css::lang::XEventListener >& aListener) override;
+ virtual void SAL_CALL removeEventListener(const css::uno::Reference < css::lang::XEventListener >& aListener) override;
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) throw(css::uno::RuntimeException) override;
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
// XModifiable
- virtual sal_Bool SAL_CALL isModified() throw (css::uno::RuntimeException) override;
- virtual void SAL_CALL setModified( sal_Bool bModified )
- throw (css::beans::PropertyVetoException, css::uno::RuntimeException) override;
- virtual void SAL_CALL addModifyListener( const css::uno::Reference < css::util::XModifyListener >& xListener ) throw(css::uno::RuntimeException) override;
- virtual void SAL_CALL removeModifyListener( const css::uno::Reference < css::util::XModifyListener >& xListener) throw(css::uno::RuntimeException) override;
+ virtual sal_Bool SAL_CALL isModified() override;
+ virtual void SAL_CALL setModified( sal_Bool bModified ) override;
+ virtual void SAL_CALL addModifyListener( const css::uno::Reference < css::util::XModifyListener >& xListener ) override;
+ virtual void SAL_CALL removeModifyListener( const css::uno::Reference < css::util::XModifyListener >& xListener) override;
};
#endif
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx
index a28786f05f9b..bb6bc4cea537 100644
--- a/embeddedobj/source/msole/oleembed.cxx
+++ b/embeddedobj/source/msole/oleembed.cxx
@@ -438,10 +438,6 @@ bool OleEmbeddedObject::TryToConvertToOOo()
void SAL_CALL OleEmbeddedObject::changeState( sal_Int32 nNewState )
- throw ( embed::UnreachableStateException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -596,8 +592,6 @@ void SAL_CALL OleEmbeddedObject::changeState( sal_Int32 nNewState )
uno::Sequence< sal_Int32 > SAL_CALL OleEmbeddedObject::getReachableStates()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -638,8 +632,6 @@ uno::Sequence< sal_Int32 > SAL_CALL OleEmbeddedObject::getReachableStates()
sal_Int32 SAL_CALL OleEmbeddedObject::getCurrentState()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -805,11 +797,6 @@ namespace
void SAL_CALL OleEmbeddedObject::doVerb( sal_Int32 nVerbID )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- embed::UnreachableStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -941,8 +928,6 @@ void SAL_CALL OleEmbeddedObject::doVerb( sal_Int32 nVerbID )
uno::Sequence< embed::VerbDescriptor > SAL_CALL OleEmbeddedObject::getSupportedVerbs()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -982,8 +967,6 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL OleEmbeddedObject::getSupportedV
void SAL_CALL OleEmbeddedObject::setClientSite(
const uno::Reference< embed::XEmbeddedClient >& xClient )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -1012,8 +995,6 @@ void SAL_CALL OleEmbeddedObject::setClientSite(
uno::Reference< embed::XEmbeddedClient > SAL_CALL OleEmbeddedObject::getClientSite()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -1037,9 +1018,6 @@ uno::Reference< embed::XEmbeddedClient > SAL_CALL OleEmbeddedObject::getClientSi
void SAL_CALL OleEmbeddedObject::update()
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -1072,8 +1050,6 @@ void SAL_CALL OleEmbeddedObject::update()
void SAL_CALL OleEmbeddedObject::setUpdateMode( sal_Int32 nMode )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -1103,8 +1079,6 @@ void SAL_CALL OleEmbeddedObject::setUpdateMode( sal_Int32 nMode )
sal_Int64 SAL_CALL OleEmbeddedObject::getStatus( sal_Int64
nAspect
)
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -1144,7 +1118,6 @@ sal_Int64 SAL_CALL OleEmbeddedObject::getStatus( sal_Int64
void SAL_CALL OleEmbeddedObject::setContainerName( const OUString& sName )
- throw ( uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
diff --git a/embeddedobj/source/msole/olemisc.cxx b/embeddedobj/source/msole/olemisc.cxx
index a6d9a1a0b6e1..a5121aac9971 100644
--- a/embeddedobj/source/msole/olemisc.cxx
+++ b/embeddedobj/source/msole/olemisc.cxx
@@ -299,7 +299,6 @@ void OleEmbeddedObject::Dispose()
uno::Sequence< sal_Int8 > SAL_CALL OleEmbeddedObject::getClassID()
- throw ( uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -319,7 +318,6 @@ uno::Sequence< sal_Int8 > SAL_CALL OleEmbeddedObject::getClassID()
OUString SAL_CALL OleEmbeddedObject::getClassName()
- throw ( uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -340,8 +338,6 @@ OUString SAL_CALL OleEmbeddedObject::getClassName()
void SAL_CALL OleEmbeddedObject::setClassInfo(
const uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
- throw ( lang::NoSupportException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -359,7 +355,6 @@ void SAL_CALL OleEmbeddedObject::setClassInfo(
uno::Reference< util::XCloseable > SAL_CALL OleEmbeddedObject::getComponent()
- throw ( uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -396,7 +391,6 @@ uno::Reference< util::XCloseable > SAL_CALL OleEmbeddedObject::getComponent()
void SAL_CALL OleEmbeddedObject::addStateChangeListener( const uno::Reference< embed::XStateChangeListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XStateChangeBroadcaster > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -422,7 +416,6 @@ void SAL_CALL OleEmbeddedObject::addStateChangeListener( const uno::Reference< e
void SAL_CALL OleEmbeddedObject::removeStateChangeListener(
const uno::Reference< embed::XStateChangeListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
// begin wrapping related part ====================
uno::Reference< embed::XStateChangeBroadcaster > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -442,8 +435,6 @@ void SAL_CALL OleEmbeddedObject::removeStateChangeListener(
void SAL_CALL OleEmbeddedObject::close( sal_Bool bDeliverOwnership )
- throw ( util::CloseVetoException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -506,7 +497,6 @@ void SAL_CALL OleEmbeddedObject::close( sal_Bool bDeliverOwnership )
void SAL_CALL OleEmbeddedObject::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -530,7 +520,6 @@ void SAL_CALL OleEmbeddedObject::addCloseListener( const uno::Reference< util::X
void SAL_CALL OleEmbeddedObject::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -553,7 +542,6 @@ void SAL_CALL OleEmbeddedObject::removeCloseListener( const uno::Reference< util
void SAL_CALL OleEmbeddedObject::addEventListener( const uno::Reference< document::XEventListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -578,7 +566,6 @@ void SAL_CALL OleEmbeddedObject::addEventListener( const uno::Reference< documen
void SAL_CALL OleEmbeddedObject::removeEventListener(
const uno::Reference< document::XEventListener >& xListener )
- throw ( uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -603,9 +590,6 @@ void SAL_CALL OleEmbeddedObject::removeEventListener(
void SAL_CALL OleEmbeddedObject::setObjectRectangles( const awt::Rectangle& aPosRect,
const awt::Rectangle& aClipRect )
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XInplaceObject > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -622,9 +606,6 @@ void SAL_CALL OleEmbeddedObject::setObjectRectangles( const awt::Rectangle& aPos
void SAL_CALL OleEmbeddedObject::enableModeless( sal_Bool bEnable )
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XInplaceObject > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -642,8 +623,6 @@ void SAL_CALL OleEmbeddedObject::enableModeless( sal_Bool bEnable )
void SAL_CALL OleEmbeddedObject::translateAccelerators(
const uno::Sequence< awt::KeyEvent >& aKeys )
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XInplaceObject > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -659,7 +638,7 @@ void SAL_CALL OleEmbeddedObject::translateAccelerators(
// XChild
-css::uno::Reference< css::uno::XInterface > SAL_CALL OleEmbeddedObject::getParent() throw (css::uno::RuntimeException, std::exception)
+css::uno::Reference< css::uno::XInterface > SAL_CALL OleEmbeddedObject::getParent()
{
// begin wrapping related part ====================
uno::Reference< container::XChild > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -674,7 +653,7 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL OleEmbeddedObject::getParen
}
-void SAL_CALL OleEmbeddedObject::setParent( const css::uno::Reference< css::uno::XInterface >& xParent ) throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception)
+void SAL_CALL OleEmbeddedObject::setParent( const css::uno::Reference< css::uno::XInterface >& xParent )
{
// begin wrapping related part ====================
uno::Reference< container::XChild > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx
index d9bf6d92a647..036dd496157f 100644
--- a/embeddedobj/source/msole/olepersist.cxx
+++ b/embeddedobj/source/msole/olepersist.cxx
@@ -106,8 +106,6 @@ OUString GetNewTempFileURL_Impl( const uno::Reference< lang::XMultiServiceFactor
OUString GetNewFilledTempFile_Impl( const uno::Reference< io::XInputStream >& xInStream,
const uno::Reference< lang::XMultiServiceFactory >& xFactory )
- throw ( io::IOException,
- uno::RuntimeException )
{
OSL_ENSURE( xInStream.is() && xFactory.is(), "Wrong parameters are provided!\n" );
@@ -158,7 +156,6 @@ OUString GetNewFilledTempFile_Impl( const uno::Reference< io::XInputStream >& xI
/// @throws io::IOException
/// @throws uno::RuntimeException
OUString GetNewFilledTempFile_Impl( const uno::Reference< embed::XOptimizedStorage >& xParentStorage, const OUString& aEntryName, const uno::Reference< lang::XMultiServiceFactory >& xFactory )
- throw( io::IOException, uno::RuntimeException )
{
OUString aResult;
@@ -266,7 +263,6 @@ void VerbExecutionController::UnlockNotification()
uno::Reference< io::XStream > OleEmbeddedObject::GetNewFilledTempStream_Impl( const uno::Reference< io::XInputStream >& xInStream )
- throw( io::IOException, uno::RuntimeException )
{
SAL_WARN_IF( !xInStream.is(), "embeddedobj.ole", "Wrong parameter is provided!" );
@@ -288,7 +284,6 @@ uno::Reference< io::XStream > OleEmbeddedObject::GetNewFilledTempStream_Impl( co
uno::Reference< io::XStream > OleEmbeddedObject::TryToGetAcceptableFormat_Impl( const uno::Reference< io::XStream >& xStream )
- throw ( uno::Exception )
{
// TODO/LATER: Actually this should be done by a centralized component ( may be a graphical filter )
if ( !m_xFactory.is() )
@@ -371,7 +366,6 @@ uno::Reference< io::XStream > OleEmbeddedObject::TryToGetAcceptableFormat_Impl(
void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStream >& xTargetStream,
const uno::Reference< io::XStream >& xCachedVisualRepresentation )
- throw ( uno::Exception )
{
OSL_ENSURE( xTargetStream.is() && xCachedVisualRepresentation.is(), "Invalid arguments!\n" );
@@ -522,7 +516,6 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
void OleEmbeddedObject::RemoveVisualCache_Impl( const uno::Reference< io::XStream >& xTargetStream )
- throw ( uno::Exception )
{
OSL_ENSURE( xTargetStream.is(), "Invalid argument!\n" );
if ( !xTargetStream.is() )
@@ -1030,7 +1023,6 @@ uno::Reference< io::XOutputStream > OleEmbeddedObject::GetStreamForSaving()
void OleEmbeddedObject::StoreObjectToStream( uno::Reference< io::XOutputStream > const & xOutStream )
- throw ( uno::Exception )
{
// this method should be used only on windows
if ( m_pOleComponent )
@@ -1073,7 +1065,6 @@ void OleEmbeddedObject::StoreToLocation_Impl(
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lObjArgs,
bool bSaveAs )
- throw ( uno::Exception )
{
// TODO: use lObjArgs
// TODO: exchange StoreVisualReplacement by SO file format version?
@@ -1286,11 +1277,6 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
sal_Int32 nEntryConnectionMode,
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1492,11 +1478,6 @@ void SAL_CALL OleEmbeddedObject::storeToEntry( const uno::Reference< embed::XSto
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1524,11 +1505,6 @@ void SAL_CALL OleEmbeddedObject::storeAsEntry( const uno::Reference< embed::XSto
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1553,9 +1529,6 @@ void SAL_CALL OleEmbeddedObject::storeAsEntry( const uno::Reference< embed::XSto
void SAL_CALL OleEmbeddedObject::saveCompleted( sal_Bool bUseNew )
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1652,8 +1625,6 @@ void SAL_CALL OleEmbeddedObject::saveCompleted( sal_Bool bUseNew )
sal_Bool SAL_CALL OleEmbeddedObject::hasEntry()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1681,8 +1652,6 @@ sal_Bool SAL_CALL OleEmbeddedObject::hasEntry()
OUString SAL_CALL OleEmbeddedObject::getEntryName()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1714,10 +1683,6 @@ OUString SAL_CALL OleEmbeddedObject::getEntryName()
void SAL_CALL OleEmbeddedObject::storeOwn()
- throw ( embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1832,8 +1797,6 @@ void SAL_CALL OleEmbeddedObject::storeOwn()
sal_Bool SAL_CALL OleEmbeddedObject::isReadonly()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1867,11 +1830,6 @@ sal_Bool SAL_CALL OleEmbeddedObject::isReadonly()
void SAL_CALL OleEmbeddedObject::reload(
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbedPersist > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -1910,11 +1868,6 @@ void SAL_CALL OleEmbeddedObject::reload(
void SAL_CALL OleEmbeddedObject::breakLink( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -2029,8 +1982,6 @@ void SAL_CALL OleEmbeddedObject::breakLink( const uno::Reference< embed::XStorag
sal_Bool SAL_CALL OleEmbeddedObject::isLink()
- throw ( embed::WrongStateException,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
@@ -2050,9 +2001,6 @@ sal_Bool SAL_CALL OleEmbeddedObject::isLink()
OUString SAL_CALL OleEmbeddedObject::getLinkURL()
- throw ( embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XLinkageSupport > xWrappedObject( m_xWrappedObject, uno::UNO_QUERY );
diff --git a/embeddedobj/source/msole/olepersist.hxx b/embeddedobj/source/msole/olepersist.hxx
index 51adb40d2843..d0edd1d8b23b 100644
--- a/embeddedobj/source/msole/olepersist.hxx
+++ b/embeddedobj/source/msole/olepersist.hxx
@@ -38,8 +38,7 @@ OUString GetNewTempFileURL_Impl( const css::uno::Reference< css::lang::XMultiSer
/// @throws css::uno::RuntimeException
OUString GetNewFilledTempFile_Impl(
css::uno::Reference<css::io::XInputStream > const & xInStream,
- css::uno::Reference<css::lang::XMultiServiceFactory> const & xFactory)
- throw (css::io::IOException, css::uno::RuntimeException);
+ css::uno::Reference<css::lang::XMultiServiceFactory> const & xFactory);
bool KillFile_Impl( const OUString& aURL, const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
diff --git a/embeddedobj/source/msole/olevisual.cxx b/embeddedobj/source/msole/olevisual.cxx
index 094c4bed034f..6b197b547d35 100644
--- a/embeddedobj/source/msole/olevisual.cxx
+++ b/embeddedobj/source/msole/olevisual.cxx
@@ -39,7 +39,6 @@ using namespace ::comphelper;
embed::VisualRepresentation OleEmbeddedObject::GetVisualRepresentationInNativeFormat_Impl(
const uno::Reference< io::XStream >& xCachedVisRepr )
- throw ( uno::Exception )
{
embed::VisualRepresentation aVisualRepr;
@@ -78,10 +77,6 @@ embed::VisualRepresentation OleEmbeddedObject::GetVisualRepresentationInNativeFo
}
void SAL_CALL OleEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt::Size& aSize )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -156,10 +151,6 @@ void SAL_CALL OleEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt
}
awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -321,10 +312,6 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
}
embed::VisualRepresentation SAL_CALL OleEmbeddedObject::getPreferredVisualRepresentation( sal_Int64 nAspect )
- throw ( lang::IllegalArgumentException,
- embed::WrongStateException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
@@ -416,8 +403,6 @@ embed::VisualRepresentation SAL_CALL OleEmbeddedObject::getPreferredVisualRepres
}
sal_Int32 SAL_CALL OleEmbeddedObject::getMapUnit( sal_Int64 nAspect )
- throw ( uno::Exception,
- uno::RuntimeException, std::exception)
{
// begin wrapping related part ====================
uno::Reference< embed::XEmbeddedObject > xWrappedObject = m_xWrappedObject;
diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx
index 5bd54df9155e..0ea4da053d50 100644
--- a/embeddedobj/source/msole/ownview.cxx
+++ b/embeddedobj/source/msole/ownview.cxx
@@ -54,13 +54,11 @@ class DummyHandler_Impl : public ::cppu::WeakImplHelper< task::XInteractionHandl
public:
DummyHandler_Impl() {}
- virtual void SAL_CALL handle( const uno::Reference< task::XInteractionRequest >& xRequest )
- throw( uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL handle( const uno::Reference< task::XInteractionRequest >& xRequest ) override;
};
void SAL_CALL DummyHandler_Impl::handle( const uno::Reference< task::XInteractionRequest >& )
- throw( uno::RuntimeException, std::exception )
{
return;
}
@@ -567,7 +565,6 @@ void OwnView_Impl::Close()
void SAL_CALL OwnView_Impl::notifyEvent( const document::EventObject& aEvent )
- throw ( uno::RuntimeException, std::exception )
{
uno::Reference< frame::XModel > xModel;
@@ -604,14 +601,11 @@ void SAL_CALL OwnView_Impl::notifyEvent( const document::EventObject& aEvent )
void SAL_CALL OwnView_Impl::queryClosing( const lang::EventObject&, sal_Bool )
- throw ( util::CloseVetoException,
- uno::RuntimeException, std::exception )
{
}
void SAL_CALL OwnView_Impl::notifyClosing( const lang::EventObject& Source )
- throw ( uno::RuntimeException, std::exception )
{
::osl::MutexGuard aGuard( m_aMutex );
if ( Source.Source == m_xModel )
@@ -620,7 +614,6 @@ void SAL_CALL OwnView_Impl::notifyClosing( const lang::EventObject& Source )
void SAL_CALL OwnView_Impl::disposing( const lang::EventObject& Source )
- throw (uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( m_aMutex );
if ( Source.Source == m_xModel )
diff --git a/embeddedobj/source/msole/ownview.hxx b/embeddedobj/source/msole/ownview.hxx
index 8878583bf5c7..4b437fea8d51 100644
--- a/embeddedobj/source/msole/ownview.hxx
+++ b/embeddedobj/source/msole/ownview.hxx
@@ -70,12 +70,12 @@ public:
void Close();
- virtual void SAL_CALL notifyEvent( const css::document::EventObject& Event ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL notifyEvent( const css::document::EventObject& Event ) override;
- virtual void SAL_CALL queryClosing( const css::lang::EventObject& Source, sal_Bool GetsOwnership ) throw (css::util::CloseVetoException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyClosing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryClosing( const css::lang::EventObject& Source, sal_Bool GetsOwnership ) override;
+ virtual void SAL_CALL notifyClosing( const css::lang::EventObject& Source ) override;
- 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;
};
#endif
diff --git a/embeddedobj/source/msole/xdialogcreator.cxx b/embeddedobj/source/msole/xdialogcreator.cxx
index 2b46d2f1099a..e7cc0216e938 100644
--- a/embeddedobj/source/msole/xdialogcreator.cxx
+++ b/embeddedobj/source/msole/xdialogcreator.cxx
@@ -130,10 +130,6 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aInObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException )
{
embed::InsertedObjectInfo aObjectInfo;
uno::Sequence< beans::PropertyValue > aObjArgs( aInObjArgs );
@@ -282,10 +278,6 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceInitF
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntryName,
const uno::Sequence< beans::PropertyValue >& aObjectArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException )
{
embed::InsertedObjectInfo aObjectInfo;
@@ -331,21 +323,18 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceInitF
OUString SAL_CALL MSOLEDialogObjectCreator::getImplementationName()
- throw ( uno::RuntimeException )
{
return impl_staticGetImplementationName();
}
sal_Bool SAL_CALL MSOLEDialogObjectCreator::supportsService( const OUString& ServiceName )
- throw ( uno::RuntimeException )
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL MSOLEDialogObjectCreator::getSupportedServiceNames()
- throw ( uno::RuntimeException )
{
return impl_staticGetSupportedServiceNames();
}
diff --git a/embeddedobj/source/msole/xdialogcreator.hxx b/embeddedobj/source/msole/xdialogcreator.hxx
index 714afeb1ddf1..5aec4daa17e7 100644
--- a/embeddedobj/source/msole/xdialogcreator.hxx
+++ b/embeddedobj/source/msole/xdialogcreator.hxx
@@ -52,15 +52,15 @@ public:
// XInsertObjectDialog
- virtual css::embed::InsertedObjectInfo SAL_CALL createInstanceByDialog( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException) override;
+ virtual css::embed::InsertedObjectInfo SAL_CALL createInstanceByDialog( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XEmbedObjectClipboardCreator
- virtual css::embed::InsertedObjectInfo SAL_CALL createInstanceInitFromClipboard( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntryName, const css::uno::Sequence< css::beans::PropertyValue >& aObjectArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException) override;
+ virtual css::embed::InsertedObjectInfo SAL_CALL createInstanceInitFromClipboard( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntryName, const css::uno::Sequence< css::beans::PropertyValue >& aObjectArgs ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (css::uno::RuntimeException) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
diff --git a/embeddedobj/source/msole/xolefactory.cxx b/embeddedobj/source/msole/xolefactory.cxx
index 0653adde576c..81b0d04c8481 100644
--- a/embeddedobj/source/msole/xolefactory.cxx
+++ b/embeddedobj/source/msole/xolefactory.cxx
@@ -61,11 +61,6 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aMedDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- container::NoSuchElementException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
if ( !xStorage.is() )
throw lang::IllegalArgumentException( "No parent storage is provided!",
@@ -132,10 +127,6 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aMediaDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
if ( !xStorage.is() )
throw lang::IllegalArgumentException( "No parent storage is provided!",
@@ -172,10 +163,6 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception)
{
if ( !xStorage.is() )
throw lang::IllegalArgumentException( "No parent storage is provided!",
@@ -211,10 +198,6 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& aMediaDescr,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
if ( !xStorage.is() )
throw lang::IllegalArgumentException( "No parent storage is provided!",
@@ -253,10 +236,6 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
sal_Int32 /*nEntryConnectionMode*/,
const uno::Sequence< beans::PropertyValue >& /*lArguments*/,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
- throw ( lang::IllegalArgumentException,
- io::IOException,
- uno::Exception,
- uno::RuntimeException, std::exception )
{
// the initialization is completely controlled by user
if ( !xStorage.is() )
@@ -291,20 +270,17 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
OUString SAL_CALL OleEmbeddedObjectFactory::getImplementationName()
- throw ( uno::RuntimeException, std::exception )
{
return impl_staticGetImplementationName();
}
sal_Bool SAL_CALL OleEmbeddedObjectFactory::supportsService( const OUString& ServiceName )
- throw ( uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL OleEmbeddedObjectFactory::getSupportedServiceNames()
- throw ( uno::RuntimeException, std::exception )
{
return impl_staticGetSupportedServiceNames();
}
diff --git a/embeddedobj/source/msole/xolefactory.hxx b/embeddedobj/source/msole/xolefactory.hxx
index cbc22773b32a..afe8165ffe64 100644
--- a/embeddedobj/source/msole/xolefactory.hxx
+++ b/embeddedobj/source/msole/xolefactory.hxx
@@ -52,20 +52,20 @@ public:
// XEmbedObjectCreator
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitNew( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMedDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromMediaDescriptor( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitNew( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromEntry( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMedDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceInitFromMediaDescriptor( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XEmbedObjectFactory
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, sal_Int32 nEntryConnectionMode, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceUserInit( const css::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName, const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, sal_Int32 nEntryConnectionMode, const css::uno::Sequence< css::beans::PropertyValue >& lArguments, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XLinkCreator
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceLink( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) throw (css::lang::IllegalArgumentException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceLink( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, const css::uno::Sequence< css::beans::PropertyValue >& aMediaDescr, const css::uno::Sequence< css::beans::PropertyValue >& lObjArgs ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) 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& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};