summaryrefslogtreecommitdiff
path: root/oox
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 /oox
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 'oox')
-rw-r--r--oox/inc/services.hxx14
-rw-r--r--oox/source/core/contexthandler.cxx14
-rw-r--r--oox/source/core/contexthandler2.cxx8
-rw-r--r--oox/source/core/fastparser.cxx12
-rw-r--r--oox/source/core/fasttokenhandler.cxx12
-rw-r--r--oox/source/core/filterbase.cxx24
-rw-r--r--oox/source/core/filterdetect.cxx23
-rw-r--r--oox/source/core/fragmenthandler.cxx20
-rw-r--r--oox/source/core/fragmenthandler2.cxx12
-rw-r--r--oox/source/core/recordparser.cxx22
-rw-r--r--oox/source/core/relationshandler.cxx2
-rw-r--r--oox/source/core/xmlfilterbase.cxx6
-rw-r--r--oox/source/crypto/DocumentDecryption.cxx34
-rw-r--r--oox/source/docprop/docprophandler.cxx10
-rw-r--r--oox/source/docprop/docprophandler.hxx20
-rw-r--r--oox/source/docprop/ooxmldocpropimport.cxx11
-rw-r--r--oox/source/docprop/ooxmldocpropimport.hxx9
-rw-r--r--oox/source/drawingml/diagram/diagramfragmenthandler.cxx2
-rw-r--r--oox/source/drawingml/diagram/diagramfragmenthandler.hxx4
-rw-r--r--oox/source/drawingml/diagram/layoutnodecontext.cxx3
-rw-r--r--oox/source/export/ColorPropertySet.cxx39
-rw-r--r--oox/source/export/ColorPropertySet.hxx52
-rw-r--r--oox/source/helper/propertymap.cxx40
-rw-r--r--oox/source/helper/textinputstream.cxx26
-rw-r--r--oox/source/mathml/import.cxx12
-rw-r--r--oox/source/ole/olestorage.cxx32
-rw-r--r--oox/source/ppt/dgmimport.cxx6
-rw-r--r--oox/source/ppt/dgmlayout.cxx6
-rw-r--r--oox/source/ppt/pptimport.cxx8
-rw-r--r--oox/source/shape/ShapeContextHandler.cxx33
-rw-r--r--oox/source/shape/ShapeContextHandler.hxx75
-rw-r--r--oox/source/shape/ShapeDrawingFragmentHandler.cxx2
-rw-r--r--oox/source/shape/ShapeDrawingFragmentHandler.hxx2
-rw-r--r--oox/source/shape/ShapeFilterBase.cxx4
-rw-r--r--oox/source/shape/ShapeFilterBase.hxx5
-rw-r--r--oox/source/vml/vmlinputstream.cxx13
36 files changed, 233 insertions, 384 deletions
diff --git a/oox/inc/services.hxx b/oox/inc/services.hxx
index 619f95550098..ae57c562839e 100644
--- a/oox/inc/services.hxx
+++ b/oox/inc/services.hxx
@@ -28,49 +28,49 @@ namespace oox {
extern css::uno::Sequence< OUString > SAL_CALL FastTokenHandler_getSupportedServiceNames();
/// @throws css::uno::Exception
extern css::uno::Reference< css::uno::XInterface > SAL_CALL FastTokenHandler_createInstance(
- const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::uno::Exception);
+ const css::uno::Reference< css::uno::XComponentContext >& rxContext );
}
namespace core {
extern OUString SAL_CALL FilterDetect_getImplementationName();
extern css::uno::Sequence< OUString > SAL_CALL FilterDetect_getSupportedServiceNames();
/// @throws css::uno::Exception
extern css::uno::Reference< css::uno::XInterface > SAL_CALL FilterDetect_createInstance(
- const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::uno::Exception);
+ const css::uno::Reference< css::uno::XComponentContext >& rxContext );
}
namespace docprop {
extern OUString SAL_CALL DocumentPropertiesImport_getImplementationName();
extern css::uno::Sequence< OUString > SAL_CALL DocumentPropertiesImport_getSupportedServiceNames();
/// @throws css::uno::Exception
extern css::uno::Reference< css::uno::XInterface > SAL_CALL DocumentPropertiesImport_createInstance(
- const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::uno::Exception);
+ const css::uno::Reference< css::uno::XComponentContext >& rxContext );
}
namespace ppt {
extern OUString SAL_CALL PowerPointImport_getImplementationName();
extern css::uno::Sequence< OUString > SAL_CALL PowerPointImport_getSupportedServiceNames();
/// @throws css::uno::Exception
extern css::uno::Reference< css::uno::XInterface > SAL_CALL PowerPointImport_createInstance(
- const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::uno::Exception);
+ const css::uno::Reference< css::uno::XComponentContext >& rxContext );
}
namespace ppt {
extern OUString SAL_CALL QuickDiagrammingImport_getImplementationName();
extern css::uno::Sequence< OUString > SAL_CALL QuickDiagrammingImport_getSupportedServiceNames();
/// @throws css::uno::Exception
extern css::uno::Reference< css::uno::XInterface > SAL_CALL QuickDiagrammingImport_createInstance(
- const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::uno::Exception);
+ const css::uno::Reference< css::uno::XComponentContext >& rxContext );
}
namespace ppt {
extern OUString SAL_CALL QuickDiagrammingLayout_getImplementationName();
extern css::uno::Sequence< OUString > SAL_CALL QuickDiagrammingLayout_getSupportedServiceNames();
/// @throws css::uno::Exception
extern css::uno::Reference< css::uno::XInterface > SAL_CALL QuickDiagrammingLayout_createInstance(
- const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::uno::Exception);
+ const css::uno::Reference< css::uno::XComponentContext >& rxContext );
}
namespace shape {
extern OUString SAL_CALL ShapeContextHandler_getImplementationName();
extern css::uno::Sequence< OUString > SAL_CALL ShapeContextHandler_getSupportedServiceNames();
/// @throws css::uno::Exception
extern css::uno::Reference< css::uno::XInterface > SAL_CALL ShapeContextHandler_createInstance(
- const css::uno::Reference< css::uno::XComponentContext >& rxContext ) throw (css::uno::Exception);
+ const css::uno::Reference< css::uno::XComponentContext >& rxContext );
}
}
diff --git a/oox/source/core/contexthandler.cxx b/oox/source/core/contexthandler.cxx
index 5527d9f58907..86aed09d5dd6 100644
--- a/oox/source/core/contexthandler.cxx
+++ b/oox/source/core/contexthandler.cxx
@@ -84,33 +84,33 @@ void ContextHandler::implSetLocator( const Reference< XLocator >& rxLocator )
// com.sun.star.xml.sax.XFastContextHandler interface -------------------------
-void ContextHandler::startFastElement( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException, std::exception )
+void ContextHandler::startFastElement( sal_Int32, const Reference< XFastAttributeList >& )
{
}
-void ContextHandler::startUnknownElement( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException, std::exception )
+void ContextHandler::startUnknownElement( const OUString&, const OUString&, const Reference< XFastAttributeList >& )
{
}
-void ContextHandler::endFastElement( sal_Int32 ) throw( SAXException, RuntimeException, std::exception )
+void ContextHandler::endFastElement( sal_Int32 )
{
}
-void ContextHandler::endUnknownElement( const OUString&, const OUString& ) throw( SAXException, RuntimeException, std::exception )
+void ContextHandler::endUnknownElement( const OUString&, const OUString& )
{
}
-Reference< XFastContextHandler > ContextHandler::createFastChildContext( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException, std::exception )
+Reference< XFastContextHandler > ContextHandler::createFastChildContext( sal_Int32, const Reference< XFastAttributeList >& )
{
return nullptr;
}
-Reference< XFastContextHandler > ContextHandler::createUnknownChildContext( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException, std::exception )
+Reference< XFastContextHandler > ContextHandler::createUnknownChildContext( const OUString&, const OUString&, const Reference< XFastAttributeList >& )
{
return nullptr;
}
-void ContextHandler::characters( const OUString& ) throw( SAXException, RuntimeException, std::exception )
+void ContextHandler::characters( const OUString& )
{
}
diff --git a/oox/source/core/contexthandler2.cxx b/oox/source/core/contexthandler2.cxx
index 60d5e1db41f5..4caf0f9364d8 100644
--- a/oox/source/core/contexthandler2.cxx
+++ b/oox/source/core/contexthandler2.cxx
@@ -188,23 +188,23 @@ ContextHandler2::~ContextHandler2()
// com.sun.star.xml.sax.XFastContextHandler interface -------------------------
Reference< XFastContextHandler > SAL_CALL ContextHandler2::createFastChildContext(
- sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs ) throw( SAXException, RuntimeException, std::exception )
+ sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs )
{
return implCreateChildContext( nElement, rxAttribs );
}
void SAL_CALL ContextHandler2::startFastElement(
- sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs ) throw( SAXException, RuntimeException, std::exception )
+ sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs )
{
implStartElement( nElement, rxAttribs );
}
-void SAL_CALL ContextHandler2::characters( const OUString& rChars ) throw( SAXException, RuntimeException, std::exception )
+void SAL_CALL ContextHandler2::characters( const OUString& rChars )
{
implCharacters( rChars );
}
-void SAL_CALL ContextHandler2::endFastElement( sal_Int32 nElement ) throw( SAXException, RuntimeException, std::exception )
+void SAL_CALL ContextHandler2::endFastElement( sal_Int32 nElement )
{
implEndElement( nElement );
}
diff --git a/oox/source/core/fastparser.cxx b/oox/source/core/fastparser.cxx
index ce0a6c0a89f9..4ce9d9f37cf7 100644
--- a/oox/source/core/fastparser.cxx
+++ b/oox/source/core/fastparser.cxx
@@ -63,7 +63,7 @@ InputStreamCloseGuard::~InputStreamCloseGuard()
} // namespace
-FastParser::FastParser() throw( RuntimeException ) :
+FastParser::FastParser() :
mrNamespaceMap( StaticNamespaceMap::get() )
{
// create a fast parser instance
@@ -80,7 +80,7 @@ FastParser::~FastParser()
{
}
-void FastParser::registerNamespace( sal_Int32 nNamespaceId ) throw( IllegalArgumentException, RuntimeException )
+void FastParser::registerNamespace( sal_Int32 nNamespaceId )
{
if( !mxParser.is() )
throw RuntimeException();
@@ -100,14 +100,14 @@ void FastParser::registerNamespace( sal_Int32 nNamespaceId ) throw( IllegalArgum
}
}
-void FastParser::setDocumentHandler( const Reference< XFastDocumentHandler >& rxDocHandler ) throw( RuntimeException )
+void FastParser::setDocumentHandler( const Reference< XFastDocumentHandler >& rxDocHandler )
{
if( !mxParser.is() )
throw RuntimeException();
mxParser->setFastDocumentHandler( rxDocHandler );
}
-void FastParser::parseStream( const InputSource& rInputSource, bool bCloseStream ) throw( SAXException, IOException, RuntimeException, std::exception )
+void FastParser::parseStream( const InputSource& rInputSource, bool bCloseStream )
{
// guard closing the input stream also when exceptions are thrown
InputStreamCloseGuard aGuard( rInputSource.aInputStream, bCloseStream );
@@ -116,7 +116,7 @@ void FastParser::parseStream( const InputSource& rInputSource, bool bCloseStream
mxParser->parseStream( rInputSource );
}
-void FastParser::parseStream( const Reference< XInputStream >& rxInStream, const OUString& rStreamName ) throw( SAXException, IOException, RuntimeException, std::exception )
+void FastParser::parseStream( const Reference< XInputStream >& rxInStream, const OUString& rStreamName )
{
InputSource aInputSource;
aInputSource.sSystemId = rStreamName;
@@ -124,7 +124,7 @@ void FastParser::parseStream( const Reference< XInputStream >& rxInStream, const
parseStream( aInputSource );
}
-void FastParser::parseStream( StorageBase& rStorage, const OUString& rStreamName ) throw( SAXException, IOException, RuntimeException, std::exception )
+void FastParser::parseStream( StorageBase& rStorage, const OUString& rStreamName )
{
parseStream( rStorage.openInputStream( rStreamName ), rStreamName );
}
diff --git a/oox/source/core/fasttokenhandler.cxx b/oox/source/core/fasttokenhandler.cxx
index 38854405d43f..4c2dc0271807 100644
--- a/oox/source/core/fasttokenhandler.cxx
+++ b/oox/source/core/fasttokenhandler.cxx
@@ -42,7 +42,7 @@ Sequence< OUString > SAL_CALL FastTokenHandler_getSupportedServiceNames()
return aServiceNames;
}
-Reference< XInterface > SAL_CALL FastTokenHandler_createInstance( const Reference< XComponentContext >& /*rxContext*/ ) throw (Exception)
+Reference< XInterface > SAL_CALL FastTokenHandler_createInstance( const Reference< XComponentContext >& /*rxContext*/ )
{
return static_cast< ::cppu::OWeakObject* >( new FastTokenHandler );
}
@@ -57,27 +57,27 @@ FastTokenHandler::~FastTokenHandler()
}
// XServiceInfo
-OUString SAL_CALL FastTokenHandler::getImplementationName() throw (RuntimeException, std::exception)
+OUString SAL_CALL FastTokenHandler::getImplementationName()
{
return FastTokenHandler_getImplementationName();
}
-sal_Bool SAL_CALL FastTokenHandler::supportsService( const OUString& rServiceName ) throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL FastTokenHandler::supportsService( const OUString& rServiceName )
{
return cppu::supportsService(this, rServiceName);
}
-Sequence< OUString > SAL_CALL FastTokenHandler::getSupportedServiceNames() throw (RuntimeException, std::exception)
+Sequence< OUString > SAL_CALL FastTokenHandler::getSupportedServiceNames()
{
return FastTokenHandler_getSupportedServiceNames();
}
-Sequence< sal_Int8 > FastTokenHandler::getUTF8Identifier( sal_Int32 nToken ) throw( RuntimeException, std::exception )
+Sequence< sal_Int8 > FastTokenHandler::getUTF8Identifier( sal_Int32 nToken )
{
return mrTokenMap.getUtf8TokenName( nToken );
}
-sal_Int32 FastTokenHandler::getTokenFromUTF8( const Sequence< sal_Int8 >& rIdentifier ) throw( RuntimeException, std::exception )
+sal_Int32 FastTokenHandler::getTokenFromUTF8( const Sequence< sal_Int8 >& rIdentifier )
{
return mrTokenMap.getTokenFromUtf8( rIdentifier );
}
diff --git a/oox/source/core/filterbase.cxx b/oox/source/core/filterbase.cxx
index adaadfc09895..38c25ba312dc 100644
--- a/oox/source/core/filterbase.cxx
+++ b/oox/source/core/filterbase.cxx
@@ -152,15 +152,15 @@ struct FilterBaseImpl
bool mbExportVBA;
/// @throws RuntimeException
- explicit FilterBaseImpl( const Reference< XComponentContext >& rxContext ) throw( RuntimeException );
+ explicit FilterBaseImpl( const Reference< XComponentContext >& rxContext );
/// @throws IllegalArgumentException
- void setDocumentModel( const Reference< XComponent >& rxComponent ) throw( IllegalArgumentException );
+ void setDocumentModel( const Reference< XComponent >& rxComponent );
void initializeFilter();
};
-FilterBaseImpl::FilterBaseImpl( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) :
+FilterBaseImpl::FilterBaseImpl( const Reference< XComponentContext >& rxContext ) :
meDirection( FILTERDIRECTION_UNKNOWN ),
meVersion( ECMA_DIALECT ),
mxComponentContext( rxContext, UNO_SET_THROW ),
@@ -168,7 +168,7 @@ FilterBaseImpl::FilterBaseImpl( const Reference< XComponentContext >& rxContext
{
}
-void FilterBaseImpl::setDocumentModel( const Reference< XComponent >& rxComponent ) throw( IllegalArgumentException )
+void FilterBaseImpl::setDocumentModel( const Reference< XComponent >& rxComponent )
{
try
{
@@ -193,7 +193,7 @@ void FilterBaseImpl::initializeFilter()
}
}
-FilterBase::FilterBase( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) :
+FilterBase::FilterBase( const Reference< XComponentContext >& rxContext ) :
mxImpl( new FilterBaseImpl( rxContext ) )
{
}
@@ -398,12 +398,12 @@ bool FilterBase::importBinaryData( StreamDataSequence& orDataSeq, const OUString
// com.sun.star.lang.XServiceInfo interface
-sal_Bool SAL_CALL FilterBase::supportsService( const OUString& rServiceName ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL FilterBase::supportsService( const OUString& rServiceName )
{
return cppu::supportsService(this, rServiceName);
}
-Sequence< OUString > SAL_CALL FilterBase::getSupportedServiceNames() throw( RuntimeException, std::exception )
+Sequence< OUString > SAL_CALL FilterBase::getSupportedServiceNames()
{
Sequence< OUString > aServiceNames( 2 );
aServiceNames[ 0 ] = "com.sun.star.document.ImportFilter";
@@ -413,7 +413,7 @@ Sequence< OUString > SAL_CALL FilterBase::getSupportedServiceNames() throw( Runt
// com.sun.star.lang.XInitialization interface
-void SAL_CALL FilterBase::initialize( const Sequence< Any >& rArgs ) throw( Exception, RuntimeException, std::exception )
+void SAL_CALL FilterBase::initialize( const Sequence< Any >& rArgs )
{
if( rArgs.getLength() >= 2 ) try
{
@@ -450,7 +450,7 @@ void SAL_CALL FilterBase::initialize( const Sequence< Any >& rArgs ) throw( Exce
// com.sun.star.document.XImporter interface
-void SAL_CALL FilterBase::setTargetDocument( const Reference< XComponent >& rxDocument ) throw( IllegalArgumentException, RuntimeException, std::exception )
+void SAL_CALL FilterBase::setTargetDocument( const Reference< XComponent >& rxDocument )
{
mxImpl->setDocumentModel( rxDocument );
mxImpl->meDirection = FILTERDIRECTION_IMPORT;
@@ -458,7 +458,7 @@ void SAL_CALL FilterBase::setTargetDocument( const Reference< XComponent >& rxDo
// com.sun.star.document.XExporter interface
-void SAL_CALL FilterBase::setSourceDocument( const Reference< XComponent >& rxDocument ) throw( IllegalArgumentException, RuntimeException, std::exception )
+void SAL_CALL FilterBase::setSourceDocument( const Reference< XComponent >& rxDocument )
{
mxImpl->setDocumentModel( rxDocument );
mxImpl->meDirection = FILTERDIRECTION_EXPORT;
@@ -466,7 +466,7 @@ void SAL_CALL FilterBase::setSourceDocument( const Reference< XComponent >& rxDo
// com.sun.star.document.XFilter interface
-sal_Bool SAL_CALL FilterBase::filter( const Sequence< PropertyValue >& rMediaDescSeq ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL FilterBase::filter( const Sequence< PropertyValue >& rMediaDescSeq )
{
if( !mxImpl->mxModel.is() || !mxImpl->mxModelFactory.is() || (mxImpl->meDirection == FILTERDIRECTION_UNKNOWN) )
throw RuntimeException();
@@ -501,7 +501,7 @@ sal_Bool SAL_CALL FilterBase::filter( const Sequence< PropertyValue >& rMediaDes
return bRet;
}
-void SAL_CALL FilterBase::cancel() throw( RuntimeException, std::exception )
+void SAL_CALL FilterBase::cancel()
{
}
diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx
index c333db3fb25a..d397ae3a4b9b 100644
--- a/oox/source/core/filterdetect.cxx
+++ b/oox/source/core/filterdetect.cxx
@@ -64,23 +64,19 @@ FilterDetectDocHandler::~FilterDetectDocHandler()
}
void SAL_CALL FilterDetectDocHandler::startDocument()
- throw (SAXException, RuntimeException, std::exception)
{
}
void SAL_CALL FilterDetectDocHandler::endDocument()
- throw (SAXException, RuntimeException, std::exception)
{
}
void SAL_CALL FilterDetectDocHandler::setDocumentLocator( const Reference<XLocator>& /*xLocator*/ )
- throw (SAXException, RuntimeException, std::exception)
{
}
void SAL_CALL FilterDetectDocHandler::startFastElement(
sal_Int32 nElement, const Reference< XFastAttributeList >& rAttribs )
- throw (SAXException,RuntimeException, std::exception)
{
AttributeList aAttribs( rAttribs );
switch ( nElement )
@@ -110,37 +106,32 @@ void SAL_CALL FilterDetectDocHandler::startFastElement(
void SAL_CALL FilterDetectDocHandler::startUnknownElement(
const OUString& /*Namespace*/, const OUString& /*Name*/, const Reference<XFastAttributeList>& /*Attribs*/ )
- throw (SAXException, RuntimeException, std::exception)
{
}
void SAL_CALL FilterDetectDocHandler::endFastElement( sal_Int32 /*nElement*/ )
- throw (SAXException, RuntimeException, std::exception)
{
maContextStack.pop_back();
}
void SAL_CALL FilterDetectDocHandler::endUnknownElement(
- const OUString& /*Namespace*/, const OUString& /*Name*/ ) throw (SAXException, RuntimeException, std::exception)
+ const OUString& /*Namespace*/, const OUString& /*Name*/ )
{
}
Reference<XFastContextHandler> SAL_CALL FilterDetectDocHandler::createFastChildContext(
sal_Int32 /*Element*/, const Reference<XFastAttributeList>& /*Attribs*/ )
- throw (SAXException, RuntimeException, std::exception)
{
return this;
}
Reference<XFastContextHandler> SAL_CALL FilterDetectDocHandler::createUnknownChildContext(
const OUString& /*Namespace*/, const OUString& /*Name*/, const Reference<XFastAttributeList>& /*Attribs*/)
- throw (SAXException, RuntimeException, std::exception)
{
return this;
}
void SAL_CALL FilterDetectDocHandler::characters( const OUString& /*aChars*/ )
- throw (SAXException, RuntimeException, std::exception)
{
}
@@ -240,12 +231,12 @@ OUString FilterDetect_getImplementationName()
}
/* Helper for registry */
-Reference< XInterface > SAL_CALL FilterDetect_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception )
+Reference< XInterface > SAL_CALL FilterDetect_createInstance( const Reference< XComponentContext >& rxContext )
{
return static_cast< ::cppu::OWeakObject* >( new FilterDetect( rxContext ) );
}
-FilterDetect::FilterDetect( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) :
+FilterDetect::FilterDetect( const Reference< XComponentContext >& rxContext ) :
mxContext( rxContext, UNO_SET_THROW )
{
}
@@ -366,24 +357,24 @@ Reference< XInputStream > FilterDetect::extractUnencryptedPackage( MediaDescript
// com.sun.star.lang.XServiceInfo interface -----------------------------------
-OUString SAL_CALL FilterDetect::getImplementationName() throw( RuntimeException, std::exception )
+OUString SAL_CALL FilterDetect::getImplementationName()
{
return FilterDetect_getImplementationName();
}
-sal_Bool SAL_CALL FilterDetect::supportsService( const OUString& rServiceName ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL FilterDetect::supportsService( const OUString& rServiceName )
{
return cppu::supportsService(this, rServiceName);
}
-Sequence< OUString > SAL_CALL FilterDetect::getSupportedServiceNames() throw( RuntimeException, std::exception )
+Sequence< OUString > SAL_CALL FilterDetect::getSupportedServiceNames()
{
return FilterDetect_getSupportedServiceNames();
}
// com.sun.star.document.XExtendedFilterDetection interface -------------------
-OUString SAL_CALL FilterDetect::detect( Sequence< PropertyValue >& rMediaDescSeq ) throw( RuntimeException, std::exception )
+OUString SAL_CALL FilterDetect::detect( Sequence< PropertyValue >& rMediaDescSeq )
{
OUString aFilterName;
MediaDescriptor aMediaDescriptor( rMediaDescSeq );
diff --git a/oox/source/core/fragmenthandler.cxx b/oox/source/core/fragmenthandler.cxx
index 97460260b328..564306e647fb 100644
--- a/oox/source/core/fragmenthandler.cxx
+++ b/oox/source/core/fragmenthandler.cxx
@@ -51,48 +51,48 @@ FragmentHandler::~FragmentHandler()
// com.sun.star.xml.sax.XFastDocumentHandler interface ------------------------
-void FragmentHandler::startDocument() throw( SAXException, RuntimeException, std::exception )
+void FragmentHandler::startDocument()
{
}
-void FragmentHandler::endDocument() throw( SAXException, RuntimeException, std::exception )
+void FragmentHandler::endDocument()
{
}
-void FragmentHandler::setDocumentLocator( const Reference< XLocator >& rxLocator ) throw( SAXException, RuntimeException, std::exception )
+void FragmentHandler::setDocumentLocator( const Reference< XLocator >& rxLocator )
{
implSetLocator( rxLocator );
}
// com.sun.star.xml.sax.XFastContextHandler interface -------------------------
-void FragmentHandler::startFastElement( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException, std::exception )
+void FragmentHandler::startFastElement( sal_Int32, const Reference< XFastAttributeList >& )
{
}
-void FragmentHandler::startUnknownElement( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException, std::exception )
+void FragmentHandler::startUnknownElement( const OUString&, const OUString&, const Reference< XFastAttributeList >& )
{
}
-void FragmentHandler::endFastElement( sal_Int32 ) throw( SAXException, RuntimeException, std::exception )
+void FragmentHandler::endFastElement( sal_Int32 )
{
}
-void FragmentHandler::endUnknownElement( const OUString&, const OUString& ) throw( SAXException, RuntimeException, std::exception )
+void FragmentHandler::endUnknownElement( const OUString&, const OUString& )
{
}
-Reference< XFastContextHandler > FragmentHandler::createFastChildContext( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException, std::exception )
+Reference< XFastContextHandler > FragmentHandler::createFastChildContext( sal_Int32, const Reference< XFastAttributeList >& )
{
return nullptr;
}
-Reference< XFastContextHandler > FragmentHandler::createUnknownChildContext( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException, std::exception )
+Reference< XFastContextHandler > FragmentHandler::createUnknownChildContext( const OUString&, const OUString&, const Reference< XFastAttributeList >& )
{
return nullptr;
}
-void FragmentHandler::characters( const OUString& ) throw( SAXException, RuntimeException, std::exception )
+void FragmentHandler::characters( const OUString& )
{
}
diff --git a/oox/source/core/fragmenthandler2.cxx b/oox/source/core/fragmenthandler2.cxx
index ba3f880cde60..fe9b827a6aae 100644
--- a/oox/source/core/fragmenthandler2.cxx
+++ b/oox/source/core/fragmenthandler2.cxx
@@ -43,12 +43,12 @@ FragmentHandler2::~FragmentHandler2()
// com.sun.star.xml.sax.XFastDocumentHandler interface --------------------
-void SAL_CALL FragmentHandler2::startDocument() throw( SAXException, RuntimeException, std::exception )
+void SAL_CALL FragmentHandler2::startDocument()
{
initializeImport();
}
-void SAL_CALL FragmentHandler2::endDocument() throw( SAXException, RuntimeException, std::exception )
+void SAL_CALL FragmentHandler2::endDocument()
{
finalizeImport();
}
@@ -109,7 +109,7 @@ bool FragmentHandler2::prepareMceContext( sal_Int32 nElement, const AttributeLis
// com.sun.star.xml.sax.XFastContextHandler interface -------------------------
Reference< XFastContextHandler > SAL_CALL FragmentHandler2::createFastChildContext(
- sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs ) throw( SAXException, RuntimeException, std::exception )
+ sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs )
{
if( getNamespace( nElement ) == NMSP_mce ) // TODO for checking 'Ignorable'
{
@@ -121,17 +121,17 @@ Reference< XFastContextHandler > SAL_CALL FragmentHandler2::createFastChildConte
}
void SAL_CALL FragmentHandler2::startFastElement(
- sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs ) throw( SAXException, RuntimeException, std::exception )
+ sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs )
{
implStartElement( nElement, rxAttribs );
}
-void SAL_CALL FragmentHandler2::characters( const OUString& rChars ) throw( SAXException, RuntimeException, std::exception )
+void SAL_CALL FragmentHandler2::characters( const OUString& rChars )
{
implCharacters( rChars );
}
-void SAL_CALL FragmentHandler2::endFastElement( sal_Int32 nElement ) throw( SAXException, RuntimeException, std::exception )
+void SAL_CALL FragmentHandler2::endFastElement( sal_Int32 nElement )
{
/* If MCE */
switch( nElement )
diff --git a/oox/source/core/recordparser.cxx b/oox/source/core/recordparser.cxx
index 988d8cd57f8b..3165626ab3b4 100644
--- a/oox/source/core/recordparser.cxx
+++ b/oox/source/core/recordparser.cxx
@@ -43,14 +43,14 @@ public:
void dispose();
/// @throws css::uno::RuntimeException
- void checkDispose() throw( RuntimeException );
+ void checkDispose();
// com.sun.star.sax.XLocator interface
- virtual sal_Int32 SAL_CALL getColumnNumber() throw( RuntimeException, std::exception ) override;
- virtual sal_Int32 SAL_CALL getLineNumber() throw( RuntimeException, std::exception ) override;
- virtual OUString SAL_CALL getPublicId() throw( RuntimeException, std::exception ) override;
- virtual OUString SAL_CALL getSystemId() throw( RuntimeException, std::exception ) override;
+ virtual sal_Int32 SAL_CALL getColumnNumber() override;
+ virtual sal_Int32 SAL_CALL getLineNumber() override;
+ virtual OUString SAL_CALL getPublicId() override;
+ virtual OUString SAL_CALL getSystemId() override;
private:
RecordParser* mpParser;
@@ -61,29 +61,29 @@ void Locator::dispose()
mpParser = nullptr;
}
-void Locator::checkDispose() throw( RuntimeException )
+void Locator::checkDispose()
{
if( !mpParser )
throw DisposedException();
}
-sal_Int32 SAL_CALL Locator::getColumnNumber() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL Locator::getColumnNumber()
{
return -1;
}
-sal_Int32 SAL_CALL Locator::getLineNumber() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL Locator::getLineNumber()
{
return -1;
}
-OUString SAL_CALL Locator::getPublicId() throw( RuntimeException, std::exception )
+OUString SAL_CALL Locator::getPublicId()
{
checkDispose();
return mpParser->getInputSource().maPublicId;
}
-OUString SAL_CALL Locator::getSystemId() throw( RuntimeException, std::exception )
+OUString SAL_CALL Locator::getSystemId()
{
checkDispose();
return mpParser->getInputSource().maSystemId;
@@ -230,7 +230,7 @@ void RecordParser::setFragmentHandler( const ::rtl::Reference< FragmentHandler >
}
}
-void RecordParser::parseStream( const RecordInputSource& rInputSource ) throw( SAXException, IOException, RuntimeException )
+void RecordParser::parseStream( const RecordInputSource& rInputSource )
{
maSource = rInputSource;
diff --git a/oox/source/core/relationshandler.cxx b/oox/source/core/relationshandler.cxx
index 65c9d46ed999..85d6ae96e304 100644
--- a/oox/source/core/relationshandler.cxx
+++ b/oox/source/core/relationshandler.cxx
@@ -58,7 +58,7 @@ RelationsFragment::RelationsFragment( XmlFilterBase& rFilter, RelationsRef xRela
}
Reference< XFastContextHandler > RelationsFragment::createFastChildContext(
- sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs ) throw (SAXException, RuntimeException, std::exception)
+ sal_Int32 nElement, const Reference< XFastAttributeList >& rxAttribs )
{
Reference< XFastContextHandler > xRet;
AttributeList aAttribs( rxAttribs );
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index 7d1651c56780..5c5d5d80d083 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -182,10 +182,10 @@ struct XmlFilterBaseImpl
const NamespaceMap& mrNamespaceMap;
/// @throws RuntimeException
- explicit XmlFilterBaseImpl( const Reference< XComponentContext >& rxContext ) throw( RuntimeException );
+ explicit XmlFilterBaseImpl( const Reference< XComponentContext >& rxContext );
};
-XmlFilterBaseImpl::XmlFilterBaseImpl( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) :
+XmlFilterBaseImpl::XmlFilterBaseImpl( const Reference< XComponentContext >& rxContext ) :
mxContext(rxContext),
maBinSuffix( ".bin" ),
mrNamespaceMap(StaticNamespaceMap::get())
@@ -194,7 +194,7 @@ XmlFilterBaseImpl::XmlFilterBaseImpl( const Reference< XComponentContext >& rxCo
registerNamespaces(maFastParser);
}
-XmlFilterBase::XmlFilterBase( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) :
+XmlFilterBase::XmlFilterBase( const Reference< XComponentContext >& rxContext ) :
FilterBase( rxContext ),
mxImpl( new XmlFilterBaseImpl( rxContext ) ),
mnRelId( 1 ),
diff --git a/oox/source/crypto/DocumentDecryption.cxx b/oox/source/crypto/DocumentDecryption.cxx
index 3fcbc571d3f1..ed1111e8a549 100644
--- a/oox/source/crypto/DocumentDecryption.cxx
+++ b/oox/source/crypto/DocumentDecryption.cxx
@@ -53,12 +53,12 @@ vector<sal_uInt8> convertToVector(Sequence<sal_Int8>& input)
class AgileTokenHandler : public cppu::WeakImplHelper< XFastTokenHandler >
{
public:
- virtual sal_Int32 SAL_CALL getTokenFromUTF8( const Sequence< sal_Int8 >& /*nIdentifier*/ ) throw (RuntimeException, std::exception) override
+ virtual sal_Int32 SAL_CALL getTokenFromUTF8( const Sequence< sal_Int8 >& /*nIdentifier*/ ) override
{
return FastToken::DONTKNOW;
}
- virtual Sequence<sal_Int8> SAL_CALL getUTF8Identifier(sal_Int32 /*nToken*/) throw (RuntimeException, std::exception) override
+ virtual Sequence<sal_Int8> SAL_CALL getUTF8Identifier(sal_Int32 /*nToken*/) override
{
return Sequence<sal_Int8>();
}
@@ -73,21 +73,16 @@ public:
mInfo(rInfo)
{}
- void SAL_CALL startDocument()
- throw (RuntimeException, SAXException, std::exception) override
+ void SAL_CALL startDocument() override
{}
- void SAL_CALL endDocument()
- throw (RuntimeException, SAXException, std::exception) override
+ void SAL_CALL endDocument() override
{}
- void SAL_CALL setDocumentLocator( const Reference< XLocator >& /*xLocator*/ )
- throw (RuntimeException, SAXException, std::exception) override
+ void SAL_CALL setDocumentLocator( const Reference< XLocator >& /*xLocator*/ ) override
{}
- void SAL_CALL startFastElement( sal_Int32 /*Element*/, const Reference< XFastAttributeList >& /*Attribs*/ )
- throw (RuntimeException, SAXException, std::exception) override
+ void SAL_CALL startFastElement( sal_Int32 /*Element*/, const Reference< XFastAttributeList >& /*Attribs*/ ) override
{}
- void SAL_CALL startUnknownElement( const OUString& /*aNamespace*/, const OUString& aName, const Reference< XFastAttributeList >& aAttributeList )
- throw (RuntimeException, SAXException, std::exception) override
+ void SAL_CALL startUnknownElement( const OUString& /*aNamespace*/, const OUString& aName, const Reference< XFastAttributeList >& aAttributeList ) override
{
if(aName == "keyData")
{
@@ -168,27 +163,22 @@ public:
}
}
- void SAL_CALL endFastElement( sal_Int32 /*aElement*/ )
- throw (RuntimeException, SAXException, std::exception) override
+ void SAL_CALL endFastElement( sal_Int32 /*aElement*/ ) override
{}
- void SAL_CALL endUnknownElement( const OUString& /*aNamespace*/, const OUString& /*aName*/ )
- throw (RuntimeException, SAXException, std::exception) override
+ void SAL_CALL endUnknownElement( const OUString& /*aNamespace*/, const OUString& /*aName*/ ) override
{}
- Reference< XFastContextHandler > SAL_CALL createFastChildContext( sal_Int32 /*aElement*/, const Reference< XFastAttributeList >& /*aAttribs*/ )
- throw (RuntimeException, SAXException, std::exception) override
+ Reference< XFastContextHandler > SAL_CALL createFastChildContext( sal_Int32 /*aElement*/, const Reference< XFastAttributeList >& /*aAttribs*/ ) override
{
return nullptr;
}
- Reference< XFastContextHandler > SAL_CALL createUnknownChildContext( const OUString& /*aNamespace*/, const OUString& /*aName*/, const Reference< XFastAttributeList >& /*aAttribs*/ )
- throw (RuntimeException, SAXException, std::exception) override
+ Reference< XFastContextHandler > SAL_CALL createUnknownChildContext( const OUString& /*aNamespace*/, const OUString& /*aName*/, const Reference< XFastAttributeList >& /*aAttribs*/ ) override
{
return this;
}
- void SAL_CALL characters( const OUString& /*aChars*/ )
- throw (RuntimeException, SAXException, std::exception) override
+ void SAL_CALL characters( const OUString& /*aChars*/ ) override
{}
};
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx
index d7a1e31c1ea8..2c28d8dcbc6f 100644
--- a/oox/source/docprop/docprophandler.cxx
+++ b/oox/source/docprop/docprophandler.cxx
@@ -266,25 +266,21 @@ void OOXMLDocPropHandler::UpdateDocStatistic( const OUString& aChars )
// com.sun.star.xml.sax.XFastDocumentHandler
void SAL_CALL OOXMLDocPropHandler::startDocument()
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
}
void SAL_CALL OOXMLDocPropHandler::endDocument()
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
InitNew();
}
void SAL_CALL OOXMLDocPropHandler::setDocumentLocator( const uno::Reference< xml::sax::XLocator >& )
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
}
// com.sun.star.xml.sax.XFastContextHandler
void SAL_CALL OOXMLDocPropHandler::startFastElement( ::sal_Int32 nElement, const uno::Reference< xml::sax::XFastAttributeList >& xAttribs )
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
if ( !m_nInBlock && !m_nState )
{
@@ -325,7 +321,6 @@ void SAL_CALL OOXMLDocPropHandler::startFastElement( ::sal_Int32 nElement, const
}
void SAL_CALL OOXMLDocPropHandler::startUnknownElement( const OUString& aNamespace, const OUString& aName, const uno::Reference< xml::sax::XFastAttributeList >& )
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
SAL_WARN("oox", "Unknown element " << aNamespace << ":" << aName);
@@ -336,7 +331,6 @@ void SAL_CALL OOXMLDocPropHandler::startUnknownElement( const OUString& aNamespa
}
void SAL_CALL OOXMLDocPropHandler::endFastElement( ::sal_Int32 )
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
if ( m_nInBlock )
{
@@ -377,27 +371,23 @@ void SAL_CALL OOXMLDocPropHandler::endFastElement( ::sal_Int32 )
}
void SAL_CALL OOXMLDocPropHandler::endUnknownElement( const OUString&, const OUString& )
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
if ( m_nInBlock )
m_nInBlock--;
}
uno::Reference< xml::sax::XFastContextHandler > SAL_CALL OOXMLDocPropHandler::createFastChildContext( ::sal_Int32, const uno::Reference< xml::sax::XFastAttributeList >& )
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
// Should the arguments be parsed?
return uno::Reference< xml::sax::XFastContextHandler >( static_cast< xml::sax::XFastContextHandler* >( this ) );
}
uno::Reference< xml::sax::XFastContextHandler > SAL_CALL OOXMLDocPropHandler::createUnknownChildContext( const OUString&, const OUString&, const uno::Reference< xml::sax::XFastAttributeList >& )
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
return uno::Reference< xml::sax::XFastContextHandler >( static_cast< xml::sax::XFastContextHandler* >( this ) );
}
void SAL_CALL OOXMLDocPropHandler::characters( const OUString& aChars )
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
try
{
diff --git a/oox/source/docprop/docprophandler.hxx b/oox/source/docprop/docprophandler.hxx
index 4bd4577a1503..0cf7dcf0a501 100644
--- a/oox/source/docprop/docprophandler.hxx
+++ b/oox/source/docprop/docprophandler.hxx
@@ -66,19 +66,19 @@ public:
// com.sun.star.xml.sax.XFastDocumentHandler
- virtual void SAL_CALL startDocument() throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL endDocument() throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDocumentLocator( const css::uno::Reference< css::xml::sax::XLocator >& rxLocator ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL startDocument() override;
+ virtual void SAL_CALL endDocument() override;
+ virtual void SAL_CALL setDocumentLocator( const css::uno::Reference< css::xml::sax::XLocator >& rxLocator ) override;
// com.sun.star.xml.sax.XFastContextHandler
- virtual void SAL_CALL startFastElement( ::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL startUnknownElement( const OUString& Namespace, const OUString& Name, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL endFastElement( ::sal_Int32 Element ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL endUnknownElement( const OUString& Namespace, const OUString& Name ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext( const OUString& Namespace, const OUString& Name, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL characters( const OUString& aChars ) throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL startFastElement( ::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) override;
+ virtual void SAL_CALL startUnknownElement( const OUString& Namespace, const OUString& Name, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) override;
+ virtual void SAL_CALL endFastElement( ::sal_Int32 Element ) override;
+ virtual void SAL_CALL endUnknownElement( const OUString& Namespace, const OUString& Name ) override;
+ virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) override;
+ virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext( const OUString& Namespace, const OUString& Name, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) override;
+ virtual void SAL_CALL characters( const OUString& aChars ) override;
};
diff --git a/oox/source/docprop/ooxmldocpropimport.cxx b/oox/source/docprop/ooxmldocpropimport.cxx
index 2d78d30517e3..638c7a0aa978 100644
--- a/oox/source/docprop/ooxmldocpropimport.cxx
+++ b/oox/source/docprop/ooxmldocpropimport.cxx
@@ -55,7 +55,7 @@ Sequence< OUString > SAL_CALL DocumentPropertiesImport_getSupportedServiceNames(
return aServices;
}
-Reference< XInterface > SAL_CALL DocumentPropertiesImport_createInstance( const Reference< XComponentContext >& rxContext ) throw(Exception)
+Reference< XInterface > SAL_CALL DocumentPropertiesImport_createInstance( const Reference< XComponentContext >& rxContext )
{
return static_cast< ::cppu::OWeakObject* >( new DocumentPropertiesImport( rxContext ) );
}
@@ -64,7 +64,7 @@ namespace {
/// @throws RuntimeException
/// @throws css::io::IOException
-Sequence< InputSource > lclGetRelatedStreams( const Reference< XStorage >& rxStorage, const OUString& rStreamType ) throw (RuntimeException, css::io::IOException)
+Sequence< InputSource > lclGetRelatedStreams( const Reference< XStorage >& rxStorage, const OUString& rStreamType )
{
Reference< XRelationshipAccess > xRelation( rxStorage, UNO_QUERY_THROW );
Reference< XHierarchicalStorageAccess > xHierarchy( rxStorage, UNO_QUERY_THROW );
@@ -111,17 +111,17 @@ DocumentPropertiesImport::DocumentPropertiesImport( const Reference< XComponentC
}
// XServiceInfo
-OUString SAL_CALL DocumentPropertiesImport::getImplementationName() throw (RuntimeException, std::exception)
+OUString SAL_CALL DocumentPropertiesImport::getImplementationName()
{
return DocumentPropertiesImport_getImplementationName();
}
-sal_Bool SAL_CALL DocumentPropertiesImport::supportsService( const OUString& rServiceName ) throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL DocumentPropertiesImport::supportsService( const OUString& rServiceName )
{
return cppu::supportsService(this, rServiceName);
}
-Sequence< OUString > SAL_CALL DocumentPropertiesImport::getSupportedServiceNames() throw (RuntimeException, std::exception)
+Sequence< OUString > SAL_CALL DocumentPropertiesImport::getSupportedServiceNames()
{
return DocumentPropertiesImport_getSupportedServiceNames();
}
@@ -129,7 +129,6 @@ Sequence< OUString > SAL_CALL DocumentPropertiesImport::getSupportedServiceNames
// XOOXMLDocumentPropertiesImporter
void SAL_CALL DocumentPropertiesImport::importProperties(
const Reference< XStorage >& rxSource, const Reference< XDocumentProperties >& rxDocumentProperties )
- throw (RuntimeException, IllegalArgumentException, SAXException, Exception, std::exception)
{
if( !mxContext.is() )
throw RuntimeException();
diff --git a/oox/source/docprop/ooxmldocpropimport.hxx b/oox/source/docprop/ooxmldocpropimport.hxx
index e60df130c692..61a58eb9c7d9 100644
--- a/oox/source/docprop/ooxmldocpropimport.hxx
+++ b/oox/source/docprop/ooxmldocpropimport.hxx
@@ -39,15 +39,14 @@ public:
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) 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& rServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
// XOOXMLDocumentPropertiesImporter
virtual void SAL_CALL importProperties(
const css::uno::Reference< css::embed::XStorage >& rxSource,
- const css::uno::Reference< css::document::XDocumentProperties >& rxDocumentProperties )
- throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::xml::sax::SAXException, css::uno::Exception, std::exception) override;
+ const css::uno::Reference< css::document::XDocumentProperties >& rxDocumentProperties ) override;
private:
css::uno::Reference< css::uno::XComponentContext > mxContext;
diff --git a/oox/source/drawingml/diagram/diagramfragmenthandler.cxx b/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
index 0ab6a6d01a9a..8094929fa571 100644
--- a/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
+++ b/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
@@ -47,7 +47,6 @@ DiagramDataFragmentHandler::~DiagramDataFragmentHandler( ) throw ()
}
void SAL_CALL DiagramDataFragmentHandler::endDocument()
- throw (SAXException, RuntimeException, std::exception)
{
}
@@ -82,7 +81,6 @@ DiagramLayoutFragmentHandler::~DiagramLayoutFragmentHandler( ) throw ()
}
void SAL_CALL DiagramLayoutFragmentHandler::endDocument()
- throw (SAXException, RuntimeException, std::exception)
{
}
diff --git a/oox/source/drawingml/diagram/diagramfragmenthandler.hxx b/oox/source/drawingml/diagram/diagramfragmenthandler.hxx
index 5e851f6424c6..5b34459b005a 100644
--- a/oox/source/drawingml/diagram/diagramfragmenthandler.hxx
+++ b/oox/source/drawingml/diagram/diagramfragmenthandler.hxx
@@ -31,7 +31,7 @@ public:
DiagramDataFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath, const DiagramDataPtr& rDataPtr ) throw();
virtual ~DiagramDataFragmentHandler() throw() override;
- virtual void SAL_CALL endDocument() throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL endDocument() override;
virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override;
private:
@@ -45,7 +45,7 @@ public:
DiagramLayoutFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath, const DiagramLayoutPtr& rDataPtr ) throw();
virtual ~DiagramLayoutFragmentHandler() throw() override;
- virtual void SAL_CALL endDocument() throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL endDocument() override;
virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) override;
private:
diff --git a/oox/source/drawingml/diagram/layoutnodecontext.cxx b/oox/source/drawingml/diagram/layoutnodecontext.cxx
index 7aa33617e371..65913bd426ba 100644
--- a/oox/source/drawingml/diagram/layoutnodecontext.cxx
+++ b/oox/source/drawingml/diagram/layoutnodecontext.cxx
@@ -158,8 +158,7 @@ public:
{
}
- virtual ContextHandlerRef onCreateContext( ::sal_Int32 aElement, const AttributeList& rAttribs )
- throw (SAXException, RuntimeException) override
+ virtual ContextHandlerRef onCreateContext( ::sal_Int32 aElement, const AttributeList& rAttribs ) override
{
sal_Int32 nIdx = LayoutNodeContext::tagToVarIdx( getBaseToken( aElement ) );
if( nIdx != -1 )
diff --git a/oox/source/export/ColorPropertySet.cxx b/oox/source/export/ColorPropertySet.cxx
index bab61b0d9199..4c1d9d842d2e 100644
--- a/oox/source/export/ColorPropertySet.cxx
+++ b/oox/source/export/ColorPropertySet.cxx
@@ -42,9 +42,9 @@ public:
protected:
// ____ XPropertySetInfo ____
- virtual Sequence< Property > SAL_CALL getProperties() throw (RuntimeException, std::exception) override;
- virtual Property SAL_CALL getPropertyByName( const OUString& aName ) throw (UnknownPropertyException, RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) throw (RuntimeException, std::exception) override;
+ virtual Sequence< Property > SAL_CALL getProperties() override;
+ virtual Property SAL_CALL getPropertyByName( const OUString& aName ) override;
+ virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override;
private:
OUString m_aColorPropName;
@@ -59,14 +59,12 @@ lcl_ColorPropertySetInfo::lcl_ColorPropertySetInfo( bool bFillColor ) :
{}
Sequence< Property > SAL_CALL lcl_ColorPropertySetInfo::getProperties()
- throw (RuntimeException, std::exception)
{
return Sequence< Property >( & m_aColorProp, 1 );
}
Property SAL_CALL lcl_ColorPropertySetInfo::getPropertyByName( const OUString& aName )
- throw (UnknownPropertyException, RuntimeException, std::exception)
{
if( aName.equals( m_aColorPropName ))
return m_aColorProp;
@@ -74,7 +72,6 @@ Property SAL_CALL lcl_ColorPropertySetInfo::getPropertyByName( const OUString& a
}
sal_Bool SAL_CALL lcl_ColorPropertySetInfo::hasPropertyByName( const OUString& Name )
- throw (RuntimeException, std::exception)
{
return Name.equals( m_aColorPropName );
}
@@ -100,7 +97,6 @@ ColorPropertySet::~ColorPropertySet()
// ____ XPropertySet ____
Reference< XPropertySetInfo > SAL_CALL ColorPropertySet::getPropertySetInfo()
- throw (uno::RuntimeException, std::exception)
{
if( ! m_xInfo.is())
m_xInfo.set( new lcl_ColorPropertySetInfo( m_bIsFillColor ));
@@ -109,11 +105,6 @@ Reference< XPropertySetInfo > SAL_CALL ColorPropertySet::getPropertySetInfo()
}
void SAL_CALL ColorPropertySet::setPropertyValue( const OUString& rPropertyName, const uno::Any& aValue )
- throw (UnknownPropertyException,
- PropertyVetoException,
- lang::IllegalArgumentException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
if (rPropertyName != m_aColorPropName)
{
@@ -126,9 +117,6 @@ void SAL_CALL ColorPropertySet::setPropertyValue( const OUString& rPropertyName,
}
uno::Any SAL_CALL ColorPropertySet::getPropertyValue( const OUString& aPropertyName )
- throw (UnknownPropertyException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
if( aPropertyName == "FillStyle" && m_bIsFillColor )
{
@@ -142,36 +130,24 @@ uno::Any SAL_CALL ColorPropertySet::getPropertyValue( const OUString& aPropertyN
}
void SAL_CALL ColorPropertySet::addPropertyChangeListener( const OUString& /* aPropertyName */, const Reference< XPropertyChangeListener >& /* xListener */ )
- throw (UnknownPropertyException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
OSL_FAIL( "Not Implemented" );
return;
}
void SAL_CALL ColorPropertySet::removePropertyChangeListener( const OUString& /* aPropertyName */, const Reference< XPropertyChangeListener >& /* aListener */ )
- throw (UnknownPropertyException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
OSL_FAIL( "Not Implemented" );
return;
}
void SAL_CALL ColorPropertySet::addVetoableChangeListener( const OUString& /* PropertyName */, const Reference< XVetoableChangeListener >& /* aListener */ )
- throw (UnknownPropertyException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
OSL_FAIL( "Not Implemented" );
return;
}
void SAL_CALL ColorPropertySet::removeVetoableChangeListener( const OUString& /* PropertyName */, const Reference< XVetoableChangeListener >& /* aListener */ )
- throw (UnknownPropertyException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
OSL_FAIL( "Not Implemented" );
return;
@@ -180,32 +156,23 @@ void SAL_CALL ColorPropertySet::removeVetoableChangeListener( const OUString& /*
// ____ XPropertyState ____
PropertyState SAL_CALL ColorPropertySet::getPropertyState( const OUString& /* PropertyName */ )
- throw (UnknownPropertyException,
- uno::RuntimeException, std::exception)
{
return PropertyState_DIRECT_VALUE;
}
Sequence< PropertyState > SAL_CALL ColorPropertySet::getPropertyStates( const Sequence< OUString >& /* aPropertyName */ )
- throw (UnknownPropertyException,
- uno::RuntimeException, std::exception)
{
PropertyState aState = PropertyState_DIRECT_VALUE;
return Sequence< PropertyState >( & aState, 1 );
}
void SAL_CALL ColorPropertySet::setPropertyToDefault( const OUString& PropertyName )
- throw (UnknownPropertyException,
- uno::RuntimeException, std::exception)
{
if( PropertyName.equals( m_aColorPropName ))
m_nColor = m_nDefaultColor;
}
uno::Any SAL_CALL ColorPropertySet::getPropertyDefault( const OUString& aPropertyName )
- throw (UnknownPropertyException,
- lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
if( aPropertyName.equals( m_aColorPropName ))
return uno::makeAny( m_nDefaultColor );
diff --git a/oox/source/export/ColorPropertySet.hxx b/oox/source/export/ColorPropertySet.hxx
index 88fc20d3c286..39bc41f22b6f 100644
--- a/oox/source/export/ColorPropertySet.hxx
+++ b/oox/source/export/ColorPropertySet.hxx
@@ -43,64 +43,34 @@ public:
protected:
// ____ XPropertySet ____
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
virtual void SAL_CALL setPropertyValue(
const OUString& aPropertyName,
- const css::uno::Any& aValue )
- throw (css::beans::UnknownPropertyException,
- css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Any& aValue ) override;
virtual css::uno::Any SAL_CALL getPropertyValue(
- const OUString& PropertyName )
- throw (css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
+ const OUString& PropertyName ) override;
virtual void SAL_CALL addPropertyChangeListener(
const OUString& aPropertyName,
- const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
- throw (css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
virtual void SAL_CALL removePropertyChangeListener(
const OUString& aPropertyName,
- const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
- throw (css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
virtual void SAL_CALL addVetoableChangeListener(
const OUString& PropertyName,
- const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
- throw (css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
virtual void SAL_CALL removeVetoableChangeListener(
const OUString& PropertyName,
- const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
- throw (css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
// ____ XPropertyState ____
virtual css::beans::PropertyState SAL_CALL getPropertyState(
- const OUString& PropertyName )
- throw (css::beans::UnknownPropertyException,
- css::uno::RuntimeException, std::exception) override;
+ const OUString& PropertyName ) override;
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(
- const css::uno::Sequence< OUString >& aPropertyName )
- throw (css::beans::UnknownPropertyException,
- css::uno::RuntimeException, std::exception) override;
+ const css::uno::Sequence< OUString >& aPropertyName ) override;
virtual void SAL_CALL setPropertyToDefault(
- const OUString& PropertyName )
- throw (css::beans::UnknownPropertyException,
- css::uno::RuntimeException, std::exception) override;
+ const OUString& PropertyName ) override;
virtual css::uno::Any SAL_CALL getPropertyDefault(
- const OUString& aPropertyName )
- throw (css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception) override;
+ const OUString& aPropertyName ) override;
private:
css::uno::Reference< css::beans::XPropertySetInfo > m_xInfo;
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index 4ff14e5f98f3..b6cde43ad93c 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -104,18 +104,18 @@ public:
explicit GenericPropertySet( const PropertyMap& rPropMap );
// XPropertySet
- virtual Reference< XPropertySetInfo > SAL_CALL getPropertySetInfo() throw (RuntimeException, std::exception) override;
- virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const Any& aValue ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception) override;
- virtual Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) override;
- virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& xListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) override;
- virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) override;
- virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) override;
- virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) override;
+ virtual Reference< XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
+ virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const Any& aValue ) override;
+ virtual Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
+ virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& xListener ) override;
+ virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const Reference< XPropertyChangeListener >& aListener ) override;
+ virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) override;
+ virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const Reference< XVetoableChangeListener >& aListener ) override;
// XPropertySetInfo
- virtual Sequence< Property > SAL_CALL getProperties() throw (RuntimeException, std::exception) override;
- virtual Property SAL_CALL getPropertyByName( const OUString& aName ) throw (UnknownPropertyException, RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) throw (RuntimeException, std::exception) override;
+ virtual Sequence< Property > SAL_CALL getProperties() override;
+ virtual Property SAL_CALL getPropertyByName( const OUString& aName ) override;
+ virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override;
private:
osl::Mutex mMutex;
@@ -127,18 +127,18 @@ GenericPropertySet::GenericPropertySet( const PropertyMap& rPropMap )
rPropMap.fillPropertyNameMap(maPropMap);
}
-Reference< XPropertySetInfo > SAL_CALL GenericPropertySet::getPropertySetInfo() throw (RuntimeException, std::exception)
+Reference< XPropertySetInfo > SAL_CALL GenericPropertySet::getPropertySetInfo()
{
return this;
}
-void SAL_CALL GenericPropertySet::setPropertyValue( const OUString& rPropertyName, const Any& rValue ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception)
+void SAL_CALL GenericPropertySet::setPropertyValue( const OUString& rPropertyName, const Any& rValue )
{
::osl::MutexGuard aGuard( mMutex );
maPropMap[ rPropertyName ] = rValue;
}
-Any SAL_CALL GenericPropertySet::getPropertyValue( const OUString& rPropertyName ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception)
+Any SAL_CALL GenericPropertySet::getPropertyValue( const OUString& rPropertyName )
{
PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName );
if( aIt == maPropMap.end() )
@@ -147,13 +147,13 @@ Any SAL_CALL GenericPropertySet::getPropertyValue( const OUString& rPropertyName
}
// listeners are not supported by this implementation
-void SAL_CALL GenericPropertySet::addPropertyChangeListener( const OUString& , const Reference< XPropertyChangeListener >& ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) {}
-void SAL_CALL GenericPropertySet::removePropertyChangeListener( const OUString& , const Reference< XPropertyChangeListener >& ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) {}
-void SAL_CALL GenericPropertySet::addVetoableChangeListener( const OUString& , const Reference< XVetoableChangeListener >& ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) {}
-void SAL_CALL GenericPropertySet::removeVetoableChangeListener( const OUString& , const Reference< XVetoableChangeListener >& ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) {}
+void SAL_CALL GenericPropertySet::addPropertyChangeListener( const OUString& , const Reference< XPropertyChangeListener >& ) {}
+void SAL_CALL GenericPropertySet::removePropertyChangeListener( const OUString& , const Reference< XPropertyChangeListener >& ) {}
+void SAL_CALL GenericPropertySet::addVetoableChangeListener( const OUString& , const Reference< XVetoableChangeListener >& ) {}
+void SAL_CALL GenericPropertySet::removeVetoableChangeListener( const OUString& , const Reference< XVetoableChangeListener >& ) {}
// XPropertySetInfo
-Sequence< Property > SAL_CALL GenericPropertySet::getProperties() throw (RuntimeException, std::exception)
+Sequence< Property > SAL_CALL GenericPropertySet::getProperties()
{
Sequence< Property > aSeq( static_cast< sal_Int32 >( maPropMap.size() ) );
Property* pProperty = aSeq.getArray();
@@ -167,7 +167,7 @@ Sequence< Property > SAL_CALL GenericPropertySet::getProperties() throw (Runtime
return aSeq;
}
-Property SAL_CALL GenericPropertySet::getPropertyByName( const OUString& rPropertyName ) throw (UnknownPropertyException, RuntimeException, std::exception)
+Property SAL_CALL GenericPropertySet::getPropertyByName( const OUString& rPropertyName )
{
PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName );
if( aIt == maPropMap.end() )
@@ -180,7 +180,7 @@ Property SAL_CALL GenericPropertySet::getPropertyByName( const OUString& rProper
return aProperty;
}
-sal_Bool SAL_CALL GenericPropertySet::hasPropertyByName( const OUString& rPropertyName ) throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL GenericPropertySet::hasPropertyByName( const OUString& rPropertyName )
{
return maPropMap.find( rPropertyName ) != maPropMap.end();
}
diff --git a/oox/source/helper/textinputstream.cxx b/oox/source/helper/textinputstream.cxx
index 70b657f59fdd..6159edee7a8b 100644
--- a/oox/source/helper/textinputstream.cxx
+++ b/oox/source/helper/textinputstream.cxx
@@ -43,20 +43,15 @@ class UnoBinaryInputStream : public UnoBinaryInputStream_BASE
public:
explicit UnoBinaryInputStream( BinaryInputStream& rInStrm );
- virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL readSomeBytes( Sequence< sal_Int8 >& rData, sal_Int32 nMaxBytesToRead )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception) override;
- virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception) override;
- virtual sal_Int32 SAL_CALL available()
- throw (NotConnectedException, IOException, RuntimeException, std::exception) override;
- virtual void SAL_CALL closeInput()
- throw (NotConnectedException, IOException, RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead ) override;
+ virtual sal_Int32 SAL_CALL readSomeBytes( Sequence< sal_Int8 >& rData, sal_Int32 nMaxBytesToRead ) override;
+ virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) override;
+ virtual sal_Int32 SAL_CALL available() override;
+ virtual void SAL_CALL closeInput() override;
private:
/// @throws NotConnectedException
- void ensureConnected() const throw (NotConnectedException);
+ void ensureConnected() const;
private:
BinaryInputStream* mpInStrm;
@@ -68,40 +63,37 @@ UnoBinaryInputStream::UnoBinaryInputStream( BinaryInputStream& rInStrm ) :
}
sal_Int32 SAL_CALL UnoBinaryInputStream::readBytes( Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
ensureConnected();
return mpInStrm->readData( rData, nBytesToRead );
}
sal_Int32 SAL_CALL UnoBinaryInputStream::readSomeBytes( Sequence< sal_Int8 >& rData, sal_Int32 nMaxBytesToRead )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
ensureConnected();
return mpInStrm->readData( rData, nMaxBytesToRead );
}
void SAL_CALL UnoBinaryInputStream::skipBytes( sal_Int32 nBytesToSkip )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
ensureConnected();
mpInStrm->skip( nBytesToSkip );
}
-sal_Int32 SAL_CALL UnoBinaryInputStream::available() throw (NotConnectedException, IOException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL UnoBinaryInputStream::available()
{
ensureConnected();
throw RuntimeException( "Functionality not supported", Reference< XInputStream >() );
}
-void SAL_CALL UnoBinaryInputStream::closeInput() throw (NotConnectedException, IOException, RuntimeException, std::exception)
+void SAL_CALL UnoBinaryInputStream::closeInput()
{
ensureConnected();
mpInStrm->close();
mpInStrm = nullptr;
}
-void UnoBinaryInputStream::ensureConnected() const throw (NotConnectedException)
+void UnoBinaryInputStream::ensureConnected() const
{
if( !mpInStrm )
throw NotConnectedException( "Stream closed" );
diff --git a/oox/source/mathml/import.cxx b/oox/source/mathml/import.cxx
index 172298600a1a..825ad9bb9bee 100644
--- a/oox/source/mathml/import.cxx
+++ b/oox/source/mathml/import.cxx
@@ -40,10 +40,10 @@ public:
// com.sun.star.xml.sax.XFastContextHandler interface ---------------------
- virtual void SAL_CALL startFastElement(::sal_Int32 Element, const uno::Reference<xml::sax::XFastAttributeList>& xAttribs) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL endFastElement(::sal_Int32 Element) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
- virtual uno::Reference< xml::sax::XFastContextHandler> SAL_CALL createFastChildContext(::sal_Int32 Element, const uno::Reference<xml::sax::XFastAttributeList >& xAttribs) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL characters(const OUString& rChars) throw (xml::sax::SAXException, uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL startFastElement(::sal_Int32 Element, const uno::Reference<xml::sax::XFastAttributeList>& xAttribs) override;
+ virtual void SAL_CALL endFastElement(::sal_Int32 Element) override;
+ virtual uno::Reference< xml::sax::XFastContextHandler> SAL_CALL createFastChildContext(::sal_Int32 Element, const uno::Reference<xml::sax::XFastAttributeList >& xAttribs) override;
+ virtual void SAL_CALL characters(const OUString& rChars) override;
};
@@ -58,7 +58,6 @@ LazyMathBufferingContext::LazyMathBufferingContext(
void SAL_CALL LazyMathBufferingContext::startFastElement(
sal_Int32 const nElement,
uno::Reference<xml::sax::XFastAttributeList> const& xAttrs)
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
if (0 < m_Counter) // ignore a14:m
{ // ignore outer oMathPara
@@ -71,7 +70,6 @@ void SAL_CALL LazyMathBufferingContext::startFastElement(
}
void SAL_CALL LazyMathBufferingContext::endFastElement(sal_Int32 const nElement)
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
--m_Counter;
if (0 < m_Counter) // ignore a14:m
@@ -86,13 +84,11 @@ void SAL_CALL LazyMathBufferingContext::endFastElement(sal_Int32 const nElement)
uno::Reference<xml::sax::XFastContextHandler> SAL_CALL
LazyMathBufferingContext::createFastChildContext(sal_Int32 const,
uno::Reference<xml::sax::XFastAttributeList> const&)
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
return this;
}
void SAL_CALL LazyMathBufferingContext::characters(OUString const& rChars)
- throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
{
if (0 < m_Counter) // ignore a14:m
{
diff --git a/oox/source/ole/olestorage.cxx b/oox/source/ole/olestorage.cxx
index 4e20a9dda1c7..7d282bfdf6f1 100644
--- a/oox/source/ole/olestorage.cxx
+++ b/oox/source/ole/olestorage.cxx
@@ -59,19 +59,19 @@ public:
const Reference< XNameContainer >& rxStorage,
const OUString& rElementName );
- virtual void SAL_CALL seek( sal_Int64 nPos ) throw( IllegalArgumentException, IOException, RuntimeException, std::exception ) override;
- virtual sal_Int64 SAL_CALL getPosition() throw( IOException, RuntimeException, std::exception ) override;
- virtual sal_Int64 SAL_CALL getLength() throw( IOException, RuntimeException, std::exception ) override;
+ virtual void SAL_CALL seek( sal_Int64 nPos ) override;
+ virtual sal_Int64 SAL_CALL getPosition() override;
+ virtual sal_Int64 SAL_CALL getLength() override;
- virtual void SAL_CALL writeBytes( const Sequence< sal_Int8 >& rData ) throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception ) override;
- virtual void SAL_CALL flush() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception ) override;
- virtual void SAL_CALL closeOutput() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception ) override;
+ virtual void SAL_CALL writeBytes( const Sequence< sal_Int8 >& rData ) override;
+ virtual void SAL_CALL flush() override;
+ virtual void SAL_CALL closeOutput() override;
private:
/// @throws IOException
- void ensureSeekable() const throw( IOException );
+ void ensureSeekable() const;
/// @throws NotConnectedException
- void ensureConnected() const throw( NotConnectedException );
+ void ensureConnected() const;
private:
Reference< XNameContainer > mxStorage;
@@ -97,37 +97,37 @@ OleOutputStream::OleOutputStream( const Reference< XComponentContext >& rxContex
}
}
-void SAL_CALL OleOutputStream::seek( sal_Int64 nPos ) throw( IllegalArgumentException, IOException, RuntimeException, std::exception )
+void SAL_CALL OleOutputStream::seek( sal_Int64 nPos )
{
ensureSeekable();
mxSeekable->seek( nPos );
}
-sal_Int64 SAL_CALL OleOutputStream::getPosition() throw( IOException, RuntimeException, std::exception )
+sal_Int64 SAL_CALL OleOutputStream::getPosition()
{
ensureSeekable();
return mxSeekable->getPosition();
}
-sal_Int64 SAL_CALL OleOutputStream::getLength() throw( IOException, RuntimeException, std::exception )
+sal_Int64 SAL_CALL OleOutputStream::getLength()
{
ensureSeekable();
return mxSeekable->getLength();
}
-void SAL_CALL OleOutputStream::writeBytes( const Sequence< sal_Int8 >& rData ) throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception )
+void SAL_CALL OleOutputStream::writeBytes( const Sequence< sal_Int8 >& rData )
{
ensureConnected();
mxOutStrm->writeBytes( rData );
}
-void SAL_CALL OleOutputStream::flush() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception )
+void SAL_CALL OleOutputStream::flush()
{
ensureConnected();
mxOutStrm->flush();
}
-void SAL_CALL OleOutputStream::closeOutput() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception )
+void SAL_CALL OleOutputStream::closeOutput()
{
ensureConnected();
ensureSeekable();
@@ -145,13 +145,13 @@ void SAL_CALL OleOutputStream::closeOutput() throw( NotConnectedException, Buffe
throw IOException();
}
-void OleOutputStream::ensureSeekable() const throw( IOException )
+void OleOutputStream::ensureSeekable() const
{
if( !mxSeekable.is() )
throw IOException();
}
-void OleOutputStream::ensureConnected() const throw( NotConnectedException )
+void OleOutputStream::ensureConnected() const
{
if( !mxOutStrm.is() )
throw NotConnectedException();
diff --git a/oox/source/ppt/dgmimport.cxx b/oox/source/ppt/dgmimport.cxx
index 57271291eb40..8ce77d115e38 100644
--- a/oox/source/ppt/dgmimport.cxx
+++ b/oox/source/ppt/dgmimport.cxx
@@ -48,7 +48,7 @@ uno::Sequence< OUString > SAL_CALL QuickDiagrammingImport_getSupportedServiceNam
return aSeq;
}
-uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingImport_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception )
+uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingImport_createInstance( const Reference< XComponentContext >& rxContext )
{
return static_cast<cppu::OWeakObject*>(new QuickDiagrammingImport( rxContext ));
}
@@ -57,7 +57,7 @@ QuickDiagrammingImport::QuickDiagrammingImport( const css::uno::Reference< css::
: XmlFilterBase( rxContext )
{}
-bool QuickDiagrammingImport::importDocument() throw (css::uno::RuntimeException, std::exception)
+bool QuickDiagrammingImport::importDocument()
{
/* to activate the PPTX dumper, define the environment variable
OOO_PPTXDUMPER and insert the full path to the file
@@ -113,7 +113,7 @@ oox::drawingml::chart::ChartConverter* QuickDiagrammingImport::getChartConverter
return nullptr;
}
-OUString QuickDiagrammingImport::getImplementationName() throw (css::uno::RuntimeException, std::exception)
+OUString QuickDiagrammingImport::getImplementationName()
{
return QuickDiagrammingImport_getImplementationName();
}
diff --git a/oox/source/ppt/dgmlayout.cxx b/oox/source/ppt/dgmlayout.cxx
index 9e35c8c8c335..6fd9c99d9790 100644
--- a/oox/source/ppt/dgmlayout.cxx
+++ b/oox/source/ppt/dgmlayout.cxx
@@ -55,7 +55,7 @@ uno::Sequence< OUString > SAL_CALL QuickDiagrammingLayout_getSupportedServiceNam
return aSeq;
}
-uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingLayout_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception )
+uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingLayout_createInstance( const Reference< XComponentContext >& rxContext )
{
return static_cast<cppu::OWeakObject*>(new QuickDiagrammingLayout( rxContext ));
}
@@ -65,7 +65,7 @@ QuickDiagrammingLayout::QuickDiagrammingLayout( const Reference< XComponentConte
mpThemePtr(new drawingml::Theme())
{}
-bool QuickDiagrammingLayout::importDocument() throw (css::uno::RuntimeException)
+bool QuickDiagrammingLayout::importDocument()
{
Reference<drawing::XShape> xParentShape(getParentShape(),
UNO_QUERY_THROW);
@@ -165,7 +165,7 @@ const oox::drawingml::table::TableStyleListPtr QuickDiagrammingLayout::getTableS
return nullptr;
}
-OUString QuickDiagrammingLayout::getImplementationName() throw (css::uno::RuntimeException, std::exception)
+OUString QuickDiagrammingLayout::getImplementationName()
{
return QuickDiagrammingLayout_getImplementationName();
}
diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx
index 140d3b665534..414a149adcdb 100644
--- a/oox/source/ppt/pptimport.cxx
+++ b/oox/source/ppt/pptimport.cxx
@@ -56,7 +56,7 @@ uno::Sequence< OUString > SAL_CALL PowerPointImport_getSupportedServiceNames()
return aSeq;
}
-uno::Reference< uno::XInterface > SAL_CALL PowerPointImport_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception )
+uno::Reference< uno::XInterface > SAL_CALL PowerPointImport_createInstance( const Reference< XComponentContext >& rxContext )
{
return static_cast< ::cppu::OWeakObject* >( new PowerPointImport( rxContext ) );
}
@@ -65,7 +65,7 @@ uno::Reference< uno::XInterface > SAL_CALL PowerPointImport_createInstance( cons
XmlFilterBase* PowerPointImport::mpDebugFilterBase = nullptr;
#endif
-PowerPointImport::PowerPointImport( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) :
+PowerPointImport::PowerPointImport( const Reference< XComponentContext >& rxContext ) :
XmlFilterBase( rxContext ),
mxChartConv( new ::oox::drawingml::chart::ChartConverter )
@@ -144,7 +144,7 @@ const ::oox::drawingml::Theme* PowerPointImport::getCurrentTheme() const
return mpActualSlidePersist ? mpActualSlidePersist->getTheme().get() : nullptr;
}
-sal_Bool SAL_CALL PowerPointImport::filter( const Sequence< PropertyValue >& rDescriptor ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL PowerPointImport::filter( const Sequence< PropertyValue >& rDescriptor )
{
if( XmlFilterBase::filter( rDescriptor ) )
return true;
@@ -228,7 +228,7 @@ GraphicHelper* PowerPointImport::implCreateGraphicHelper() const
return new ::oox::ole::VbaProject( getComponentContext(), getModel(), "Impress" );
}
-OUString PowerPointImport::getImplementationName() throw (css::uno::RuntimeException, std::exception)
+OUString PowerPointImport::getImplementationName()
{
return PowerPointImport_getImplementationName();
}
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx
index 44262e93488a..9af13d245f0c 100644
--- a/oox/source/shape/ShapeContextHandler.cxx
+++ b/oox/source/shape/ShapeContextHandler.cxx
@@ -57,7 +57,6 @@ ShapeContextHandler_getSupportedServiceNames()
uno::Reference< uno::XInterface > SAL_CALL
ShapeContextHandler_createInstance( const uno::Reference< uno::XComponentContext > & context)
- throw (uno::Exception)
{
return static_cast< ::cppu::OWeakObject* >( new ShapeContextHandler(context) );
}
@@ -276,7 +275,6 @@ ShapeContextHandler::getContextHandler(sal_Int32 nElement)
void SAL_CALL ShapeContextHandler::startFastElement
(::sal_Int32 Element,
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
mxFilterBase->filter(maMediaDescriptor);
@@ -325,7 +323,6 @@ void SAL_CALL ShapeContextHandler::startFastElement
void SAL_CALL ShapeContextHandler::startUnknownElement
(const OUString & Namespace, const OUString & Name,
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
if ( getContextHandler() == getDrawingShapeContext() )
mpDrawing->getShapes().pushMark();
@@ -337,7 +334,6 @@ void SAL_CALL ShapeContextHandler::startUnknownElement
}
void SAL_CALL ShapeContextHandler::endFastElement(::sal_Int32 Element)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
@@ -365,7 +361,6 @@ void SAL_CALL ShapeContextHandler::endFastElement(::sal_Int32 Element)
void SAL_CALL ShapeContextHandler::endUnknownElement
(const OUString & Namespace,
const OUString & Name)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
@@ -377,7 +372,6 @@ uno::Reference< xml::sax::XFastContextHandler > SAL_CALL
ShapeContextHandler::createFastChildContext
(::sal_Int32 Element,
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
uno::Reference< xml::sax::XFastContextHandler > xResult;
uno::Reference< xml::sax::XFastContextHandler > xContextHandler(getContextHandler(Element));
@@ -394,7 +388,6 @@ ShapeContextHandler::createUnknownChildContext
(const OUString & Namespace,
const OUString & Name,
const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
@@ -406,7 +399,6 @@ ShapeContextHandler::createUnknownChildContext
}
void SAL_CALL ShapeContextHandler::characters(const OUString & aChars)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
uno::Reference<XFastContextHandler> xContextHandler(getContextHandler());
@@ -416,7 +408,7 @@ void SAL_CALL ShapeContextHandler::characters(const OUString & aChars)
// css::xml::sax::XFastShapeContextHandler:
uno::Reference< drawing::XShape > SAL_CALL
-ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception)
+ShapeContextHandler::getShape()
{
uno::Reference< drawing::XShape > xResult;
uno::Reference< drawing::XShapes > xShapes( mxDrawPage, uno::UNO_QUERY );
@@ -543,20 +535,19 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception)
}
css::uno::Reference< css::drawing::XDrawPage > SAL_CALL
-ShapeContextHandler::getDrawPage() throw (css::uno::RuntimeException, std::exception)
+ShapeContextHandler::getDrawPage()
{
return mxDrawPage;
}
void SAL_CALL ShapeContextHandler::setDrawPage
(const css::uno::Reference< css::drawing::XDrawPage > & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
mxDrawPage = the_value;
}
css::uno::Reference< css::frame::XModel > SAL_CALL
-ShapeContextHandler::getModel() throw (css::uno::RuntimeException, std::exception)
+ShapeContextHandler::getModel()
{
if( !mxFilterBase.is() )
throw uno::RuntimeException();
@@ -565,7 +556,6 @@ ShapeContextHandler::getModel() throw (css::uno::RuntimeException, std::exceptio
void SAL_CALL ShapeContextHandler::setModel
(const css::uno::Reference< css::frame::XModel > & the_value)
- throw (css::uno::RuntimeException, std::exception)
{
if( !mxFilterBase.is() )
throw uno::RuntimeException();
@@ -574,76 +564,67 @@ void SAL_CALL ShapeContextHandler::setModel
}
OUString SAL_CALL ShapeContextHandler::getRelationFragmentPath()
- throw (uno::RuntimeException, std::exception)
{
return msRelationFragmentPath;
}
void SAL_CALL ShapeContextHandler::setRelationFragmentPath(const OUString & the_value)
- throw (uno::RuntimeException, std::exception)
{
msRelationFragmentPath = the_value;
}
-::sal_Int32 SAL_CALL ShapeContextHandler::getStartToken() throw (css::uno::RuntimeException, std::exception)
+::sal_Int32 SAL_CALL ShapeContextHandler::getStartToken()
{
return mnStartToken;
}
-void SAL_CALL ShapeContextHandler::setStartToken( ::sal_Int32 _starttoken ) throw (css::uno::RuntimeException, std::exception)
+void SAL_CALL ShapeContextHandler::setStartToken( ::sal_Int32 _starttoken )
{
mnStartToken = _starttoken;
}
-awt::Point SAL_CALL ShapeContextHandler::getPosition() throw (uno::RuntimeException, std::exception)
+awt::Point SAL_CALL ShapeContextHandler::getPosition()
{
return maPosition;
}
-void SAL_CALL ShapeContextHandler::setPosition(const awt::Point& rPosition) throw (uno::RuntimeException, std::exception)
+void SAL_CALL ShapeContextHandler::setPosition(const awt::Point& rPosition)
{
maPosition = rPosition;
}
void SAL_CALL ShapeContextHandler::setDocumentProperties(const uno::Reference<document::XDocumentProperties>& xDocProps)
- throw (css::uno::RuntimeException, std::exception)
{
mxDocumentProperties = xDocProps;
mxFilterBase->checkDocumentProperties(mxDocumentProperties);
}
uno::Reference<document::XDocumentProperties> SAL_CALL ShapeContextHandler::getDocumentProperties()
- throw (css::uno::RuntimeException, std::exception)
{
return mxDocumentProperties;
}
uno::Sequence<beans::PropertyValue> SAL_CALL ShapeContextHandler::getMediaDescriptor()
- throw (uno::RuntimeException, std::exception)
{
return maMediaDescriptor;
}
void SAL_CALL ShapeContextHandler::setMediaDescriptor(const uno::Sequence<beans::PropertyValue>& rMediaDescriptor)
- throw (uno::RuntimeException, std::exception)
{
maMediaDescriptor = rMediaDescriptor;
}
OUString ShapeContextHandler::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return ShapeContextHandler_getImplementationName();
}
uno::Sequence< OUString > ShapeContextHandler::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
return ShapeContextHandler_getSupportedServiceNames();
}
sal_Bool SAL_CALL ShapeContextHandler::supportsService(const OUString & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
diff --git a/oox/source/shape/ShapeContextHandler.hxx b/oox/source/shape/ShapeContextHandler.hxx
index c594288d4d80..3270034e2061 100644
--- a/oox/source/shape/ShapeContextHandler.hxx
+++ b/oox/source/shape/ShapeContextHandler.hxx
@@ -57,89 +57,70 @@ public:
virtual ~ShapeContextHandler() override;
// css::lang::XServiceInfo:
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
virtual sal_Bool SAL_CALL supportsService
- (const OUString & ServiceName) throw (css::uno::RuntimeException, std::exception) override;
+ (const OUString & ServiceName) override;
virtual css::uno::Sequence< OUString > SAL_CALL
- getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override;
+ getSupportedServiceNames() override;
// css::xml::sax::XFastContextHandler:
virtual void SAL_CALL startFastElement
(::sal_Int32 Element,
- const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs) override;
virtual void SAL_CALL startUnknownElement
(const OUString & Namespace,
const OUString & Name,
- const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs) override;
- virtual void SAL_CALL endFastElement(::sal_Int32 Element)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ virtual void SAL_CALL endFastElement(::sal_Int32 Element) override;
virtual void SAL_CALL endUnknownElement
(const OUString & Namespace,
- const OUString & Name)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ const OUString & Name) override;
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
createFastChildContext
(::sal_Int32 Element,
- const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs) override;
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
createUnknownChildContext
(const OUString & Namespace,
const OUString & Name,
- const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs) override;
- virtual void SAL_CALL characters(const OUString & aChars)
- throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) override;
+ virtual void SAL_CALL characters(const OUString & aChars) override;
// css::xml::sax::XFastShapeContextHandler:
- virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getShape()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getShape() override;
- virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getDrawPage()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getDrawPage() override;
virtual void SAL_CALL setDrawPage
- (const css::uno::Reference< css::drawing::XDrawPage > & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
+ (const css::uno::Reference< css::drawing::XDrawPage > & the_value) override;
- virtual css::uno::Reference< css::frame::XModel > SAL_CALL getModel()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::frame::XModel > SAL_CALL getModel() override;
virtual void SAL_CALL setModel
- (const css::uno::Reference< css::frame::XModel > & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
+ (const css::uno::Reference< css::frame::XModel > & the_value) override;
- virtual OUString SAL_CALL getRelationFragmentPath()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getRelationFragmentPath() override;
virtual void SAL_CALL setRelationFragmentPath
- (const OUString & the_value)
- throw (css::uno::RuntimeException, std::exception) override;
-
- virtual ::sal_Int32 SAL_CALL getStartToken() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setStartToken( ::sal_Int32 _starttoken ) throw (css::uno::RuntimeException, std::exception) override;
-
- virtual css::awt::Point SAL_CALL getPosition() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setPosition(const css::awt::Point& rPosition) throw (css::uno::RuntimeException, std::exception) override;
-
- virtual void SAL_CALL setDocumentProperties(const css::uno::Reference<css::document::XDocumentProperties>& xDocProps)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Reference<css::document::XDocumentProperties> SAL_CALL getDocumentProperties()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getMediaDescriptor()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setMediaDescriptor(const css::uno::Sequence<css::beans::PropertyValue>& rMediaDescriptor)
- throw (css::uno::RuntimeException, std::exception) override;
+ (const OUString & the_value) override;
+
+ virtual ::sal_Int32 SAL_CALL getStartToken() override;
+ virtual void SAL_CALL setStartToken( ::sal_Int32 _starttoken ) override;
+
+ virtual css::awt::Point SAL_CALL getPosition() override;
+ virtual void SAL_CALL setPosition(const css::awt::Point& rPosition) override;
+
+ virtual void SAL_CALL setDocumentProperties(const css::uno::Reference<css::document::XDocumentProperties>& xDocProps) override;
+ virtual css::uno::Reference<css::document::XDocumentProperties> SAL_CALL getDocumentProperties() override;
+ virtual css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getMediaDescriptor() override;
+ virtual void SAL_CALL setMediaDescriptor(const css::uno::Sequence<css::beans::PropertyValue>& rMediaDescriptor) override;
private:
ShapeContextHandler(ShapeContextHandler &) = delete;
diff --git a/oox/source/shape/ShapeDrawingFragmentHandler.cxx b/oox/source/shape/ShapeDrawingFragmentHandler.cxx
index 32aa09c6d3b2..d6a7e96cc1cb 100644
--- a/oox/source/shape/ShapeDrawingFragmentHandler.cxx
+++ b/oox/source/shape/ShapeDrawingFragmentHandler.cxx
@@ -26,7 +26,7 @@ ShapeDrawingFragmentHandler::~ShapeDrawingFragmentHandler() throw()
{
}
-void SAL_CALL ShapeDrawingFragmentHandler::endDocument() throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
+void SAL_CALL ShapeDrawingFragmentHandler::endDocument()
{
}
diff --git a/oox/source/shape/ShapeDrawingFragmentHandler.hxx b/oox/source/shape/ShapeDrawingFragmentHandler.hxx
index b4e202b15694..7f894a50f62c 100644
--- a/oox/source/shape/ShapeDrawingFragmentHandler.hxx
+++ b/oox/source/shape/ShapeDrawingFragmentHandler.hxx
@@ -21,7 +21,7 @@ class ShapeDrawingFragmentHandler : public oox::core::FragmentHandler2
public:
ShapeDrawingFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath, oox::drawingml::ShapePtr const & pGroupShapePtr ) throw();
virtual ~ShapeDrawingFragmentHandler() throw() override;
- virtual void SAL_CALL endDocument() throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL endDocument() override;
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 Element, const AttributeList& rAttribs ) override;
private:
diff --git a/oox/source/shape/ShapeFilterBase.cxx b/oox/source/shape/ShapeFilterBase.cxx
index a307d5cb8cc4..1f8b78a93230 100644
--- a/oox/source/shape/ShapeFilterBase.cxx
+++ b/oox/source/shape/ShapeFilterBase.cxx
@@ -28,7 +28,7 @@ namespace shape {
using namespace ::com::sun::star;
-ShapeFilterBase::ShapeFilterBase( const uno::Reference< uno::XComponentContext >& rxContext ) throw( uno::RuntimeException ) :
+ShapeFilterBase::ShapeFilterBase( const uno::Reference< uno::XComponentContext >& rxContext ) :
XmlFilterBase( rxContext ),
mxChartConv( new ::oox::drawingml::chart::ChartConverter )
{
@@ -68,7 +68,7 @@ const ::oox::drawingml::table::TableStyleListPtr ShapeFilterBase::getTableStyles
return new ::oox::ole::VbaProject( getComponentContext(), getModel(), "Writer" );
}
-OUString ShapeFilterBase::getImplementationName() throw (css::uno::RuntimeException, std::exception)
+OUString ShapeFilterBase::getImplementationName()
{
return OUString();
}
diff --git a/oox/source/shape/ShapeFilterBase.hxx b/oox/source/shape/ShapeFilterBase.hxx
index 5bb339b6e41c..64bc926770e2 100644
--- a/oox/source/shape/ShapeFilterBase.hxx
+++ b/oox/source/shape/ShapeFilterBase.hxx
@@ -37,8 +37,7 @@ public:
/// @throws css::uno::RuntimeException
explicit ShapeFilterBase(
- const css::uno::Reference< css::uno::XComponentContext >& rxContext )
- throw( css::uno::RuntimeException );
+ const css::uno::Reference< css::uno::XComponentContext >& rxContext );
virtual ~ShapeFilterBase() override;
@@ -62,7 +61,7 @@ public:
private:
virtual ::oox::ole::VbaProject* implCreateVbaProject() const override;
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
virtual GraphicHelper* implCreateGraphicHelper() const override;
std::shared_ptr< ::oox::drawingml::chart::ChartConverter > mxChartConv;
diff --git a/oox/source/vml/vmlinputstream.cxx b/oox/source/vml/vmlinputstream.cxx
index 57204c3efbb1..0c413b15fc01 100644
--- a/oox/source/vml/vmlinputstream.cxx
+++ b/oox/source/vml/vmlinputstream.cxx
@@ -278,7 +278,6 @@ InputStream::~InputStream()
}
sal_Int32 SAL_CALL InputStream::readBytes( Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
if( nBytesToRead < 0 )
throw IOException();
@@ -304,13 +303,11 @@ sal_Int32 SAL_CALL InputStream::readBytes( Sequence< sal_Int8 >& rData, sal_Int3
}
sal_Int32 SAL_CALL InputStream::readSomeBytes( Sequence< sal_Int8 >& rData, sal_Int32 nMaxBytesToRead )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
return readBytes( rData, nMaxBytesToRead );
}
void SAL_CALL InputStream::skipBytes( sal_Int32 nBytesToSkip )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
if( nBytesToSkip < 0 )
throw IOException();
@@ -324,20 +321,20 @@ void SAL_CALL InputStream::skipBytes( sal_Int32 nBytesToSkip )
}
}
-sal_Int32 SAL_CALL InputStream::available() throw (NotConnectedException, IOException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL InputStream::available()
{
updateBuffer();
return maBuffer.getLength() - mnBufferPos;
}
-void SAL_CALL InputStream::closeInput() throw (NotConnectedException, IOException, RuntimeException, std::exception)
+void SAL_CALL InputStream::closeInput()
{
mxTextStrm->closeInput();
}
// private --------------------------------------------------------------------
-void InputStream::updateBuffer() throw (IOException, RuntimeException)
+void InputStream::updateBuffer()
{
while( (mnBufferPos >= maBuffer.getLength()) && !mxTextStrm->isEOF() )
{
@@ -375,12 +372,12 @@ void InputStream::updateBuffer() throw (IOException, RuntimeException)
}
}
-OString InputStream::readToElementBegin() throw (IOException, RuntimeException)
+OString InputStream::readToElementBegin()
{
return OUStringToOString( mxTextStrm->readString( maOpeningBracket, false ), RTL_TEXTENCODING_ISO_8859_1 );
}
-OString InputStream::readToElementEnd() throw (IOException, RuntimeException)
+OString InputStream::readToElementEnd()
{
OString aText = OUStringToOString( mxTextStrm->readString( maClosingBracket, false ), RTL_TEXTENCODING_ISO_8859_1 );
OSL_ENSURE( aText.endsWith(">"), "InputStream::readToElementEnd - missing closing bracket of XML element" );