summaryrefslogtreecommitdiff
path: root/svx/source/xml
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-25 21:31:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-26 18:22:20 +0100
commit5e21a413c788f839a66d9e4c14e745ed18058db8 (patch)
treed4451246461346a425ad6f796e08bf1514cdd942 /svx/source/xml
parent6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff)
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'svx/source/xml')
-rw-r--r--svx/source/xml/xmleohlp.cxx24
-rw-r--r--svx/source/xml/xmlgrhlp.cxx72
2 files changed, 48 insertions, 48 deletions
diff --git a/svx/source/xml/xmleohlp.cxx b/svx/source/xml/xmleohlp.cxx
index 28663b1cc12c..2b2891b8211a 100644
--- a/svx/source/xml/xmleohlp.cxx
+++ b/svx/source/xml/xmleohlp.cxx
@@ -74,9 +74,9 @@ public:
virtual ~OutputStorageWrapper_Impl();
// stario::XOutputStream
- virtual void SAL_CALL writeBytes(const Sequence< sal_Int8 >& aData) throw(NotConnectedException, BufferSizeExceededException, RuntimeException);
- virtual void SAL_CALL flush() throw(NotConnectedException, BufferSizeExceededException, RuntimeException);
- virtual void SAL_CALL closeOutput() throw(NotConnectedException, BufferSizeExceededException, RuntimeException);
+ virtual void SAL_CALL writeBytes(const Sequence< sal_Int8 >& aData) throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception);
+ virtual void SAL_CALL flush() throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception);
+ virtual void SAL_CALL closeOutput() throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception);
SvStream* GetStream();
};
@@ -103,21 +103,21 @@ SvStream *OutputStorageWrapper_Impl::GetStream()
void SAL_CALL OutputStorageWrapper_Impl::writeBytes(
const Sequence< sal_Int8 >& aData)
- throw(NotConnectedException, BufferSizeExceededException, RuntimeException)
+ throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
xOut->writeBytes( aData );
}
void SAL_CALL OutputStorageWrapper_Impl::flush()
- throw(NotConnectedException, BufferSizeExceededException, RuntimeException)
+ throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
xOut->flush();
}
void SAL_CALL OutputStorageWrapper_Impl::closeOutput()
- throw(NotConnectedException, BufferSizeExceededException, RuntimeException)
+ throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
xOut->closeOutput();
@@ -609,7 +609,7 @@ void SvXMLEmbeddedObjectHelper::Flush()
// XGraphicObjectResolver: alien objects!
OUString SAL_CALL SvXMLEmbeddedObjectHelper::resolveEmbeddedObjectURL( const OUString& aURL )
- throw(RuntimeException)
+ throw(RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
@@ -619,7 +619,7 @@ OUString SAL_CALL SvXMLEmbeddedObjectHelper::resolveEmbeddedObjectURL( const OUS
// XNameAccess: alien objects!
Any SAL_CALL SvXMLEmbeddedObjectHelper::getByName(
const OUString& rURLStr )
- throw (NoSuchElementException, WrappedTargetException, RuntimeException)
+ throw (NoSuchElementException, WrappedTargetException, RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
Any aRet;
@@ -717,14 +717,14 @@ Any SAL_CALL SvXMLEmbeddedObjectHelper::getByName(
}
Sequence< OUString > SAL_CALL SvXMLEmbeddedObjectHelper::getElementNames()
- throw (RuntimeException)
+ throw (RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
return Sequence< OUString >(0);
}
sal_Bool SAL_CALL SvXMLEmbeddedObjectHelper::hasByName( const OUString& rURLStr )
- throw (RuntimeException)
+ throw (RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
if( EMBEDDEDOBJECTHELPER_MODE_READ == meCreateMode )
@@ -747,7 +747,7 @@ sal_Bool SAL_CALL SvXMLEmbeddedObjectHelper::hasByName( const OUString& rURLStr
// XNameAccess
Type SAL_CALL SvXMLEmbeddedObjectHelper::getElementType()
- throw (RuntimeException)
+ throw (RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
if( EMBEDDEDOBJECTHELPER_MODE_READ == meCreateMode )
@@ -757,7 +757,7 @@ Type SAL_CALL SvXMLEmbeddedObjectHelper::getElementType()
}
sal_Bool SAL_CALL SvXMLEmbeddedObjectHelper::hasElements()
- throw (RuntimeException)
+ throw (RuntimeException, std::exception)
{
MutexGuard aGuard( maMutex );
if( EMBEDDEDOBJECTHELPER_MODE_READ == meCreateMode )
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index a1efb3cc184d..f5bf9f75d2c1 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -73,11 +73,11 @@ class SvXMLGraphicInputStream : public::cppu::WeakImplHelper1< XInputStream >
{
private:
- virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(NotConnectedException, BufferSizeExceededException, RuntimeException);
- virtual sal_Int32 SAL_CALL readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw(NotConnectedException, BufferSizeExceededException, RuntimeException);
- virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) throw(NotConnectedException, BufferSizeExceededException, RuntimeException);
- virtual sal_Int32 SAL_CALL available() throw(NotConnectedException, RuntimeException);
- virtual void SAL_CALL closeInput() throw(NotConnectedException, RuntimeException);
+ virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception);
+ virtual sal_Int32 SAL_CALL readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception);
+ virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) throw(NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception);
+ virtual sal_Int32 SAL_CALL available() throw(NotConnectedException, RuntimeException, std::exception);
+ virtual void SAL_CALL closeInput() throw(NotConnectedException, RuntimeException, std::exception);
private:
@@ -157,7 +157,7 @@ SvXMLGraphicInputStream::~SvXMLGraphicInputStream()
}
sal_Int32 SAL_CALL SvXMLGraphicInputStream::readBytes( Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead )
- throw( NotConnectedException, BufferSizeExceededException, RuntimeException )
+ throw( NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception )
{
if( !mxStmWrapper.is() )
throw NotConnectedException();
@@ -166,7 +166,7 @@ sal_Int32 SAL_CALL SvXMLGraphicInputStream::readBytes( Sequence< sal_Int8 >& rDa
}
sal_Int32 SAL_CALL SvXMLGraphicInputStream::readSomeBytes( Sequence< sal_Int8 >& rData, sal_Int32 nMaxBytesToRead )
- throw( NotConnectedException, BufferSizeExceededException, RuntimeException )
+ throw( NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception )
{
if( !mxStmWrapper.is() )
throw NotConnectedException() ;
@@ -175,7 +175,7 @@ sal_Int32 SAL_CALL SvXMLGraphicInputStream::readSomeBytes( Sequence< sal_Int8 >&
}
void SAL_CALL SvXMLGraphicInputStream::skipBytes( sal_Int32 nBytesToSkip )
- throw( NotConnectedException, BufferSizeExceededException, RuntimeException )
+ throw( NotConnectedException, BufferSizeExceededException, RuntimeException, std::exception )
{
if( !mxStmWrapper.is() )
throw NotConnectedException() ;
@@ -183,7 +183,7 @@ void SAL_CALL SvXMLGraphicInputStream::skipBytes( sal_Int32 nBytesToSkip )
mxStmWrapper->skipBytes( nBytesToSkip );
}
-sal_Int32 SAL_CALL SvXMLGraphicInputStream::available() throw( NotConnectedException, RuntimeException )
+sal_Int32 SAL_CALL SvXMLGraphicInputStream::available() throw( NotConnectedException, RuntimeException, std::exception )
{
if( !mxStmWrapper.is() )
throw NotConnectedException() ;
@@ -191,7 +191,7 @@ sal_Int32 SAL_CALL SvXMLGraphicInputStream::available() throw( NotConnectedExcep
return mxStmWrapper->available();
}
-void SAL_CALL SvXMLGraphicInputStream::closeInput() throw( NotConnectedException, RuntimeException )
+void SAL_CALL SvXMLGraphicInputStream::closeInput() throw( NotConnectedException, RuntimeException, std::exception )
{
if( !mxStmWrapper.is() )
throw NotConnectedException() ;
@@ -204,9 +204,9 @@ class SvXMLGraphicOutputStream : public::cppu::WeakImplHelper1< XOutputStream >
private:
// XOutputStream
- virtual void SAL_CALL writeBytes( const Sequence< sal_Int8 >& rData ) throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException );
- virtual void SAL_CALL flush() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException );
- virtual void SAL_CALL closeOutput() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException );
+ virtual void SAL_CALL writeBytes( const Sequence< sal_Int8 >& rData ) throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception );
+ virtual void SAL_CALL flush() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception );
+ virtual void SAL_CALL closeOutput() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception );
private:
@@ -248,7 +248,7 @@ SvXMLGraphicOutputStream::~SvXMLGraphicOutputStream()
}
void SAL_CALL SvXMLGraphicOutputStream::writeBytes( const Sequence< sal_Int8 >& rData )
- throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException )
+ throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception )
{
if( !mxStmWrapper.is() )
throw NotConnectedException() ;
@@ -257,7 +257,7 @@ void SAL_CALL SvXMLGraphicOutputStream::writeBytes( const Sequence< sal_Int8 >&
}
void SAL_CALL SvXMLGraphicOutputStream::flush()
- throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException )
+ throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception )
{
if( !mxStmWrapper.is() )
throw NotConnectedException() ;
@@ -266,7 +266,7 @@ void SAL_CALL SvXMLGraphicOutputStream::flush()
}
void SAL_CALL SvXMLGraphicOutputStream::closeOutput()
- throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException )
+ throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception )
{
if( !mxStmWrapper.is() )
throw NotConnectedException() ;
@@ -777,7 +777,7 @@ void SvXMLGraphicHelper::Destroy( SvXMLGraphicHelper* pSvXMLGraphicHelper )
// XGraphicObjectResolver
OUString SAL_CALL SvXMLGraphicHelper::resolveGraphicObjectURL( const OUString& rURL )
- throw(uno::RuntimeException)
+ throw(uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( maMutex );
const sal_Int32 nIndex = maGrfURLs.size();
@@ -821,7 +821,7 @@ OUString SAL_CALL SvXMLGraphicHelper::resolveGraphicObjectURL( const OUString& r
// XBinaryStreamResolver
Reference< XInputStream > SAL_CALL SvXMLGraphicHelper::getInputStream( const OUString& rURL )
- throw( RuntimeException )
+ throw( RuntimeException, std::exception )
{
Reference< XInputStream > xRet;
OUString aPictureStorageName, aGraphicId;
@@ -842,7 +842,7 @@ Reference< XInputStream > SAL_CALL SvXMLGraphicHelper::getInputStream( const OUS
}
Reference< XOutputStream > SAL_CALL SvXMLGraphicHelper::createOutputStream()
- throw( RuntimeException )
+ throw( RuntimeException, std::exception )
{
Reference< XOutputStream > xRet;
@@ -860,7 +860,7 @@ Reference< XOutputStream > SAL_CALL SvXMLGraphicHelper::createOutputStream()
}
OUString SAL_CALL SvXMLGraphicHelper::resolveOutputStream( const Reference< XOutputStream >& rxBinaryStream )
- throw( RuntimeException )
+ throw( RuntimeException, std::exception )
{
OUString aRet;
@@ -927,27 +927,27 @@ protected:
// one argument is allowed, which is the XStorage
virtual void SAL_CALL initialize( const Sequence< Any >& aArguments )
throw (Exception,
- RuntimeException);
+ RuntimeException, std::exception);
// ____ XGraphicObjectResolver ____
virtual OUString SAL_CALL resolveGraphicObjectURL( const OUString& aURL )
- throw (RuntimeException);
+ throw (RuntimeException, std::exception);
// ____ XBinaryStreamResolver ____
virtual Reference< io::XInputStream > SAL_CALL getInputStream( const OUString& aURL )
- throw (RuntimeException);
+ throw (RuntimeException, std::exception);
virtual Reference< io::XOutputStream > SAL_CALL createOutputStream()
- throw (RuntimeException);
+ throw (RuntimeException, std::exception);
virtual OUString SAL_CALL resolveOutputStream( const Reference< io::XOutputStream >& aBinaryStream )
- throw (RuntimeException);
+ throw (RuntimeException, std::exception);
// ____ XServiceInfo ____
virtual OUString SAL_CALL getImplementationName()
- throw (RuntimeException);
+ throw (RuntimeException, std::exception);
virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw (RuntimeException);
+ throw (RuntimeException, std::exception);
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw (RuntimeException);
+ throw (RuntimeException, std::exception);
private:
SvXMLGraphicHelperMode m_eGraphicHelperMode;
@@ -973,7 +973,7 @@ void SAL_CALL SvXMLGraphicImportExportHelper::disposing()
// ____ XInitialization ____
void SAL_CALL SvXMLGraphicImportExportHelper::initialize(
const Sequence< Any >& aArguments )
- throw (Exception, RuntimeException)
+ throw (Exception, RuntimeException, std::exception)
{
Reference< embed::XStorage > xStorage;
if( aArguments.getLength() > 0 )
@@ -989,7 +989,7 @@ void SAL_CALL SvXMLGraphicImportExportHelper::initialize(
// ____ XGraphicObjectResolver ____
OUString SAL_CALL SvXMLGraphicImportExportHelper::resolveGraphicObjectURL( const OUString& aURL )
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
return m_xGraphicObjectResolver->resolveGraphicObjectURL( aURL );
}
@@ -997,24 +997,24 @@ OUString SAL_CALL SvXMLGraphicImportExportHelper::resolveGraphicObjectURL( const
// ____ XBinaryStreamResolver ____
Reference< io::XInputStream > SAL_CALL SvXMLGraphicImportExportHelper::getInputStream( const OUString& aURL )
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
return m_xBinaryStreamResolver->getInputStream( aURL );
}
Reference< io::XOutputStream > SAL_CALL SvXMLGraphicImportExportHelper::createOutputStream()
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
return m_xBinaryStreamResolver->createOutputStream();
}
OUString SAL_CALL SvXMLGraphicImportExportHelper::resolveOutputStream( const Reference< io::XOutputStream >& aBinaryStream )
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
return m_xBinaryStreamResolver->resolveOutputStream( aBinaryStream );
}
// ____ XServiceInfo ____
OUString SAL_CALL SvXMLGraphicImportExportHelper::getImplementationName()
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
if( m_eGraphicHelperMode == GRAPHICHELPER_MODE_READ )
return OUString("com.sun.star.comp.Svx.GraphicImportHelper");
@@ -1022,13 +1022,13 @@ OUString SAL_CALL SvXMLGraphicImportExportHelper::getImplementationName()
}
::sal_Bool SAL_CALL SvXMLGraphicImportExportHelper::supportsService( const OUString& ServiceName )
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
Sequence< OUString > SAL_CALL SvXMLGraphicImportExportHelper::getSupportedServiceNames()
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
// XGraphicObjectResolver and XBinaryStreamResolver are not part of any service
Sequence< OUString > aSupportedServiceNames( 2 );