diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-25 21:31:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-26 18:22:20 +0100 |
commit | 5e21a413c788f839a66d9e4c14e745ed18058db8 (patch) | |
tree | d4451246461346a425ad6f796e08bf1514cdd942 /sfx2/source/doc | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/DocumentMetadataAccess.cxx | 32 | ||||
-rw-r--r-- | sfx2/source/doc/Metadatable.cxx | 12 | ||||
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 254 | ||||
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/docstoragemodifylistener.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 54 | ||||
-rw-r--r-- | sfx2/source/doc/doctemplateslocal.cxx | 16 | ||||
-rw-r--r-- | sfx2/source/doc/doctemplateslocal.hxx | 16 | ||||
-rw-r--r-- | sfx2/source/doc/docundomanager.cxx | 44 | ||||
-rw-r--r-- | sfx2/source/doc/iframe.cxx | 66 | ||||
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 12 | ||||
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 12 | ||||
-rw-r--r-- | sfx2/source/doc/ownsubfilterservice.cxx | 20 | ||||
-rw-r--r-- | sfx2/source/doc/plugin.cxx | 58 | ||||
-rw-r--r-- | sfx2/source/doc/printhelper.cxx | 28 | ||||
-rw-r--r-- | sfx2/source/doc/printhelper.hxx | 12 | ||||
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 276 | ||||
-rw-r--r-- | sfx2/source/doc/sfxmodelfactory.cxx | 20 |
18 files changed, 470 insertions, 470 deletions
diff --git a/sfx2/source/doc/DocumentMetadataAccess.cxx b/sfx2/source/doc/DocumentMetadataAccess.cxx index 37622afc65a0..47da6ce7949b 100644 --- a/sfx2/source/doc/DocumentMetadataAccess.cxx +++ b/sfx2/source/doc/DocumentMetadataAccess.cxx @@ -817,7 +817,7 @@ DocumentMetadataAccess::~DocumentMetadataAccess() // ::com::sun::star::rdf::XRepositorySupplier: uno::Reference< rdf::XRepository > SAL_CALL -DocumentMetadataAccess::getRDFRepository() throw (uno::RuntimeException) +DocumentMetadataAccess::getRDFRepository() throw (uno::RuntimeException, std::exception) { OSL_ENSURE(m_pImpl->m_xRepository.is(), "repository not initialized"); return m_pImpl->m_xRepository; @@ -825,20 +825,20 @@ DocumentMetadataAccess::getRDFRepository() throw (uno::RuntimeException) // ::com::sun::star::rdf::XNode: OUString SAL_CALL -DocumentMetadataAccess::getStringValue() throw (uno::RuntimeException) +DocumentMetadataAccess::getStringValue() throw (uno::RuntimeException, std::exception) { return m_pImpl->m_xBaseURI->getStringValue(); } // ::com::sun::star::rdf::XURI: OUString SAL_CALL -DocumentMetadataAccess::getNamespace() throw (uno::RuntimeException) +DocumentMetadataAccess::getNamespace() throw (uno::RuntimeException, std::exception) { return m_pImpl->m_xBaseURI->getNamespace(); } OUString SAL_CALL -DocumentMetadataAccess::getLocalName() throw (uno::RuntimeException) +DocumentMetadataAccess::getLocalName() throw (uno::RuntimeException, std::exception) { return m_pImpl->m_xBaseURI->getLocalName(); } @@ -847,7 +847,7 @@ DocumentMetadataAccess::getLocalName() throw (uno::RuntimeException) uno::Reference< rdf::XMetadatable > SAL_CALL DocumentMetadataAccess::getElementByMetadataReference( const ::com::sun::star::beans::StringPair & i_rReference) -throw (uno::RuntimeException) +throw (uno::RuntimeException, std::exception) { const IXmlIdRegistry * pReg( m_pImpl->m_rXmlIdRegistrySupplier.GetXmlIdRegistry() ); @@ -861,7 +861,7 @@ throw (uno::RuntimeException) uno::Reference< rdf::XMetadatable > SAL_CALL DocumentMetadataAccess::getElementByURI( const uno::Reference< rdf::XURI > & i_xURI ) -throw (uno::RuntimeException, lang::IllegalArgumentException) +throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception) { if (!i_xURI.is()) { throw lang::IllegalArgumentException(OUString( @@ -887,7 +887,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException) uno::Sequence< uno::Reference< rdf::XURI > > SAL_CALL DocumentMetadataAccess::getMetadataGraphsWithType( const uno::Reference<rdf::XURI> & i_xType) -throw (uno::RuntimeException, lang::IllegalArgumentException) +throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception) { if (!i_xType.is()) { throw lang::IllegalArgumentException(OUString( @@ -910,7 +910,7 @@ uno::Reference<rdf::XURI> SAL_CALL DocumentMetadataAccess::addMetadataFile(const OUString & i_rFileName, const uno::Sequence < uno::Reference< rdf::XURI > > & i_rTypes) throw (uno::RuntimeException, lang::IllegalArgumentException, - container::ElementExistException) + container::ElementExistException, std::exception) { if (!isFileNameValid(i_rFileName)) { throw lang::IllegalArgumentException(OUString( @@ -956,7 +956,7 @@ DocumentMetadataAccess::importMetadataFile(::sal_Int16 i_Format, const uno::Sequence < uno::Reference< rdf::XURI > > & i_rTypes) throw (uno::RuntimeException, lang::IllegalArgumentException, datatransfer::UnsupportedFlavorException, - container::ElementExistException, rdf::ParseException, io::IOException) + container::ElementExistException, rdf::ParseException, io::IOException, std::exception) { if (!isFileNameValid(i_rFileName)) { throw lang::IllegalArgumentException(OUString( @@ -1000,7 +1000,7 @@ void SAL_CALL DocumentMetadataAccess::removeMetadataFile( const uno::Reference< rdf::XURI > & i_xGraphName) throw (uno::RuntimeException, lang::IllegalArgumentException, - container::NoSuchElementException) + container::NoSuchElementException, std::exception) { try { m_pImpl->m_xRepository->destroyGraph(i_xGraphName); @@ -1020,7 +1020,7 @@ void SAL_CALL DocumentMetadataAccess::addContentOrStylesFile( const OUString & i_rFileName) throw (uno::RuntimeException, lang::IllegalArgumentException, - container::ElementExistException) + container::ElementExistException, std::exception) { if (!isFileNameValid(i_rFileName)) { throw lang::IllegalArgumentException(OUString( @@ -1040,7 +1040,7 @@ void SAL_CALL DocumentMetadataAccess::removeContentOrStylesFile( const OUString & i_rFileName) throw (uno::RuntimeException, lang::IllegalArgumentException, - container::NoSuchElementException) + container::NoSuchElementException, std::exception) { if (!isFileNameValid(i_rFileName)) { throw lang::IllegalArgumentException(OUString( @@ -1082,7 +1082,7 @@ void SAL_CALL DocumentMetadataAccess::loadMetadataFromStorage( const uno::Reference<rdf::XURI> & i_xBaseURI, const uno::Reference<task::XInteractionHandler> & i_xHandler) throw (uno::RuntimeException, lang::IllegalArgumentException, - lang::WrappedTargetException) + lang::WrappedTargetException, std::exception) { if (!i_xStorage.is()) { throw lang::IllegalArgumentException(OUString( @@ -1193,7 +1193,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, void SAL_CALL DocumentMetadataAccess::storeMetadataToStorage( const uno::Reference< embed::XStorage > & i_xStorage) throw (uno::RuntimeException, lang::IllegalArgumentException, - lang::WrappedTargetException) + lang::WrappedTargetException, std::exception) { if (!i_xStorage.is()) { throw lang::IllegalArgumentException(OUString( @@ -1271,7 +1271,7 @@ void SAL_CALL DocumentMetadataAccess::loadMetadataFromMedium( const uno::Sequence< beans::PropertyValue > & i_rMedium) throw (uno::RuntimeException, lang::IllegalArgumentException, - lang::WrappedTargetException) + lang::WrappedTargetException, std::exception) { uno::Reference<io::XInputStream> xIn; utl::MediaDescriptor md(i_rMedium); @@ -1331,7 +1331,7 @@ void SAL_CALL DocumentMetadataAccess::storeMetadataToMedium( const uno::Sequence< beans::PropertyValue > & i_rMedium) throw (uno::RuntimeException, lang::IllegalArgumentException, - lang::WrappedTargetException) + lang::WrappedTargetException, std::exception) { utl::MediaDescriptor md(i_rMedium); OUString URL; diff --git a/sfx2/source/doc/Metadatable.cxx b/sfx2/source/doc/Metadatable.cxx index 67ac903e573b..3f44618b2d82 100644 --- a/sfx2/source/doc/Metadatable.cxx +++ b/sfx2/source/doc/Metadatable.cxx @@ -1579,14 +1579,14 @@ Metadatable::JoinMetadatable(Metadatable const & i_rOther, // ::com::sun::star::rdf::XNode: OUString SAL_CALL MetadatableMixin::getStringValue() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { return getNamespace() + getLocalName(); } // ::com::sun::star::rdf::XURI: OUString SAL_CALL MetadatableMixin::getLocalName() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; beans::StringPair mdref( getMetadataReference() ); @@ -1603,7 +1603,7 @@ OUString SAL_CALL MetadatableMixin::getLocalName() } OUString SAL_CALL MetadatableMixin::getNamespace() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const uno::Reference< frame::XModel > xModel( GetModel() ); @@ -1614,7 +1614,7 @@ OUString SAL_CALL MetadatableMixin::getNamespace() // ::com::sun::star::rdf::XMetadatable: beans::StringPair SAL_CALL MetadatableMixin::getMetadataReference() -throw (uno::RuntimeException) +throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1632,7 +1632,7 @@ throw (uno::RuntimeException) void SAL_CALL MetadatableMixin::setMetadataReference( const beans::StringPair & i_rReference) -throw (uno::RuntimeException, lang::IllegalArgumentException) +throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception) { SolarMutexGuard aGuard; @@ -1648,7 +1648,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException) } void SAL_CALL MetadatableMixin::ensureMetadataReference() -throw (uno::RuntimeException) +throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index 12c5d9f1b0a7..9a6c4b8c4317 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -134,156 +134,156 @@ public: // ::com::sun::star::lang::XServiceInfo: virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL supportsService( - const OUString & ServiceName) throw (css::uno::RuntimeException); + const OUString & ServiceName) throw (css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (css::uno::RuntimeException); + getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception); // ::com::sun::star::lang::XComponent: - virtual void SAL_CALL dispose() throw (css::uno::RuntimeException); + virtual void SAL_CALL dispose() throw (css::uno::RuntimeException, std::exception); // ::com::sun::star::document::XDocumentProperties: virtual OUString SAL_CALL getAuthor() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setAuthor(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getGenerator() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setGenerator(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::util::DateTime SAL_CALL getCreationDate() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setCreationDate(const css::util::DateTime & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getTitle() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setTitle(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getSubject() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setSubject(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getDescription() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setDescription(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL getKeywords() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setKeywords( const css::uno::Sequence< OUString > & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::lang::Locale SAL_CALL getLanguage() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setLanguage(const css::lang::Locale & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getModifiedBy() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setModifiedBy(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::util::DateTime SAL_CALL getModificationDate() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setModificationDate( const css::util::DateTime & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getPrintedBy() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setPrintedBy(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::util::DateTime SAL_CALL getPrintDate() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setPrintDate(const css::util::DateTime & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getTemplateName() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setTemplateName(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getTemplateURL() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setTemplateURL(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::util::DateTime SAL_CALL getTemplateDate() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setTemplateDate(const css::util::DateTime & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getAutoloadURL() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setAutoloadURL(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual ::sal_Int32 SAL_CALL getAutoloadSecs() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setAutoloadSecs(::sal_Int32 the_value) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException); + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception); virtual OUString SAL_CALL getDefaultTarget() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setDefaultTarget(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL - getDocumentStatistics() throw (css::uno::RuntimeException); + getDocumentStatistics() throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setDocumentStatistics( const css::uno::Sequence< css::beans::NamedValue > & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual ::sal_Int16 SAL_CALL getEditingCycles() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setEditingCycles(::sal_Int16 the_value) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException); + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception); virtual ::sal_Int32 SAL_CALL getEditingDuration() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setEditingDuration(::sal_Int32 the_value) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException); + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception); virtual void SAL_CALL resetUserData(const OUString & the_value) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::beans::XPropertyContainer > SAL_CALL - getUserDefinedProperties() throw (css::uno::RuntimeException); + getUserDefinedProperties() throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL loadFromStorage( const css::uno::Reference< css::embed::XStorage > & Storage, const css::uno::Sequence< css::beans::PropertyValue > & Medium) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::io::WrongFormatException, - css::lang::WrappedTargetException, css::io::IOException); + css::lang::WrappedTargetException, css::io::IOException, std::exception); virtual void SAL_CALL loadFromMedium(const OUString & URL, const css::uno::Sequence< css::beans::PropertyValue > & Medium) throw (css::uno::RuntimeException, css::io::WrongFormatException, - css::lang::WrappedTargetException, css::io::IOException); + css::lang::WrappedTargetException, css::io::IOException, std::exception); virtual void SAL_CALL storeToStorage( const css::uno::Reference< css::embed::XStorage > & Storage, const css::uno::Sequence< css::beans::PropertyValue > & Medium) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, - css::lang::WrappedTargetException, css::io::IOException); + css::lang::WrappedTargetException, css::io::IOException, std::exception); virtual void SAL_CALL storeToMedium(const OUString & URL, const css::uno::Sequence< css::beans::PropertyValue > & Medium) throw (css::uno::RuntimeException, - css::lang::WrappedTargetException, css::io::IOException); + css::lang::WrappedTargetException, css::io::IOException, std::exception); // ::com::sun::star::lang::XInitialization: virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any > & aArguments) - throw (css::uno::RuntimeException, css::uno::Exception); + throw (css::uno::RuntimeException, css::uno::Exception, std::exception); // ::com::sun::star::util::XCloneable: virtual css::uno::Reference<css::util::XCloneable> SAL_CALL createClone() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); // ::com::sun::star::util::XModifiable: virtual ::sal_Bool SAL_CALL isModified( ) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setModified( ::sal_Bool bModified ) - throw (css::beans::PropertyVetoException, css::uno::RuntimeException); + throw (css::beans::PropertyVetoException, css::uno::RuntimeException, std::exception); // ::com::sun::star::util::XModifyBroadcaster: virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener > & xListener) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL removeModifyListener( const css::uno::Reference< css::util::XModifyListener > & xListener) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); // ::com::sun::star::xml::sax::XSAXSerializable virtual void SAL_CALL serialize( const css::uno::Reference<css::xml::sax::XDocumentHandler>& i_xHandler, const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces) - throw (css::uno::RuntimeException, css::xml::sax::SAXException); + throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception); protected: SfxDocumentMetaData(SfxDocumentMetaData &); // not defined @@ -367,25 +367,25 @@ protected: public: CompatWriterDocPropsImpl( css::uno::Reference< css::uno::XComponentContext > const & context) : CompatWriterDocPropsImpl_BASE( context ) {} // XCompatWriterDocPropsImpl - virtual OUString SAL_CALL getManager() throw (::com::sun::star::uno::RuntimeException) { return msManager; } - virtual void SAL_CALL setManager( const OUString& _manager ) throw (::com::sun::star::uno::RuntimeException) { msManager = _manager; } - virtual OUString SAL_CALL getCategory() throw (::com::sun::star::uno::RuntimeException){ return msCategory; } - virtual void SAL_CALL setCategory( const OUString& _category ) throw (::com::sun::star::uno::RuntimeException){ msCategory = _category; } - virtual OUString SAL_CALL getCompany() throw (::com::sun::star::uno::RuntimeException){ return msCompany; } - virtual void SAL_CALL setCompany( const OUString& _company ) throw (::com::sun::star::uno::RuntimeException){ msCompany = _company; } + virtual OUString SAL_CALL getManager() throw (::com::sun::star::uno::RuntimeException, std::exception) { return msManager; } + virtual void SAL_CALL setManager( const OUString& _manager ) throw (::com::sun::star::uno::RuntimeException, std::exception) { msManager = _manager; } + virtual OUString SAL_CALL getCategory() throw (::com::sun::star::uno::RuntimeException, std::exception){ return msCategory; } + virtual void SAL_CALL setCategory( const OUString& _category ) throw (::com::sun::star::uno::RuntimeException, std::exception){ msCategory = _category; } + virtual OUString SAL_CALL getCompany() throw (::com::sun::star::uno::RuntimeException, std::exception){ return msCompany; } + virtual void SAL_CALL setCompany( const OUString& _company ) throw (::com::sun::star::uno::RuntimeException, std::exception){ msCompany = _company; } // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException) + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) { return OUString("CompatWriterDocPropsImpl"); } - virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException) + virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException) + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) { css::uno::Sequence< OUString > aServiceNames(1); aServiceNames[ 0 ] = "com.sun.star.writer.DocumentProperties"; @@ -1384,21 +1384,21 @@ SfxDocumentMetaData::SfxDocumentMetaData( // com.sun.star.uno.XServiceInfo: OUString SAL_CALL -SfxDocumentMetaData::getImplementationName() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getImplementationName() throw (css::uno::RuntimeException, std::exception) { return OUString("SfxDocumentMetaData"); } ::sal_Bool SAL_CALL SfxDocumentMetaData::supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } css::uno::Sequence< OUString > SAL_CALL SfxDocumentMetaData::getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { css::uno::Sequence< OUString > s(1); s[0] = "com.sun.star.document.DocumentProperties"; @@ -1407,7 +1407,7 @@ SfxDocumentMetaData::getSupportedServiceNames() // ::com::sun::star::lang::XComponent: -void SAL_CALL SfxDocumentMetaData::dispose() throw (css::uno::RuntimeException) +void SAL_CALL SfxDocumentMetaData::dispose() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); if (!m_isInitialized) { @@ -1427,21 +1427,21 @@ void SAL_CALL SfxDocumentMetaData::dispose() throw (css::uno::RuntimeException) // ::com::sun::star::document::XDocumentProperties: OUString SAL_CALL -SfxDocumentMetaData::getAuthor() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getAuthor() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return getMetaText("meta:initial-creator"); } void SAL_CALL SfxDocumentMetaData::setAuthor(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("meta:initial-creator", the_value); } OUString SAL_CALL -SfxDocumentMetaData::getGenerator() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getGenerator() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return getMetaText("meta:generator"); @@ -1449,13 +1449,13 @@ SfxDocumentMetaData::getGenerator() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setGenerator(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("meta:generator", the_value); } css::util::DateTime SAL_CALL -SfxDocumentMetaData::getCreationDate() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getCreationDate() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return textToDateTimeDefault(getMetaText("meta:creation-date")); @@ -1463,26 +1463,26 @@ SfxDocumentMetaData::getCreationDate() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setCreationDate(const css::util::DateTime & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("meta:creation-date", dateTimeToText(the_value)); } OUString SAL_CALL -SfxDocumentMetaData::getTitle() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getTitle() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return getMetaText("dc:title"); } void SAL_CALL SfxDocumentMetaData::setTitle(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("dc:title", the_value); } OUString SAL_CALL -SfxDocumentMetaData::getSubject() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getSubject() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return getMetaText("dc:subject"); @@ -1490,13 +1490,13 @@ SfxDocumentMetaData::getSubject() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setSubject(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("dc:subject", the_value); } OUString SAL_CALL -SfxDocumentMetaData::getDescription() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getDescription() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return getMetaText("dc:description"); @@ -1504,13 +1504,13 @@ SfxDocumentMetaData::getDescription() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setDescription(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("dc:description", the_value); } css::uno::Sequence< OUString > -SAL_CALL SfxDocumentMetaData::getKeywords() throw (css::uno::RuntimeException) +SAL_CALL SfxDocumentMetaData::getKeywords() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return getMetaList("meta:keyword"); @@ -1519,7 +1519,7 @@ SAL_CALL SfxDocumentMetaData::getKeywords() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setKeywords( const css::uno::Sequence< OUString > & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::ClearableMutexGuard g(m_aMutex); if (setMetaList("meta:keyword", the_value)) { @@ -1529,7 +1529,7 @@ SfxDocumentMetaData::setKeywords( } css::lang::Locale SAL_CALL - SfxDocumentMetaData::getLanguage() throw (css::uno::RuntimeException) + SfxDocumentMetaData::getLanguage() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); css::lang::Locale loc( LanguageTag( getMetaText("dc:language")).getLocale( false)); @@ -1538,14 +1538,14 @@ css::lang::Locale SAL_CALL void SAL_CALL SfxDocumentMetaData::setLanguage(const css::lang::Locale & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { OUString text( LanguageTag::convertToBcp47( the_value, false)); setMetaTextAndNotify("dc:language", text); } OUString SAL_CALL -SfxDocumentMetaData::getModifiedBy() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getModifiedBy() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return getMetaText("dc:creator"); @@ -1553,13 +1553,13 @@ SfxDocumentMetaData::getModifiedBy() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setModifiedBy(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("dc:creator", the_value); } css::util::DateTime SAL_CALL -SfxDocumentMetaData::getModificationDate() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getModificationDate() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return textToDateTimeDefault(getMetaText("dc:date")); @@ -1567,13 +1567,13 @@ SfxDocumentMetaData::getModificationDate() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setModificationDate(const css::util::DateTime & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("dc:date", dateTimeToText(the_value)); } OUString SAL_CALL -SfxDocumentMetaData::getPrintedBy() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getPrintedBy() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return getMetaText("meta:printed-by"); @@ -1581,13 +1581,13 @@ SfxDocumentMetaData::getPrintedBy() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setPrintedBy(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("meta:printed-by", the_value); } css::util::DateTime SAL_CALL -SfxDocumentMetaData::getPrintDate() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getPrintDate() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return textToDateTimeDefault(getMetaText("meta:print-date")); @@ -1595,13 +1595,13 @@ SfxDocumentMetaData::getPrintDate() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setPrintDate(const css::util::DateTime & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { setMetaTextAndNotify("meta:print-date", dateTimeToText(the_value)); } OUString SAL_CALL -SfxDocumentMetaData::getTemplateName() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getTemplateName() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -1610,7 +1610,7 @@ SfxDocumentMetaData::getTemplateName() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setTemplateName(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::ClearableMutexGuard g(m_aMutex); checkInit(); @@ -1622,7 +1622,7 @@ SfxDocumentMetaData::setTemplateName(const OUString & the_value) } OUString SAL_CALL -SfxDocumentMetaData::getTemplateURL() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getTemplateURL() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -1631,7 +1631,7 @@ SfxDocumentMetaData::getTemplateURL() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setTemplateURL(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::ClearableMutexGuard g(m_aMutex); checkInit(); @@ -1643,7 +1643,7 @@ SfxDocumentMetaData::setTemplateURL(const OUString & the_value) } css::util::DateTime SAL_CALL -SfxDocumentMetaData::getTemplateDate() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getTemplateDate() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -1652,7 +1652,7 @@ SfxDocumentMetaData::getTemplateDate() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setTemplateDate(const css::util::DateTime & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::ClearableMutexGuard g(m_aMutex); checkInit(); @@ -1664,7 +1664,7 @@ SfxDocumentMetaData::setTemplateDate(const css::util::DateTime & the_value) } OUString SAL_CALL -SfxDocumentMetaData::getAutoloadURL() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getAutoloadURL() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -1673,7 +1673,7 @@ SfxDocumentMetaData::getAutoloadURL() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setAutoloadURL(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::ClearableMutexGuard g(m_aMutex); checkInit(); @@ -1685,7 +1685,7 @@ SfxDocumentMetaData::setAutoloadURL(const OUString & the_value) } ::sal_Int32 SAL_CALL -SfxDocumentMetaData::getAutoloadSecs() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getAutoloadSecs() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -1694,7 +1694,7 @@ SfxDocumentMetaData::getAutoloadSecs() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setAutoloadSecs(::sal_Int32 the_value) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException) + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) { if (the_value < 0) throw css::lang::IllegalArgumentException( OUString("SfxDocumentMetaData::setAutoloadSecs: argument is negative"), @@ -1709,7 +1709,7 @@ SfxDocumentMetaData::setAutoloadSecs(::sal_Int32 the_value) } OUString SAL_CALL -SfxDocumentMetaData::getDefaultTarget() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getDefaultTarget() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -1718,7 +1718,7 @@ SfxDocumentMetaData::getDefaultTarget() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setDefaultTarget(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::ClearableMutexGuard g(m_aMutex); checkInit(); @@ -1730,7 +1730,7 @@ SfxDocumentMetaData::setDefaultTarget(const OUString & the_value) } css::uno::Sequence< css::beans::NamedValue > SAL_CALL -SfxDocumentMetaData::getDocumentStatistics() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getDocumentStatistics() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -1760,7 +1760,7 @@ SfxDocumentMetaData::getDocumentStatistics() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setDocumentStatistics( const css::uno::Sequence< css::beans::NamedValue > & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::ClearableMutexGuard g(m_aMutex); checkInit(); @@ -1792,7 +1792,7 @@ SfxDocumentMetaData::setDocumentStatistics( } ::sal_Int16 SAL_CALL -SfxDocumentMetaData::getEditingCycles() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getEditingCycles() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); OUString text = getMetaText("meta:editing-cycles"); @@ -1807,7 +1807,7 @@ SfxDocumentMetaData::getEditingCycles() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setEditingCycles(::sal_Int16 the_value) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException) + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) { if (the_value < 0) throw css::lang::IllegalArgumentException( OUString("SfxDocumentMetaData::setEditingCycles: argument is negative"), @@ -1818,7 +1818,7 @@ SfxDocumentMetaData::setEditingCycles(::sal_Int16 the_value) } ::sal_Int32 SAL_CALL -SfxDocumentMetaData::getEditingDuration() throw (css::uno::RuntimeException) +SfxDocumentMetaData::getEditingDuration() throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); return textToDuration(getMetaText("meta:editing-duration")); @@ -1826,7 +1826,7 @@ SfxDocumentMetaData::getEditingDuration() throw (css::uno::RuntimeException) void SAL_CALL SfxDocumentMetaData::setEditingDuration(::sal_Int32 the_value) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException) + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) { if (the_value < 0) throw css::lang::IllegalArgumentException( OUString("SfxDocumentMetaData::setEditingDuration: argument is negative"), @@ -1836,7 +1836,7 @@ SfxDocumentMetaData::setEditingDuration(::sal_Int32 the_value) void SAL_CALL SfxDocumentMetaData::resetUserData(const OUString & the_value) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::ClearableMutexGuard g(m_aMutex); @@ -1864,7 +1864,7 @@ SfxDocumentMetaData::resetUserData(const OUString & the_value) css::uno::Reference< css::beans::XPropertyContainer > SAL_CALL SfxDocumentMetaData::getUserDefinedProperties() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -1879,7 +1879,7 @@ SfxDocumentMetaData::loadFromStorage( const css::uno::Sequence< css::beans::PropertyValue > & Medium) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::io::WrongFormatException, - css::lang::WrappedTargetException, css::io::IOException) + css::lang::WrappedTargetException, css::io::IOException, std::exception) { if (!xStorage.is()) throw css::lang::IllegalArgumentException( OUString("SfxDocumentMetaData::loadFromStorage: argument is null"), *this, 0); @@ -1949,7 +1949,7 @@ SfxDocumentMetaData::storeToStorage( const css::uno::Reference< css::embed::XStorage > & xStorage, const css::uno::Sequence< css::beans::PropertyValue > & Medium) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, - css::lang::WrappedTargetException, css::io::IOException) + css::lang::WrappedTargetException, css::io::IOException, std::exception) { if (!xStorage.is()) throw css::lang::IllegalArgumentException( OUString("SfxDocumentMetaData::storeToStorage:" @@ -2023,7 +2023,7 @@ void SAL_CALL SfxDocumentMetaData::loadFromMedium(const OUString & URL, const css::uno::Sequence< css::beans::PropertyValue > & Medium) throw (css::uno::RuntimeException, css::io::WrongFormatException, - css::lang::WrappedTargetException, css::io::IOException) + css::lang::WrappedTargetException, css::io::IOException, std::exception) { css::uno::Reference<css::io::XInputStream> xIn; utl::MediaDescriptor md(Medium); @@ -2065,7 +2065,7 @@ void SAL_CALL SfxDocumentMetaData::storeToMedium(const OUString & URL, const css::uno::Sequence< css::beans::PropertyValue > & Medium) throw (css::uno::RuntimeException, - css::lang::WrappedTargetException, css::io::IOException) + css::lang::WrappedTargetException, css::io::IOException, std::exception) { utl::MediaDescriptor md(Medium); if (!URL.isEmpty()) { @@ -2114,7 +2114,7 @@ SfxDocumentMetaData::storeToMedium(const OUString & URL, void SAL_CALL SfxDocumentMetaData::initialize( const css::uno::Sequence< ::com::sun::star::uno::Any > & aArguments) - throw (css::uno::RuntimeException, css::uno::Exception) + throw (css::uno::RuntimeException, css::uno::Exception, std::exception) { // possible arguments: // - no argument: default initialization (empty DOM) @@ -2152,7 +2152,7 @@ SfxDocumentMetaData::initialize( // ::com::sun::star::util::XCloneable: css::uno::Reference<css::util::XCloneable> SAL_CALL SfxDocumentMetaData::createClone() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -2183,7 +2183,7 @@ SfxDocumentMetaData::createClone() // ::com::sun::star::util::XModifiable: ::sal_Bool SAL_CALL SfxDocumentMetaData::isModified( ) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -2193,7 +2193,7 @@ SfxDocumentMetaData::createClone() } void SAL_CALL SfxDocumentMetaData::setModified( ::sal_Bool bModified ) - throw (css::beans::PropertyVetoException, css::uno::RuntimeException) + throw (css::beans::PropertyVetoException, css::uno::RuntimeException, std::exception) { css::uno::Reference<css::util::XModifiable> xMB; { // do not lock mutex while notifying (#i93514#) to prevent deadlock @@ -2231,7 +2231,7 @@ void SAL_CALL SfxDocumentMetaData::setModified( ::sal_Bool bModified ) // ::com::sun::star::util::XModifyBroadcaster: void SAL_CALL SfxDocumentMetaData::addModifyListener( const css::uno::Reference< css::util::XModifyListener > & xListener) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -2245,7 +2245,7 @@ void SAL_CALL SfxDocumentMetaData::addModifyListener( void SAL_CALL SfxDocumentMetaData::removeModifyListener( const css::uno::Reference< css::util::XModifyListener > & xListener) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); @@ -2261,7 +2261,7 @@ void SAL_CALL SfxDocumentMetaData::removeModifyListener( void SAL_CALL SfxDocumentMetaData::serialize( const css::uno::Reference<css::xml::sax::XDocumentHandler>& i_xHandler, const css::uno::Sequence< css::beans::StringPair >& i_rNamespaces) - throw (css::uno::RuntimeException, css::xml::sax::SAXException) + throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception) { ::osl::MutexGuard g(m_aMutex); checkInit(); diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 45c6e3cc0cd7..786ed55b6b70 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -174,7 +174,7 @@ class SfxMediumHandler_Impl : public ::cppu::WeakImplHelper1< com::sun::star::ta public: virtual void SAL_CALL handle( const com::sun::star::uno::Reference< com::sun::star::task::XInteractionRequest >& xRequest ) - throw( com::sun::star::uno::RuntimeException ); + throw( com::sun::star::uno::RuntimeException, std::exception ); SfxMediumHandler_Impl( com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > xInteraction ) : m_xInter( xInteraction ) @@ -190,7 +190,7 @@ SfxMediumHandler_Impl::~SfxMediumHandler_Impl() void SAL_CALL SfxMediumHandler_Impl::handle( const com::sun::star::uno::Reference< com::sun::star::task::XInteractionRequest >& xRequest ) - throw( com::sun::star::uno::RuntimeException ) + throw( com::sun::star::uno::RuntimeException, std::exception ) { if( !m_xInter.is() ) return; diff --git a/sfx2/source/doc/docstoragemodifylistener.cxx b/sfx2/source/doc/docstoragemodifylistener.cxx index a76a5e2923d7..c632159a9a28 100644 --- a/sfx2/source/doc/docstoragemodifylistener.cxx +++ b/sfx2/source/doc/docstoragemodifylistener.cxx @@ -59,7 +59,7 @@ namespace sfx2 } - void SAL_CALL DocumentStorageModifyListener::modified( const EventObject& /*aEvent*/ ) throw (RuntimeException) + void SAL_CALL DocumentStorageModifyListener::modified( const EventObject& /*aEvent*/ ) throw (RuntimeException, std::exception) { ::osl::Guard< comphelper::SolarMutex > aGuard( m_rMutex ); // storageIsModified must not contain any locking! @@ -68,7 +68,7 @@ namespace sfx2 } - void SAL_CALL DocumentStorageModifyListener::disposing( const EventObject& /*Source*/ ) throw (RuntimeException) + void SAL_CALL DocumentStorageModifyListener::disposing( const EventObject& /*Source*/ ) throw (RuntimeException, std::exception) { // not interested in. In particular, we do *not* dispose ourself when a storage we're // listening at is disposed. The reason here is that this listener instance is *reused* diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 0a051139bb95..3c500c129e33 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -172,10 +172,10 @@ public: : m_xInteractionHandler( rxInteractionHandler ) {} - virtual uno::Reference<task::XInteractionHandler> SAL_CALL getInteractionHandler() throw (uno::RuntimeException) + virtual uno::Reference<task::XInteractionHandler> SAL_CALL getInteractionHandler() throw (uno::RuntimeException, std::exception) { return m_xInteractionHandler; } - virtual uno::Reference<ucb::XProgressHandler> SAL_CALL getProgressHandler() throw (uno::RuntimeException) + virtual uno::Reference<ucb::XProgressHandler> SAL_CALL getProgressHandler() throw (uno::RuntimeException, std::exception) { return m_xProgressHandler; } }; @@ -2224,19 +2224,19 @@ public: ~SfxDocTplService(); virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return OUString("com.sun.star.comp.sfx2.DocumentTemplates"); } virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { css::uno::Sequence< OUString > aSeq(1); aSeq[0] = OUString("com.sun.star.frame.DocumentTemplates"); @@ -2245,27 +2245,27 @@ public: // --- XLocalizable --- - void SAL_CALL setLocale( const css::lang::Locale & eLocale ) throw( css::uno::RuntimeException ); - css::lang::Locale SAL_CALL getLocale() throw( css::uno::RuntimeException ); + void SAL_CALL setLocale( const css::lang::Locale & eLocale ) throw( css::uno::RuntimeException, std::exception ); + css::lang::Locale SAL_CALL getLocale() throw( css::uno::RuntimeException, std::exception ); // --- XDocumentTemplates --- - css::uno::Reference< css::ucb::XContent > SAL_CALL getContent() throw( css::uno::RuntimeException ); + css::uno::Reference< css::ucb::XContent > SAL_CALL getContent() throw( css::uno::RuntimeException, std::exception ); sal_Bool SAL_CALL storeTemplate( const OUString& GroupName, const OUString& TemplateName, - const css::uno::Reference< css::frame::XStorable >& Storable ) throw( css::uno::RuntimeException ); + const css::uno::Reference< css::frame::XStorable >& Storable ) throw( css::uno::RuntimeException, std::exception ); sal_Bool SAL_CALL addTemplate( const OUString& GroupName, const OUString& TemplateName, - const OUString& SourceURL ) throw( css::uno::RuntimeException ); + const OUString& SourceURL ) throw( css::uno::RuntimeException, std::exception ); sal_Bool SAL_CALL removeTemplate( const OUString& GroupName, - const OUString& TemplateName ) throw( css::uno::RuntimeException ); + const OUString& TemplateName ) throw( css::uno::RuntimeException, std::exception ); sal_Bool SAL_CALL renameTemplate( const OUString& GroupName, const OUString& OldTemplateName, - const OUString& NewTemplateName ) throw( css::uno::RuntimeException ); - sal_Bool SAL_CALL addGroup( const OUString& GroupName ) throw( css::uno::RuntimeException ); - sal_Bool SAL_CALL removeGroup( const OUString& GroupName ) throw( css::uno::RuntimeException ); + const OUString& NewTemplateName ) throw( css::uno::RuntimeException, std::exception ); + sal_Bool SAL_CALL addGroup( const OUString& GroupName ) throw( css::uno::RuntimeException, std::exception ); + sal_Bool SAL_CALL removeGroup( const OUString& GroupName ) throw( css::uno::RuntimeException, std::exception ); sal_Bool SAL_CALL renameGroup( const OUString& OldGroupName, - const OUString& NewGroupName ) throw( css::uno::RuntimeException ); - void SAL_CALL update() throw( css::uno::RuntimeException ); + const OUString& NewGroupName ) throw( css::uno::RuntimeException, std::exception ); + void SAL_CALL update() throw( css::uno::RuntimeException, std::exception ); }; @@ -2286,7 +2286,7 @@ SfxDocTplService::~SfxDocTplService() Locale SAL_CALL SfxDocTplService::getLocale() - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { return pImp->getLocale(); } @@ -2294,7 +2294,7 @@ Locale SAL_CALL SfxDocTplService::getLocale() void SAL_CALL SfxDocTplService::setLocale( const Locale & rLocale ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { pImp->setLocale( rLocale ); } @@ -2303,7 +2303,7 @@ void SAL_CALL SfxDocTplService::setLocale( const Locale & rLocale ) //--- XDocumentTemplates --- uno::Reference< ucb::XContent > SAL_CALL SfxDocTplService::getContent() - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( pImp->init() ) return pImp->getContent().get(); @@ -2315,7 +2315,7 @@ uno::Reference< ucb::XContent > SAL_CALL SfxDocTplService::getContent() sal_Bool SAL_CALL SfxDocTplService::storeTemplate( const OUString& GroupName, const OUString& TemplateName, const uno::Reference< frame::XStorable >& Storable ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( pImp->init() ) return pImp->storeTemplate( GroupName, TemplateName, Storable ); @@ -2327,7 +2327,7 @@ sal_Bool SAL_CALL SfxDocTplService::storeTemplate( const OUString& GroupName, sal_Bool SAL_CALL SfxDocTplService::addTemplate( const OUString& rGroupName, const OUString& rTemplateName, const OUString& rSourceURL ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( pImp->init() ) return pImp->addTemplate( rGroupName, rTemplateName, rSourceURL ); @@ -2338,7 +2338,7 @@ sal_Bool SAL_CALL SfxDocTplService::addTemplate( const OUString& rGroupName, sal_Bool SAL_CALL SfxDocTplService::removeTemplate( const OUString& rGroupName, const OUString& rTemplateName ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( pImp->init() ) return pImp->removeTemplate( rGroupName, rTemplateName ); @@ -2350,7 +2350,7 @@ sal_Bool SAL_CALL SfxDocTplService::removeTemplate( const OUString& rGroupName, sal_Bool SAL_CALL SfxDocTplService::renameTemplate( const OUString& rGroupName, const OUString& rOldName, const OUString& rNewName ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( rOldName == rNewName ) return sal_True; @@ -2363,7 +2363,7 @@ sal_Bool SAL_CALL SfxDocTplService::renameTemplate( const OUString& rGroupName, sal_Bool SAL_CALL SfxDocTplService::addGroup( const OUString& rGroupName ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( pImp->init() ) return pImp->addGroup( rGroupName ); @@ -2373,7 +2373,7 @@ sal_Bool SAL_CALL SfxDocTplService::addGroup( const OUString& rGroupName ) sal_Bool SAL_CALL SfxDocTplService::removeGroup( const OUString& rGroupName ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( pImp->init() ) return pImp->removeGroup( rGroupName ); @@ -2384,7 +2384,7 @@ sal_Bool SAL_CALL SfxDocTplService::removeGroup( const OUString& rGroupName ) sal_Bool SAL_CALL SfxDocTplService::renameGroup( const OUString& rOldName, const OUString& rNewName ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( rOldName == rNewName ) return sal_True; @@ -2397,7 +2397,7 @@ sal_Bool SAL_CALL SfxDocTplService::renameGroup( const OUString& rOldName, void SAL_CALL SfxDocTplService::update() - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { if ( pImp->init() ) pImp->update( sal_True ); diff --git a/sfx2/source/doc/doctemplateslocal.cxx b/sfx2/source/doc/doctemplateslocal.cxx index 8faa07de09bb..ce1e7e16ae34 100644 --- a/sfx2/source/doc/doctemplateslocal.cxx +++ b/sfx2/source/doc/doctemplateslocal.cxx @@ -135,19 +135,19 @@ uno::Sequence< beans::StringPair > DocTemplLocaleHelper::GetParsingResult() void SAL_CALL DocTemplLocaleHelper::startDocument() - throw(xml::sax::SAXException, uno::RuntimeException) + throw(xml::sax::SAXException, uno::RuntimeException, std::exception) { } void SAL_CALL DocTemplLocaleHelper::endDocument() - throw(xml::sax::SAXException, uno::RuntimeException) + throw(xml::sax::SAXException, uno::RuntimeException, std::exception) { } void SAL_CALL DocTemplLocaleHelper::startElement( const OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs ) - throw( xml::sax::SAXException, uno::RuntimeException ) + throw( xml::sax::SAXException, uno::RuntimeException, std::exception ) { if ( aName == m_aGroupListElement ) { @@ -199,7 +199,7 @@ void SAL_CALL DocTemplLocaleHelper::startElement( const OUString& aName, const u void SAL_CALL DocTemplLocaleHelper::endElement( const OUString& aName ) - throw( xml::sax::SAXException, uno::RuntimeException ) + throw( xml::sax::SAXException, uno::RuntimeException, std::exception ) { sal_Int32 nLength = m_aElementsSeq.getLength(); if ( nLength <= 0 ) @@ -213,25 +213,25 @@ void SAL_CALL DocTemplLocaleHelper::endElement( const OUString& aName ) void SAL_CALL DocTemplLocaleHelper::characters( const OUString& /*aChars*/ ) - throw(xml::sax::SAXException, uno::RuntimeException) + throw(xml::sax::SAXException, uno::RuntimeException, std::exception) { } void SAL_CALL DocTemplLocaleHelper::ignorableWhitespace( const OUString& /*aWhitespaces*/ ) - throw(xml::sax::SAXException, uno::RuntimeException) + throw(xml::sax::SAXException, uno::RuntimeException, std::exception) { } void SAL_CALL DocTemplLocaleHelper::processingInstruction( const OUString& /*aTarget*/, const OUString& /*aData*/ ) - throw(xml::sax::SAXException, uno::RuntimeException) + throw(xml::sax::SAXException, uno::RuntimeException, std::exception) { } void SAL_CALL DocTemplLocaleHelper::setDocumentLocator( const uno::Reference< xml::sax::XLocator >& /*xLocator*/ ) - throw(xml::sax::SAXException, uno::RuntimeException) + throw(xml::sax::SAXException, uno::RuntimeException, std::exception) { } diff --git a/sfx2/source/doc/doctemplateslocal.hxx b/sfx2/source/doc/doctemplateslocal.hxx index b52475180948..5508477b35bf 100644 --- a/sfx2/source/doc/doctemplateslocal.hxx +++ b/sfx2/source/doc/doctemplateslocal.hxx @@ -64,14 +64,14 @@ public: throw( ::com::sun::star::uno::Exception ); // XDocumentHandler - virtual void SAL_CALL startDocument() throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL endDocument() throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL startElement( const OUString& aName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttribs ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL endElement( const OUString& aName ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL characters( const OUString& aChars ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL processingInstruction( const OUString& aTarget, const OUString& aData ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setDocumentLocator( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator >& xLocator ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL startDocument() throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL endDocument() throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL startElement( const OUString& aName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttribs ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL endElement( const OUString& aName ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL characters( const OUString& aChars ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL ignorableWhitespace( const OUString& aWhitespaces ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL processingInstruction( const OUString& aTarget, const OUString& aData ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL setDocumentLocator( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator >& xLocator ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception); }; #endif diff --git a/sfx2/source/doc/docundomanager.cxx b/sfx2/source/doc/docundomanager.cxx index b8e85653ee5d..2c57d3e05b4e 100644 --- a/sfx2/source/doc/docundomanager.cxx +++ b/sfx2/source/doc/docundomanager.cxx @@ -265,7 +265,7 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::enterUndoContext( const OUString& i_title ) throw (RuntimeException) + void SAL_CALL DocumentUndoManager::enterUndoContext( const OUString& i_title ) throw (RuntimeException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -275,7 +275,7 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::enterHiddenUndoContext( ) throw (EmptyUndoStackException, RuntimeException) + void SAL_CALL DocumentUndoManager::enterHiddenUndoContext( ) throw (EmptyUndoStackException, RuntimeException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -285,7 +285,7 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::leaveUndoContext( ) throw (InvalidStateException, RuntimeException) + void SAL_CALL DocumentUndoManager::leaveUndoContext( ) throw (InvalidStateException, RuntimeException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -295,7 +295,7 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::addUndoAction( const Reference< XUndoAction >& i_action ) throw (RuntimeException, IllegalArgumentException) + void SAL_CALL DocumentUndoManager::addUndoAction( const Reference< XUndoAction >& i_action ) throw (RuntimeException, IllegalArgumentException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -305,7 +305,7 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::undo( ) throw (EmptyUndoStackException, UndoContextNotClosedException, UndoFailedException, RuntimeException) + void SAL_CALL DocumentUndoManager::undo( ) throw (EmptyUndoStackException, UndoContextNotClosedException, UndoFailedException, RuntimeException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -315,7 +315,7 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::redo( ) throw (EmptyUndoStackException, UndoContextNotClosedException, UndoFailedException, RuntimeException) + void SAL_CALL DocumentUndoManager::redo( ) throw (EmptyUndoStackException, UndoContextNotClosedException, UndoFailedException, RuntimeException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -325,49 +325,49 @@ namespace sfx2 } - ::sal_Bool SAL_CALL DocumentUndoManager::isUndoPossible( ) throw (RuntimeException) + ::sal_Bool SAL_CALL DocumentUndoManager::isUndoPossible( ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.isUndoPossible(); } - ::sal_Bool SAL_CALL DocumentUndoManager::isRedoPossible( ) throw (RuntimeException) + ::sal_Bool SAL_CALL DocumentUndoManager::isRedoPossible( ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.isRedoPossible(); } - OUString SAL_CALL DocumentUndoManager::getCurrentUndoActionTitle( ) throw (EmptyUndoStackException, RuntimeException) + OUString SAL_CALL DocumentUndoManager::getCurrentUndoActionTitle( ) throw (EmptyUndoStackException, RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.getCurrentUndoActionTitle(); } - OUString SAL_CALL DocumentUndoManager::getCurrentRedoActionTitle( ) throw (EmptyUndoStackException, RuntimeException) + OUString SAL_CALL DocumentUndoManager::getCurrentRedoActionTitle( ) throw (EmptyUndoStackException, RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.getCurrentRedoActionTitle(); } - Sequence< OUString > SAL_CALL DocumentUndoManager::getAllUndoActionTitles( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL DocumentUndoManager::getAllUndoActionTitles( ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.getAllUndoActionTitles(); } - Sequence< OUString > SAL_CALL DocumentUndoManager::getAllRedoActionTitles( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL DocumentUndoManager::getAllRedoActionTitles( ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.getAllRedoActionTitles(); } - void SAL_CALL DocumentUndoManager::clear( ) throw (UndoContextNotClosedException, RuntimeException) + void SAL_CALL DocumentUndoManager::clear( ) throw (UndoContextNotClosedException, RuntimeException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -377,7 +377,7 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::clearRedo( ) throw (UndoContextNotClosedException, RuntimeException) + void SAL_CALL DocumentUndoManager::clearRedo( ) throw (UndoContextNotClosedException, RuntimeException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -387,7 +387,7 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::reset() throw (RuntimeException) + void SAL_CALL DocumentUndoManager::reset() throw (RuntimeException, std::exception) { // SYNCHRONIZED ---> UndoManagerGuard aGuard( *this ); @@ -397,49 +397,49 @@ namespace sfx2 } - void SAL_CALL DocumentUndoManager::lock( ) throw (RuntimeException) + void SAL_CALL DocumentUndoManager::lock( ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); m_pImpl->aUndoHelper.lock(); } - void SAL_CALL DocumentUndoManager::unlock( ) throw (RuntimeException, NotLockedException) + void SAL_CALL DocumentUndoManager::unlock( ) throw (RuntimeException, NotLockedException, std::exception) { UndoManagerGuard aGuard( *this ); m_pImpl->aUndoHelper.unlock(); } - ::sal_Bool SAL_CALL DocumentUndoManager::isLocked( ) throw (RuntimeException) + ::sal_Bool SAL_CALL DocumentUndoManager::isLocked( ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.isLocked(); } - void SAL_CALL DocumentUndoManager::addUndoManagerListener( const Reference< XUndoManagerListener >& i_listener ) throw (RuntimeException) + void SAL_CALL DocumentUndoManager::addUndoManagerListener( const Reference< XUndoManagerListener >& i_listener ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.addUndoManagerListener( i_listener ); } - void SAL_CALL DocumentUndoManager::removeUndoManagerListener( const Reference< XUndoManagerListener >& i_listener ) throw (RuntimeException) + void SAL_CALL DocumentUndoManager::removeUndoManagerListener( const Reference< XUndoManagerListener >& i_listener ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return m_pImpl->aUndoHelper.removeUndoManagerListener( i_listener ); } - Reference< XInterface > SAL_CALL DocumentUndoManager::getParent( ) throw (RuntimeException) + Reference< XInterface > SAL_CALL DocumentUndoManager::getParent( ) throw (RuntimeException, std::exception) { UndoManagerGuard aGuard( *this ); return static_cast< XModel* >( &getBaseModel() ); } - void SAL_CALL DocumentUndoManager::setParent( const Reference< XInterface >& i_parent ) throw (NoSupportException, RuntimeException) + void SAL_CALL DocumentUndoManager::setParent( const Reference< XInterface >& i_parent ) throw (NoSupportException, RuntimeException, std::exception) { (void)i_parent; throw NoSupportException( OUString(), m_pImpl->getThis() ); diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx index 9e41641e68ec..03941276ba14 100644 --- a/sfx2/source/doc/iframe.cxx +++ b/sfx2/source/doc/iframe.cxx @@ -68,19 +68,19 @@ public: ~IFrameObject(); virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return OUString("com.sun.star.comp.sfx2.IFrameObject"); } virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { css::uno::Sequence< OUString > aSeq(1); aSeq[0] = OUString("com.sun.star.frame.SpecialEmbeddedObject"); @@ -88,21 +88,21 @@ public: } virtual sal_Bool SAL_CALL load( const css::uno::Sequence < css::beans::PropertyValue >& lDescriptor, - const css::uno::Reference < css::frame::XFrame >& xFrame ) throw( css::uno::RuntimeException ); - virtual void SAL_CALL cancel() throw( css::uno::RuntimeException ); - virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) throw( css::util::CloseVetoException, css::uno::RuntimeException ); - virtual void SAL_CALL addCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException ); - virtual void SAL_CALL removeCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException ); - virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw (css::uno::RuntimeException) ; - virtual void SAL_CALL setTitle( const OUString& aTitle ) throw (css::uno::RuntimeException); - virtual ::sal_Int16 SAL_CALL execute( ) throw (css::uno::RuntimeException); - virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw( css::uno::RuntimeException ); - virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException ); - virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException ); - virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException ); - virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException ); - 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); - virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException); + const css::uno::Reference < css::frame::XFrame >& xFrame ) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL cancel() throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) throw( css::util::CloseVetoException, css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL addCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL removeCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw (css::uno::RuntimeException, std::exception) ; + virtual void SAL_CALL setTitle( const OUString& aTitle ) throw (css::uno::RuntimeException, std::exception); + virtual ::sal_Int16 SAL_CALL execute( ) throw (css::uno::RuntimeException, std::exception); + virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ); + 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); + virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); }; class IFrameWindow_Impl : public Window @@ -173,7 +173,7 @@ IFrameObject::~IFrameObject() sal_Bool SAL_CALL IFrameObject::load( const uno::Sequence < com::sun::star::beans::PropertyValue >& /*lDescriptor*/, const uno::Reference < frame::XFrame >& xFrame ) -throw( uno::RuntimeException ) +throw( uno::RuntimeException, std::exception ) { if ( SvtMiscOptions().IsPluginsEnabled() ) { @@ -219,7 +219,7 @@ throw( uno::RuntimeException ) return sal_False; } -void SAL_CALL IFrameObject::cancel() throw( com::sun::star::uno::RuntimeException ) +void SAL_CALL IFrameObject::cancel() throw( com::sun::star::uno::RuntimeException, std::exception ) { try { @@ -233,31 +233,31 @@ void SAL_CALL IFrameObject::cancel() throw( com::sun::star::uno::RuntimeExceptio } } -void SAL_CALL IFrameObject::close( sal_Bool /*bDeliverOwnership*/ ) throw( com::sun::star::util::CloseVetoException, com::sun::star::uno::RuntimeException ) +void SAL_CALL IFrameObject::close( sal_Bool /*bDeliverOwnership*/ ) throw( com::sun::star::util::CloseVetoException, com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL IFrameObject::addCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& ) throw( com::sun::star::uno::RuntimeException ) +void SAL_CALL IFrameObject::addCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& ) throw( com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL IFrameObject::removeCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& ) throw( com::sun::star::uno::RuntimeException ) +void SAL_CALL IFrameObject::removeCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& ) throw( com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL IFrameObject::disposing( const com::sun::star::lang::EventObject& ) throw (com::sun::star::uno::RuntimeException) +void SAL_CALL IFrameObject::disposing( const com::sun::star::lang::EventObject& ) throw (com::sun::star::uno::RuntimeException, std::exception) { cancel(); } -uno::Reference< beans::XPropertySetInfo > SAL_CALL IFrameObject::getPropertySetInfo() throw( ::com::sun::star::uno::RuntimeException ) +uno::Reference< beans::XPropertySetInfo > SAL_CALL IFrameObject::getPropertySetInfo() throw( ::com::sun::star::uno::RuntimeException, std::exception ) { static uno::Reference< beans::XPropertySetInfo > xInfo = new SfxItemPropertySetInfo( maPropMap ); return xInfo; } void SAL_CALL IFrameObject::setPropertyValue(const OUString& aPropertyName, const uno::Any& aAny) - throw ( beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) + throw ( beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName ); if( !pEntry ) @@ -338,7 +338,7 @@ void SAL_CALL IFrameObject::setPropertyValue(const OUString& aPropertyName, cons } uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName) - throw ( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) + throw ( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName ); if( !pEntry ) @@ -394,23 +394,23 @@ uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName) return aAny; } -void SAL_CALL IFrameObject::addPropertyChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException ) +void SAL_CALL IFrameObject::addPropertyChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL IFrameObject::removePropertyChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException ) +void SAL_CALL IFrameObject::removePropertyChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL IFrameObject::addVetoableChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException ) +void SAL_CALL IFrameObject::addVetoableChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL IFrameObject::removeVetoableChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException ) +void SAL_CALL IFrameObject::removeVetoableChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) { } -::sal_Int16 SAL_CALL IFrameObject::execute() throw (::com::sun::star::uno::RuntimeException) +::sal_Int16 SAL_CALL IFrameObject::execute() throw (::com::sun::star::uno::RuntimeException, std::exception) { SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); VclAbstractDialog* pDlg = pFact->CreateEditObjectDialog( NULL, ".uno:InsertObjectFloatingFrame", mxObj ); @@ -419,7 +419,7 @@ void SAL_CALL IFrameObject::removeVetoableChangeListener(const OUString&, const return 0; } -void SAL_CALL IFrameObject::setTitle( const OUString& ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL IFrameObject::setTitle( const OUString& ) throw (::com::sun::star::uno::RuntimeException, std::exception) { } diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 50c46815f874..6de6e06a8d48 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -155,11 +155,11 @@ public: void SetPreventClose( sal_Bool bPrevent ) { m_bPreventClose = bPrevent; } virtual void SAL_CALL queryClosing( const lang::EventObject& aEvent, sal_Bool bDeliverOwnership ) - throw ( uno::RuntimeException, util::CloseVetoException ); + throw ( uno::RuntimeException, util::CloseVetoException, std::exception ); - virtual void SAL_CALL notifyClosing( const lang::EventObject& aEvent ) throw ( uno::RuntimeException ) ; + virtual void SAL_CALL notifyClosing( const lang::EventObject& aEvent ) throw ( uno::RuntimeException, std::exception ) ; - virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) throw ( uno::RuntimeException ) ; + virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) throw ( uno::RuntimeException, std::exception ) ; } ; @@ -170,7 +170,7 @@ SfxClosePreventer_Impl::SfxClosePreventer_Impl() } void SAL_CALL SfxClosePreventer_Impl::queryClosing( const lang::EventObject&, sal_Bool bDeliverOwnership ) - throw ( uno::RuntimeException, util::CloseVetoException ) + throw ( uno::RuntimeException, util::CloseVetoException, std::exception ) { if ( m_bPreventClose ) { @@ -181,10 +181,10 @@ void SAL_CALL SfxClosePreventer_Impl::queryClosing( const lang::EventObject&, sa } } -void SAL_CALL SfxClosePreventer_Impl::notifyClosing( const lang::EventObject& ) throw ( uno::RuntimeException ) +void SAL_CALL SfxClosePreventer_Impl::notifyClosing( const lang::EventObject& ) throw ( uno::RuntimeException, std::exception ) {} -void SAL_CALL SfxClosePreventer_Impl::disposing( const lang::EventObject& ) throw ( uno::RuntimeException ) +void SAL_CALL SfxClosePreventer_Impl::disposing( const lang::EventObject& ) throw ( uno::RuntimeException, std::exception ) {} diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index e9a3a76e54af..262dabd41c1a 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -157,24 +157,24 @@ class SfxModelListener_Impl : public ::cppu::WeakImplHelper1< ::com::sun::star:: public: SfxModelListener_Impl( SfxObjectShell* pDoc ) : mpDoc(pDoc) {}; virtual void SAL_CALL queryClosing( const com::sun::star::lang::EventObject& aEvent, sal_Bool bDeliverOwnership ) - throw ( com::sun::star::uno::RuntimeException, com::sun::star::util::CloseVetoException) ; - virtual void SAL_CALL notifyClosing( const com::sun::star::lang::EventObject& aEvent ) throw ( com::sun::star::uno::RuntimeException ) ; - virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& aEvent ) throw ( com::sun::star::uno::RuntimeException ) ; + throw ( com::sun::star::uno::RuntimeException, com::sun::star::util::CloseVetoException, std::exception) ; + virtual void SAL_CALL notifyClosing( const com::sun::star::lang::EventObject& aEvent ) throw ( com::sun::star::uno::RuntimeException, std::exception ) ; + virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& aEvent ) throw ( com::sun::star::uno::RuntimeException, std::exception ) ; }; void SAL_CALL SfxModelListener_Impl::queryClosing( const com::sun::star::lang::EventObject& , sal_Bool ) - throw ( com::sun::star::uno::RuntimeException, com::sun::star::util::CloseVetoException) + throw ( com::sun::star::uno::RuntimeException, com::sun::star::util::CloseVetoException, std::exception) { } -void SAL_CALL SfxModelListener_Impl::notifyClosing( const com::sun::star::lang::EventObject& ) throw ( com::sun::star::uno::RuntimeException ) +void SAL_CALL SfxModelListener_Impl::notifyClosing( const com::sun::star::lang::EventObject& ) throw ( com::sun::star::uno::RuntimeException, std::exception ) { SolarMutexGuard aSolarGuard; mpDoc->Broadcast( SfxSimpleHint(SFX_HINT_DEINITIALIZING) ); } -void SAL_CALL SfxModelListener_Impl::disposing( const com::sun::star::lang::EventObject& _rEvent ) throw ( com::sun::star::uno::RuntimeException ) +void SAL_CALL SfxModelListener_Impl::disposing( const com::sun::star::lang::EventObject& _rEvent ) throw ( com::sun::star::uno::RuntimeException, std::exception ) { // am I ThisComponent in AppBasic? SolarMutexGuard aSolarGuard; diff --git a/sfx2/source/doc/ownsubfilterservice.cxx b/sfx2/source/doc/ownsubfilterservice.cxx index 4529730f7d05..4516624e2c65 100644 --- a/sfx2/source/doc/ownsubfilterservice.cxx +++ b/sfx2/source/doc/ownsubfilterservice.cxx @@ -47,13 +47,13 @@ public: virtual ~OwnSubFilterService(); // XFilter - virtual ::sal_Bool SAL_CALL filter( const uno::Sequence< beans::PropertyValue >& aDescriptor ) throw (uno::RuntimeException); - virtual void SAL_CALL cancel() throw (uno::RuntimeException); + virtual ::sal_Bool SAL_CALL filter( const uno::Sequence< beans::PropertyValue >& aDescriptor ) throw (uno::RuntimeException, std::exception); + virtual void SAL_CALL cancel() throw (uno::RuntimeException, std::exception); // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (uno::RuntimeException); - virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (uno::RuntimeException); - virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (uno::RuntimeException, std::exception); + virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (uno::RuntimeException, std::exception); + virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception); }; OwnSubFilterService::OwnSubFilterService(const css::uno::Sequence< css::uno::Any >& aArguments) @@ -85,7 +85,7 @@ OwnSubFilterService::~OwnSubFilterService() } sal_Bool SAL_CALL OwnSubFilterService::filter( const uno::Sequence< beans::PropertyValue >& aDescriptor ) - throw (uno::RuntimeException) + throw (uno::RuntimeException, std::exception) { if ( !m_pObjectShell ) throw uno::RuntimeException(); @@ -94,25 +94,25 @@ sal_Bool SAL_CALL OwnSubFilterService::filter( const uno::Sequence< beans::Prope } void SAL_CALL OwnSubFilterService::cancel() - throw (uno::RuntimeException) + throw (uno::RuntimeException, std::exception) { // not implemented } OUString SAL_CALL OwnSubFilterService::getImplementationName() - throw ( uno::RuntimeException ) + throw ( uno::RuntimeException, std::exception ) { return OUString("com.sun.star.comp.document.OwnSubFilter"); } sal_Bool SAL_CALL OwnSubFilterService::supportsService( const OUString& ServiceName ) - throw ( uno::RuntimeException ) + throw ( uno::RuntimeException, std::exception ) { return cppu::supportsService(this, ServiceName); } uno::Sequence< OUString > SAL_CALL OwnSubFilterService::getSupportedServiceNames() - throw ( uno::RuntimeException ) + throw ( uno::RuntimeException, std::exception ) { uno::Sequence< OUString > aRet(2); aRet[0] = "com.sun.star.document.OwnSubFilter"; diff --git a/sfx2/source/doc/plugin.cxx b/sfx2/source/doc/plugin.cxx index 43f73973382d..9775dca4adef 100644 --- a/sfx2/source/doc/plugin.cxx +++ b/sfx2/source/doc/plugin.cxx @@ -98,34 +98,34 @@ public: ~PluginObject(); virtual sal_Bool SAL_CALL load( const css::uno::Sequence < css::beans::PropertyValue >& lDescriptor, - const css::uno::Reference < css::frame::XFrame >& xFrame ) throw( css::uno::RuntimeException ); - virtual void SAL_CALL cancel() throw( css::uno::RuntimeException ); - virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) throw( css::util::CloseVetoException, css::uno::RuntimeException ); - virtual void SAL_CALL addCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException ); - virtual void SAL_CALL removeCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException ); - virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw (css::uno::RuntimeException) ; - virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw( css::uno::RuntimeException ); - virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException ); - virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException ); - virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException ); - virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException ); - 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); - virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException); + const css::uno::Reference < css::frame::XFrame >& xFrame ) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL cancel() throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) throw( css::util::CloseVetoException, css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL addCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL removeCloseListener( const css::uno::Reference < css::util::XCloseListener >& xListener ) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw (css::uno::RuntimeException, std::exception) ; + virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ); + virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener) throw( css::uno::RuntimeException, std::exception ); + 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); + virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return OUString("com.sun.star.comp.sfx2.PluginObject"); } virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { css::uno::Sequence< OUString > aSeq(1); aSeq[0] = OUString("com.sun.star.frame.SpecialEmbeddedObject"); @@ -145,7 +145,7 @@ PluginObject::~PluginObject() sal_Bool SAL_CALL PluginObject::load( const uno::Sequence < com::sun::star::beans::PropertyValue >& /*lDescriptor*/, const uno::Reference < frame::XFrame >& xFrame ) -throw( uno::RuntimeException ) +throw( uno::RuntimeException, std::exception ) { uno::Reference< plugin::XPluginManager > xPMgr( plugin::PluginManager::create(comphelper::getProcessComponentContext()) ); @@ -212,7 +212,7 @@ throw( uno::RuntimeException ) return sal_False; } -void SAL_CALL PluginObject::cancel() throw( com::sun::star::uno::RuntimeException ) +void SAL_CALL PluginObject::cancel() throw( com::sun::star::uno::RuntimeException, std::exception ) { uno::Reference< lang::XComponent > xComp( mxPlugin, uno::UNO_QUERY ); if (xComp.is()) @@ -220,31 +220,31 @@ void SAL_CALL PluginObject::cancel() throw( com::sun::star::uno::RuntimeExceptio mxPlugin = 0; } -void SAL_CALL PluginObject::close( sal_Bool /*bDeliverOwnership*/ ) throw( com::sun::star::util::CloseVetoException, com::sun::star::uno::RuntimeException ) +void SAL_CALL PluginObject::close( sal_Bool /*bDeliverOwnership*/ ) throw( com::sun::star::util::CloseVetoException, com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL PluginObject::addCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& ) throw( com::sun::star::uno::RuntimeException ) +void SAL_CALL PluginObject::addCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& ) throw( com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL PluginObject::removeCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& ) throw( com::sun::star::uno::RuntimeException ) +void SAL_CALL PluginObject::removeCloseListener( const com::sun::star::uno::Reference < com::sun::star::util::XCloseListener >& ) throw( com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL PluginObject::disposing( const com::sun::star::lang::EventObject& ) throw (com::sun::star::uno::RuntimeException) +void SAL_CALL PluginObject::disposing( const com::sun::star::lang::EventObject& ) throw (com::sun::star::uno::RuntimeException, std::exception) { cancel(); } -uno::Reference< beans::XPropertySetInfo > SAL_CALL PluginObject::getPropertySetInfo() throw( ::com::sun::star::uno::RuntimeException ) +uno::Reference< beans::XPropertySetInfo > SAL_CALL PluginObject::getPropertySetInfo() throw( ::com::sun::star::uno::RuntimeException, std::exception ) { static uno::Reference< beans::XPropertySetInfo > xInfo = new SfxItemPropertySetInfo( maPropMap ); return xInfo; } void SAL_CALL PluginObject::setPropertyValue(const OUString& aPropertyName, const uno::Any& aAny) - throw ( beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) + throw ( beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { if ( aPropertyName == "PluginURL" ) { @@ -266,7 +266,7 @@ void SAL_CALL PluginObject::setPropertyValue(const OUString& aPropertyName, cons } uno::Any SAL_CALL PluginObject::getPropertyValue(const OUString& aPropertyName) - throw ( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) + throw ( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { uno::Any aAny; if ( aPropertyName == "PluginURL" ) @@ -288,19 +288,19 @@ uno::Any SAL_CALL PluginObject::getPropertyValue(const OUString& aPropertyName) return aAny; } -void SAL_CALL PluginObject::addPropertyChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException ) +void SAL_CALL PluginObject::addPropertyChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL PluginObject::removePropertyChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException ) +void SAL_CALL PluginObject::removePropertyChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL PluginObject::addVetoableChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException ) +void SAL_CALL PluginObject::addVetoableChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) { } -void SAL_CALL PluginObject::removeVetoableChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException ) +void SAL_CALL PluginObject::removeVetoableChangeListener(const OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) { } diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx index c5f893c7b8f1..d92a31fb80b1 100644 --- a/sfx2/source/doc/printhelper.cxx +++ b/sfx2/source/doc/printhelper.cxx @@ -103,10 +103,10 @@ class SfxPrintJob_Impl : public cppu::WeakImplHelper1 public: SfxPrintJob_Impl( IMPL_PrintListener_DataContainer* pData ); - virtual Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPrintOptions( ) throw (RuntimeException); - virtual Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPrinter( ) throw (RuntimeException); - virtual Reference< ::com::sun::star::view::XPrintable > SAL_CALL getPrintable( ) throw (RuntimeException); - virtual void SAL_CALL cancelJob() throw (RuntimeException); + virtual Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPrintOptions( ) throw (RuntimeException, std::exception); + virtual Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPrinter( ) throw (RuntimeException, std::exception); + virtual Reference< ::com::sun::star::view::XPrintable > SAL_CALL getPrintable( ) throw (RuntimeException, std::exception); + virtual void SAL_CALL cancelJob() throw (RuntimeException, std::exception); }; SfxPrintJob_Impl::SfxPrintJob_Impl( IMPL_PrintListener_DataContainer* pData ) @@ -114,12 +114,12 @@ SfxPrintJob_Impl::SfxPrintJob_Impl( IMPL_PrintListener_DataContainer* pData ) { } -Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrintOptions() throw (RuntimeException) +Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrintOptions() throw (RuntimeException, std::exception) { return m_pData->m_aPrintOptions; } -Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrinter() throw (RuntimeException) +Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::getPrinter() throw (RuntimeException, std::exception) { if( m_pData->m_pObjectShell.Is() ) { @@ -130,13 +130,13 @@ Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL SfxPrintJob_Impl::ge return Sequence< ::com::sun::star::beans::PropertyValue >(); } -Reference< ::com::sun::star::view::XPrintable > SAL_CALL SfxPrintJob_Impl::getPrintable() throw (RuntimeException) +Reference< ::com::sun::star::view::XPrintable > SAL_CALL SfxPrintJob_Impl::getPrintable() throw (RuntimeException, std::exception) { Reference < view::XPrintable > xPrintable( m_pData->m_pObjectShell.Is() ? m_pData->m_pObjectShell->GetModel() : NULL, UNO_QUERY ); return xPrintable; } -void SAL_CALL SfxPrintJob_Impl::cancelJob() throw (RuntimeException) +void SAL_CALL SfxPrintJob_Impl::cancelJob() throw (RuntimeException, std::exception) { // FIXME: how to cancel PrintJob via API?! if( m_pData->m_pObjectShell.Is() ) @@ -148,7 +148,7 @@ SfxPrintHelper::SfxPrintHelper() m_pData = new IMPL_PrintListener_DataContainer(m_aMutex); } -void SAL_CALL SfxPrintHelper::initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) +void SAL_CALL SfxPrintHelper::initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) { if ( aArguments.getLength() ) { @@ -253,7 +253,7 @@ namespace // XPrintable -uno::Sequence< beans::PropertyValue > SAL_CALL SfxPrintHelper::getPrinter() throw(::com::sun::star::uno::RuntimeException) +uno::Sequence< beans::PropertyValue > SAL_CALL SfxPrintHelper::getPrinter() throw(::com::sun::star::uno::RuntimeException, std::exception) { // object already disposed? SolarMutexGuard aGuard; @@ -448,7 +448,7 @@ void SfxPrintHelper::impl_setPrinter(const uno::Sequence< beans::PropertyValue > } void SAL_CALL SfxPrintHelper::setPrinter(const uno::Sequence< beans::PropertyValue >& rPrinter) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { // object already disposed? SolarMutexGuard aGuard; @@ -581,7 +581,7 @@ class ImplUCBPrintWatcher : public ::osl::Thread // XPrintable void SAL_CALL SfxPrintHelper::print(const uno::Sequence< beans::PropertyValue >& rOptions) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { if( Application::GetSettings().GetMiscSettings().GetDisablePrinting() ) return; @@ -820,13 +820,13 @@ void IMPL_PrintListener_DataContainer::Notify( SfxBroadcaster& rBC, const SfxHin ((view::XPrintJobListener*)pIterator.next())->printJobEvent( aEvent ); } -void SAL_CALL SfxPrintHelper::addPrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL SfxPrintHelper::addPrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const uno::Reference < view::XPrintJobListener>*)0), xListener ); } -void SAL_CALL SfxPrintHelper::removePrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException) +void SAL_CALL SfxPrintHelper::removePrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference < view::XPrintJobListener>*)0), xListener ); diff --git a/sfx2/source/doc/printhelper.hxx b/sfx2/source/doc/printhelper.hxx index 331c170559fc..47529163502e 100644 --- a/sfx2/source/doc/printhelper.hxx +++ b/sfx2/source/doc/printhelper.hxx @@ -47,14 +47,14 @@ public: SfxPrintHelper() ; virtual ~SfxPrintHelper() ; - void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addPrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removePrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); - virtual com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > SAL_CALL getPrinter() throw (::com::sun::star::uno::RuntimeException); + void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL addPrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL removePrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > SAL_CALL getPrinter() throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setPrinter( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& seqPrinter ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL print( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& seqOptions ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); private: diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 171d2cbacb22..7a30ba3e1a21 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -154,15 +154,15 @@ public: ~SfxDocInfoListener_Impl(); virtual void SAL_CALL disposing( const lang::EventObject& ) - throw ( RuntimeException ); + throw ( RuntimeException, std::exception ); virtual void SAL_CALL modified( const lang::EventObject& ) - throw ( RuntimeException ); + throw ( RuntimeException, std::exception ); }; SfxDocInfoListener_Impl::~SfxDocInfoListener_Impl() { } void SAL_CALL SfxDocInfoListener_Impl::modified( const lang::EventObject& ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { SolarMutexGuard aSolarGuard; @@ -171,7 +171,7 @@ void SAL_CALL SfxDocInfoListener_Impl::modified( const lang::EventObject& ) } void SAL_CALL SfxDocInfoListener_Impl::disposing( const lang::EventObject& ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { } @@ -322,16 +322,16 @@ public: : m_pData( pData ) {} - virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) throw ( RuntimeException ) ; - virtual void SAL_CALL printJobEvent( const view::PrintJobEvent& rEvent ) throw ( RuntimeException); + virtual void SAL_CALL disposing( const lang::EventObject& aEvent ) throw ( RuntimeException, std::exception ) ; + virtual void SAL_CALL printJobEvent( const view::PrintJobEvent& rEvent ) throw ( RuntimeException, std::exception); }; -void SAL_CALL SfxPrintHelperListener_Impl::disposing( const lang::EventObject& ) throw ( RuntimeException ) +void SAL_CALL SfxPrintHelperListener_Impl::disposing( const lang::EventObject& ) throw ( RuntimeException, std::exception ) { m_pData->m_xPrintable = 0; } -void SAL_CALL SfxPrintHelperListener_Impl::printJobEvent( const view::PrintJobEvent& rEvent ) throw (RuntimeException) +void SAL_CALL SfxPrintHelperListener_Impl::printJobEvent( const view::PrintJobEvent& rEvent ) throw (RuntimeException, std::exception) { ::cppu::OInterfaceContainerHelper* pContainer = m_pData->m_aInterfaceContainer.getContainer( ::getCppuType( ( const Reference< view::XPrintJobListener >*) NULL ) ); if ( pContainer!=NULL ) @@ -543,7 +543,7 @@ SfxBaseModel::~SfxBaseModel() // XInterface -Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType ) throw( RuntimeException ) +Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType ) throw( RuntimeException, std::exception ) { if ( ( !m_bSupportEmbeddedScripts && rType.equals( cppu::UnoType<document::XEmbeddedScripts>::get() ) ) || ( !m_bSupportDocRecovery && rType.equals( cppu::UnoType<XDocumentRecovery>::get() ) ) @@ -598,7 +598,7 @@ namespace } } -Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes() throw( RuntimeException ) +Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes() throw( RuntimeException, std::exception ) { Sequence< uno::Type > aTypes( SfxBaseModel_Base::getTypes() ); @@ -615,7 +615,7 @@ Sequence< uno::Type > SAL_CALL SfxBaseModel::getTypes() throw( RuntimeException // XTypeProvider -Sequence< sal_Int8 > SAL_CALL SfxBaseModel::getImplementationId() throw( RuntimeException ) +Sequence< sal_Int8 > SAL_CALL SfxBaseModel::getImplementationId() throw( RuntimeException, std::exception ) { // Create one Id for all instances of this class. // Use ethernet address to do this! (sal_True) @@ -663,7 +663,7 @@ Reference< script::XStarBasicAccess > implGetStarBasicAccess( SfxObjectShell* pO return xRet; } -Reference< container::XNameContainer > SAL_CALL SfxBaseModel::getLibraryContainer() throw( RuntimeException ) +Reference< container::XNameContainer > SAL_CALL SfxBaseModel::getLibraryContainer() throw( RuntimeException, std::exception ) { #ifdef DISABLE_SCRIPTING Reference< container::XNameContainer > dummy; @@ -688,7 +688,7 @@ Reference< container::XNameContainer > SAL_CALL SfxBaseModel::getLibraryContaine */ void SAL_CALL SfxBaseModel::createLibrary( const OUString& LibName, const OUString& Password, const OUString& ExternalSourceURL, const OUString& LinkTargetURL ) - throw(container::ElementExistException, RuntimeException) + throw(container::ElementExistException, RuntimeException, std::exception) { #ifdef DISABLE_SCRIPTING (void) LibName; @@ -712,7 +712,7 @@ void SAL_CALL SfxBaseModel::createLibrary( const OUString& LibName, const OUStri */ void SAL_CALL SfxBaseModel::addModule( const OUString& LibraryName, const OUString& ModuleName, const OUString& Language, const OUString& Source ) - throw( container::NoSuchElementException, RuntimeException) + throw( container::NoSuchElementException, RuntimeException, std::exception) { #ifdef DISABLE_SCRIPTING (void) LibraryName; @@ -736,7 +736,7 @@ void SAL_CALL SfxBaseModel::addModule( const OUString& LibraryName, const OUStri */ void SAL_CALL SfxBaseModel::addDialog( const OUString& LibraryName, const OUString& DialogName, const Sequence< sal_Int8 >& Data ) - throw(container::NoSuchElementException, RuntimeException) + throw(container::NoSuchElementException, RuntimeException, std::exception) { #ifdef DISABLE_SCRIPTING (void) LibraryName; @@ -759,7 +759,7 @@ void SAL_CALL SfxBaseModel::addDialog( const OUString& LibraryName, const OUStri // XChild -Reference< XInterface > SAL_CALL SfxBaseModel::getParent() throw( RuntimeException ) +Reference< XInterface > SAL_CALL SfxBaseModel::getParent() throw( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -770,7 +770,7 @@ Reference< XInterface > SAL_CALL SfxBaseModel::getParent() throw( RuntimeExcepti // XChild -void SAL_CALL SfxBaseModel::setParent(const Reference< XInterface >& Parent) throw(lang::NoSupportException, RuntimeException) +void SAL_CALL SfxBaseModel::setParent(const Reference< XInterface >& Parent) throw(lang::NoSupportException, RuntimeException, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); m_pData->m_xParent = Parent; @@ -780,7 +780,7 @@ void SAL_CALL SfxBaseModel::setParent(const Reference< XInterface >& Parent) thr // XChild -void SAL_CALL SfxBaseModel::dispose() throw(RuntimeException) +void SAL_CALL SfxBaseModel::dispose() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); @@ -836,7 +836,7 @@ void SAL_CALL SfxBaseModel::dispose() throw(RuntimeException) void SAL_CALL SfxBaseModel::addEventListener( const Reference< lang::XEventListener >& aListener ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const Reference< lang::XEventListener >*)0), aListener ); @@ -847,7 +847,7 @@ void SAL_CALL SfxBaseModel::addEventListener( const Reference< lang::XEventListe void SAL_CALL SfxBaseModel::removeEventListener( const Reference< lang::XEventListener >& aListener ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const Reference< lang::XEventListener >*)0), aListener ); @@ -866,7 +866,7 @@ IMPL_SfxBaseModel_DataContainer::impl_setDocumentProperties( // document::XDocumentPropertiesSupplier: Reference< document::XDocumentProperties > SAL_CALL SfxBaseModel::getDocumentProperties() - throw(RuntimeException) + throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); if ( !m_pData->m_xDocumentProperties.is() ) @@ -885,7 +885,7 @@ SfxBaseModel::getDocumentProperties() void SAL_CALL SfxBaseModel::disposing( const lang::EventObject& aObject ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; if ( impl_isDisposed() ) @@ -909,7 +909,7 @@ void SAL_CALL SfxBaseModel::disposing( const lang::EventObject& aObject ) sal_Bool SAL_CALL SfxBaseModel::attachResource( const OUString& rURL , const Sequence< beans::PropertyValue >& rArgs ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); if ( rURL.isEmpty() && rArgs.getLength() == 1 && rArgs[0].Name == "SetEmbedded" ) @@ -994,7 +994,7 @@ sal_Bool SAL_CALL SfxBaseModel::attachResource( const OUString& // frame::XModel -OUString SAL_CALL SfxBaseModel::getURL() throw(RuntimeException) +OUString SAL_CALL SfxBaseModel::getURL() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); return m_pData->m_sURL ; @@ -1004,7 +1004,7 @@ OUString SAL_CALL SfxBaseModel::getURL() throw(RuntimeException) // frame::XModel -Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getArgs() throw(RuntimeException) +Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getArgs() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); if ( m_pData->m_pObjectShell.Is() ) @@ -1104,7 +1104,7 @@ Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getArgs() throw(RuntimeE void SAL_CALL SfxBaseModel::connectController( const Reference< frame::XController >& xController ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); OSL_PRECOND( xController.is(), "SfxBaseModel::connectController: invalid controller!" ); @@ -1133,7 +1133,7 @@ void SAL_CALL SfxBaseModel::connectController( const Reference< frame::XControll // frame::XModel -void SAL_CALL SfxBaseModel::disconnectController( const Reference< frame::XController >& xController ) throw(RuntimeException) +void SAL_CALL SfxBaseModel::disconnectController( const Reference< frame::XController >& xController ) throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1170,22 +1170,22 @@ namespace } // XUndoAction - virtual OUString SAL_CALL getTitle() throw (RuntimeException); - virtual void SAL_CALL undo( ) throw (UndoFailedException, RuntimeException); - virtual void SAL_CALL redo( ) throw (UndoFailedException, RuntimeException); + virtual OUString SAL_CALL getTitle() throw (RuntimeException, std::exception); + virtual void SAL_CALL undo( ) throw (UndoFailedException, RuntimeException, std::exception); + virtual void SAL_CALL redo( ) throw (UndoFailedException, RuntimeException, std::exception); private: const Reference< XModel > m_xModel; const bool m_bUndoIsUnlock; }; - OUString SAL_CALL ControllerLockUndoAction::getTitle() throw (RuntimeException) + OUString SAL_CALL ControllerLockUndoAction::getTitle() throw (RuntimeException, std::exception) { // this action is intended to be used within an UndoContext only, so nobody will ever see this title ... return OUString(); } - void SAL_CALL ControllerLockUndoAction::undo( ) throw (UndoFailedException, RuntimeException) + void SAL_CALL ControllerLockUndoAction::undo( ) throw (UndoFailedException, RuntimeException, std::exception) { if ( m_bUndoIsUnlock ) m_xModel->unlockControllers(); @@ -1193,7 +1193,7 @@ namespace m_xModel->lockControllers(); } - void SAL_CALL ControllerLockUndoAction::redo( ) throw (UndoFailedException, RuntimeException) + void SAL_CALL ControllerLockUndoAction::redo( ) throw (UndoFailedException, RuntimeException, std::exception) { if ( m_bUndoIsUnlock ) m_xModel->lockControllers(); @@ -1206,7 +1206,7 @@ namespace // frame::XModel -void SAL_CALL SfxBaseModel::lockControllers() throw(RuntimeException) +void SAL_CALL SfxBaseModel::lockControllers() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1225,7 +1225,7 @@ void SAL_CALL SfxBaseModel::lockControllers() throw(RuntimeException) // frame::XModel -void SAL_CALL SfxBaseModel::unlockControllers() throw(RuntimeException) +void SAL_CALL SfxBaseModel::unlockControllers() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1244,7 +1244,7 @@ void SAL_CALL SfxBaseModel::unlockControllers() throw(RuntimeException) // frame::XModel -sal_Bool SAL_CALL SfxBaseModel::hasControllersLocked() throw(RuntimeException) +sal_Bool SAL_CALL SfxBaseModel::hasControllersLocked() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); return ( m_pData->m_nControllerLockCount != 0 ) ; @@ -1254,7 +1254,7 @@ sal_Bool SAL_CALL SfxBaseModel::hasControllersLocked() throw(RuntimeException) // frame::XModel -Reference< frame::XController > SAL_CALL SfxBaseModel::getCurrentController() throw(RuntimeException) +Reference< frame::XController > SAL_CALL SfxBaseModel::getCurrentController() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1271,7 +1271,7 @@ Reference< frame::XController > SAL_CALL SfxBaseModel::getCurrentController() th void SAL_CALL SfxBaseModel::setCurrentController( const Reference< frame::XController >& xCurrentController ) - throw (container::NoSuchElementException, RuntimeException) + throw (container::NoSuchElementException, RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1282,7 +1282,7 @@ void SAL_CALL SfxBaseModel::setCurrentController( const Reference< frame::XContr // frame::XModel -Reference< XInterface > SAL_CALL SfxBaseModel::getCurrentSelection() throw(RuntimeException) +Reference< XInterface > SAL_CALL SfxBaseModel::getCurrentSelection() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1306,7 +1306,7 @@ Reference< XInterface > SAL_CALL SfxBaseModel::getCurrentSelection() throw(Runti // XModifiable2 -sal_Bool SAL_CALL SfxBaseModel::disableSetModified() throw (RuntimeException) +sal_Bool SAL_CALL SfxBaseModel::disableSetModified() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1319,7 +1319,7 @@ sal_Bool SAL_CALL SfxBaseModel::disableSetModified() throw (RuntimeException) return bResult; } -sal_Bool SAL_CALL SfxBaseModel::enableSetModified() throw (RuntimeException) +sal_Bool SAL_CALL SfxBaseModel::enableSetModified() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1332,7 +1332,7 @@ sal_Bool SAL_CALL SfxBaseModel::enableSetModified() throw (RuntimeException) return bResult; } -sal_Bool SAL_CALL SfxBaseModel::isSetModifiedEnabled() throw (RuntimeException) +sal_Bool SAL_CALL SfxBaseModel::isSetModifiedEnabled() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1346,7 +1346,7 @@ sal_Bool SAL_CALL SfxBaseModel::isSetModifiedEnabled() throw (RuntimeException) // XModifiable -sal_Bool SAL_CALL SfxBaseModel::isModified() throw(RuntimeException) +sal_Bool SAL_CALL SfxBaseModel::isModified() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1358,7 +1358,7 @@ sal_Bool SAL_CALL SfxBaseModel::isModified() throw(RuntimeException) void SAL_CALL SfxBaseModel::setModified( sal_Bool bModified ) - throw (beans::PropertyVetoException, RuntimeException) + throw (beans::PropertyVetoException, RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1370,7 +1370,7 @@ void SAL_CALL SfxBaseModel::setModified( sal_Bool bModified ) // XModifiable -void SAL_CALL SfxBaseModel::addModifyListener(const Reference< util::XModifyListener >& xListener) throw( RuntimeException ) +void SAL_CALL SfxBaseModel::addModifyListener(const Reference< util::XModifyListener >& xListener) throw( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); @@ -1381,7 +1381,7 @@ void SAL_CALL SfxBaseModel::addModifyListener(const Reference< util::XModifyList // XModifiable -void SAL_CALL SfxBaseModel::removeModifyListener(const Reference< util::XModifyListener >& xListener) throw( RuntimeException ) +void SAL_CALL SfxBaseModel::removeModifyListener(const Reference< util::XModifyListener >& xListener) throw( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -1392,7 +1392,7 @@ void SAL_CALL SfxBaseModel::removeModifyListener(const Reference< util::XModifyL // XCloseable -void SAL_CALL SfxBaseModel::close( sal_Bool bDeliverOwnership ) throw (util::CloseVetoException, RuntimeException) +void SAL_CALL SfxBaseModel::close( sal_Bool bDeliverOwnership ) throw (util::CloseVetoException, RuntimeException, std::exception) { SolarMutexGuard aGuard; if ( impl_isDisposed() || m_pData->m_bClosed || m_pData->m_bClosing ) @@ -1455,7 +1455,7 @@ void SAL_CALL SfxBaseModel::close( sal_Bool bDeliverOwnership ) throw (util::Clo // XCloseBroadcaster -void SAL_CALL SfxBaseModel::addCloseListener( const Reference< util::XCloseListener >& xListener ) throw (RuntimeException) +void SAL_CALL SfxBaseModel::addCloseListener( const Reference< util::XCloseListener >& xListener ) throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); @@ -1466,7 +1466,7 @@ void SAL_CALL SfxBaseModel::addCloseListener( const Reference< util::XCloseListe // XCloseBroadcaster -void SAL_CALL SfxBaseModel::removeCloseListener( const Reference< util::XCloseListener >& xListener ) throw (RuntimeException) +void SAL_CALL SfxBaseModel::removeCloseListener( const Reference< util::XCloseListener >& xListener ) throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1477,7 +1477,7 @@ void SAL_CALL SfxBaseModel::removeCloseListener( const Reference< util::XCloseLi // XPrintable -Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getPrinter() throw(RuntimeException) +Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getPrinter() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1488,7 +1488,7 @@ Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getPrinter() throw(Runti } void SAL_CALL SfxBaseModel::setPrinter(const Sequence< beans::PropertyValue >& rPrinter) - throw (lang::IllegalArgumentException, RuntimeException) + throw (lang::IllegalArgumentException, RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1497,7 +1497,7 @@ void SAL_CALL SfxBaseModel::setPrinter(const Sequence< beans::PropertyValue >& r } void SAL_CALL SfxBaseModel::print(const Sequence< beans::PropertyValue >& rOptions) - throw (lang::IllegalArgumentException, RuntimeException) + throw (lang::IllegalArgumentException, RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1509,7 +1509,7 @@ void SAL_CALL SfxBaseModel::print(const Sequence< beans::PropertyValue >& rOptio // XStorable -sal_Bool SAL_CALL SfxBaseModel::hasLocation() throw(RuntimeException) +sal_Bool SAL_CALL SfxBaseModel::hasLocation() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1520,7 +1520,7 @@ sal_Bool SAL_CALL SfxBaseModel::hasLocation() throw(RuntimeException) // XStorable -OUString SAL_CALL SfxBaseModel::getLocation() throw(RuntimeException) +OUString SAL_CALL SfxBaseModel::getLocation() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1540,7 +1540,7 @@ OUString SAL_CALL SfxBaseModel::getLocation() throw(RuntimeException) // XStorable -sal_Bool SAL_CALL SfxBaseModel::isReadonly() throw(RuntimeException) +sal_Bool SAL_CALL SfxBaseModel::isReadonly() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1554,7 +1554,7 @@ sal_Bool SAL_CALL SfxBaseModel::isReadonly() throw(RuntimeException) void SAL_CALL SfxBaseModel::storeSelf( const Sequence< beans::PropertyValue >& aSeqArgs ) throw ( lang::IllegalArgumentException, io::IOException, - RuntimeException ) + RuntimeException, std::exception ) { SAL_INFO( "sfx.doc", "PERFORMANCE - SfxBaseModel::storeSelf" ); SfxModelGuard aGuard( *this ); @@ -1673,7 +1673,7 @@ void SAL_CALL SfxBaseModel::storeSelf( const Sequence< beans::PropertyValue > // XStorable -void SAL_CALL SfxBaseModel::store() throw (io::IOException, RuntimeException) +void SAL_CALL SfxBaseModel::store() throw (io::IOException, RuntimeException, std::exception) { storeSelf( Sequence< beans::PropertyValue >() ); } @@ -1684,7 +1684,7 @@ void SAL_CALL SfxBaseModel::store() throw (io::IOException, RuntimeException) void SAL_CALL SfxBaseModel::storeAsURL( const OUString& rURL , const Sequence< beans::PropertyValue >& rArgs ) - throw (io::IOException, RuntimeException) + throw (io::IOException, RuntimeException, std::exception) { SAL_INFO( "sfx.doc", "PERFORMANCE - SfxBaseModel::storeAsURL" ); SfxModelGuard aGuard( *this ); @@ -1712,7 +1712,7 @@ void SAL_CALL SfxBaseModel::storeAsURL( const OUString& rURL // XUndoManagerSupplier -Reference< XUndoManager > SAL_CALL SfxBaseModel::getUndoManager( ) throw (RuntimeException) +Reference< XUndoManager > SAL_CALL SfxBaseModel::getUndoManager( ) throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); if ( !m_pData->m_pDocumentUndoManager.is() ) @@ -1726,7 +1726,7 @@ Reference< XUndoManager > SAL_CALL SfxBaseModel::getUndoManager( ) throw (Runti void SAL_CALL SfxBaseModel::storeToURL( const OUString& rURL , const Sequence< beans::PropertyValue >& rArgs ) - throw (io::IOException, RuntimeException) + throw (io::IOException, RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -1738,13 +1738,13 @@ void SAL_CALL SfxBaseModel::storeToURL( const OUString& rURL } } -::sal_Bool SAL_CALL SfxBaseModel::wasModifiedSinceLastSave() throw ( RuntimeException ) +::sal_Bool SAL_CALL SfxBaseModel::wasModifiedSinceLastSave() throw ( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); return m_pData->m_bModifiedSinceLastSave; } -void SAL_CALL SfxBaseModel::storeToRecoveryFile( const OUString& i_TargetLocation, const Sequence< PropertyValue >& i_MediaDescriptor ) throw ( RuntimeException, IOException, WrappedTargetException ) +void SAL_CALL SfxBaseModel::storeToRecoveryFile( const OUString& i_TargetLocation, const Sequence< PropertyValue >& i_MediaDescriptor ) throw ( RuntimeException, IOException, WrappedTargetException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -1756,7 +1756,7 @@ void SAL_CALL SfxBaseModel::storeToRecoveryFile( const OUString& i_TargetLocatio m_pData->m_bModifiedSinceLastSave = sal_False; } -void SAL_CALL SfxBaseModel::recoverFromFile( const OUString& i_SourceLocation, const OUString& i_SalvagedFile, const Sequence< PropertyValue >& i_MediaDescriptor ) throw ( RuntimeException, IOException, WrappedTargetException ) +void SAL_CALL SfxBaseModel::recoverFromFile( const OUString& i_SourceLocation, const OUString& i_SalvagedFile, const Sequence< PropertyValue >& i_MediaDescriptor ) throw ( RuntimeException, IOException, WrappedTargetException, std::exception ) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); @@ -1791,7 +1791,7 @@ void SAL_CALL SfxBaseModel::initNew() throw (frame::DoubleInitializationException, io::IOException, RuntimeException, - Exception) + Exception, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); if ( IsInitialized() ) @@ -1843,7 +1843,7 @@ void SAL_CALL SfxBaseModel::load( const Sequence< beans::PropertyValue >& seqA throw (frame::DoubleInitializationException, io::IOException, RuntimeException, - Exception) + Exception, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); if ( IsInitialized() ) @@ -1973,7 +1973,7 @@ void SAL_CALL SfxBaseModel::load( const Sequence< beans::PropertyValue >& seqA Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFlavor ) throw (datatransfer::UnsupportedFlavorException, io::IOException, - RuntimeException) + RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -2212,7 +2212,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla Sequence< datatransfer::DataFlavor > SAL_CALL SfxBaseModel::getTransferDataFlavors() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -2281,7 +2281,7 @@ Sequence< datatransfer::DataFlavor > SAL_CALL SfxBaseModel::getTransferDataFlavo sal_Bool SAL_CALL SfxBaseModel::isDataFlavorSupported( const datatransfer::DataFlavor& aFlavor ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -2340,7 +2340,7 @@ sal_Bool SAL_CALL SfxBaseModel::isDataFlavorSupported( const datatransfer::DataF // XEventsSupplier -Reference< container::XNameReplace > SAL_CALL SfxBaseModel::getEvents() throw( RuntimeException ) +Reference< container::XNameReplace > SAL_CALL SfxBaseModel::getEvents() throw( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -2356,7 +2356,7 @@ Reference< container::XNameReplace > SAL_CALL SfxBaseModel::getEvents() throw( R // XEmbeddedScripts -Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getBasicLibraries() throw (RuntimeException) +Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getBasicLibraries() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -2366,7 +2366,7 @@ Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getBas return xBasicLibraries; } -Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getDialogLibraries() throw (RuntimeException) +Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getDialogLibraries() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -2376,7 +2376,7 @@ Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getDia return xDialogLibraries; } -::sal_Bool SAL_CALL SfxBaseModel::getAllowMacroExecution() throw (RuntimeException) +::sal_Bool SAL_CALL SfxBaseModel::getAllowMacroExecution() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -2389,7 +2389,7 @@ Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getDia // XScriptInvocationContext -Reference< document::XEmbeddedScripts > SAL_CALL SfxBaseModel::getScriptContainer() throw (RuntimeException) +Reference< document::XEmbeddedScripts > SAL_CALL SfxBaseModel::getScriptContainer() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -2425,7 +2425,7 @@ Reference< document::XEmbeddedScripts > SAL_CALL SfxBaseModel::getScriptContaine // XEventBroadcaster -void SAL_CALL SfxBaseModel::addEventListener( const Reference< document::XEventListener >& aListener ) throw( RuntimeException ) +void SAL_CALL SfxBaseModel::addEventListener( const Reference< document::XEventListener >& aListener ) throw( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); @@ -2436,7 +2436,7 @@ void SAL_CALL SfxBaseModel::addEventListener( const Reference< document::XEventL // XEventBroadcaster -void SAL_CALL SfxBaseModel::removeEventListener( const Reference< document::XEventListener >& aListener ) throw( RuntimeException ) +void SAL_CALL SfxBaseModel::removeEventListener( const Reference< document::XEventListener >& aListener ) throw( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -2448,7 +2448,7 @@ void SAL_CALL SfxBaseModel::removeEventListener( const Reference< document::XEve void SAL_CALL SfxBaseModel::addDocumentEventListener( const Reference< document::XDocumentEventListener >& aListener ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); m_pData->m_aInterfaceContainer.addInterface( ::getCppuType((const Reference< document::XDocumentEventListener >*)0), aListener ); @@ -2456,7 +2456,7 @@ void SAL_CALL SfxBaseModel::addDocumentEventListener( const Reference< document: void SAL_CALL SfxBaseModel::removeDocumentEventListener( const Reference< document::XDocumentEventListener >& aListener ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const Reference< document::XDocumentEventListener >*)0), aListener ); @@ -2464,25 +2464,25 @@ void SAL_CALL SfxBaseModel::removeDocumentEventListener( const Reference< docume void SAL_CALL SfxBaseModel::notifyDocumentEvent( const OUString&, const Reference< frame::XController2 >&, const Any& ) - throw ( lang::IllegalArgumentException, lang::NoSupportException, RuntimeException ) + throw ( lang::IllegalArgumentException, lang::NoSupportException, RuntimeException, std::exception ) { throw lang::NoSupportException("SfxBaseModel controlls all the sent notifications itself!", Reference< XInterface >() ); } Sequence< document::CmisProperty > SAL_CALL SfxBaseModel::getCmisProperties() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return m_pData->m_cmisProperties; } void SAL_CALL SfxBaseModel::setCmisProperties( const Sequence< document::CmisProperty >& _cmisproperties ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { m_pData->m_cmisProperties = _cmisproperties; } void SAL_CALL SfxBaseModel::updateCmisProperties( const Sequence< document::CmisProperty >& aProperties ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); if ( pMedium ) @@ -2504,7 +2504,7 @@ void SAL_CALL SfxBaseModel::updateCmisProperties( const Sequence< document::Cmis } -void SAL_CALL SfxBaseModel::checkOut( ) throw ( RuntimeException ) +void SAL_CALL SfxBaseModel::checkOut( ) throw ( RuntimeException, std::exception ) { SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); if ( pMedium ) @@ -2536,7 +2536,7 @@ void SAL_CALL SfxBaseModel::checkOut( ) throw ( RuntimeException ) } } -void SAL_CALL SfxBaseModel::cancelCheckOut( ) throw ( RuntimeException ) +void SAL_CALL SfxBaseModel::cancelCheckOut( ) throw ( RuntimeException, std::exception ) { SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); if ( pMedium ) @@ -2560,7 +2560,7 @@ void SAL_CALL SfxBaseModel::cancelCheckOut( ) throw ( RuntimeException ) } } -void SAL_CALL SfxBaseModel::checkIn( sal_Bool bIsMajor, const OUString& rMessage ) throw ( RuntimeException ) +void SAL_CALL SfxBaseModel::checkIn( sal_Bool bIsMajor, const OUString& rMessage ) throw ( RuntimeException, std::exception ) { SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); if ( pMedium ) @@ -2601,7 +2601,7 @@ void SAL_CALL SfxBaseModel::checkIn( sal_Bool bIsMajor, const OUString& rMessage } } -uno::Sequence< document::CmisVersion > SAL_CALL SfxBaseModel::getAllVersions( ) throw ( RuntimeException ) +uno::Sequence< document::CmisVersion > SAL_CALL SfxBaseModel::getAllVersions( ) throw ( RuntimeException, std::exception ) { uno::Sequence< document::CmisVersion > aVersions; SfxMedium* pMedium = m_pData->m_pObjectShell->GetMedium(); @@ -2653,22 +2653,22 @@ sal_Bool SfxBaseModel::getBoolPropertyValue( const OUString& rName ) throw ( Run return bValue; } -sal_Bool SAL_CALL SfxBaseModel::isVersionable( ) throw ( RuntimeException ) +sal_Bool SAL_CALL SfxBaseModel::isVersionable( ) throw ( RuntimeException, std::exception ) { return getBoolPropertyValue( "IsVersionable" ); } -sal_Bool SAL_CALL SfxBaseModel::canCheckOut( ) throw ( RuntimeException ) +sal_Bool SAL_CALL SfxBaseModel::canCheckOut( ) throw ( RuntimeException, std::exception ) { return getBoolPropertyValue( "CanCheckOut" ); } -sal_Bool SAL_CALL SfxBaseModel::canCancelCheckOut( ) throw ( RuntimeException ) +sal_Bool SAL_CALL SfxBaseModel::canCancelCheckOut( ) throw ( RuntimeException, std::exception ) { return getBoolPropertyValue( "CanCancelCheckOut" ); } -sal_Bool SAL_CALL SfxBaseModel::canCheckIn( ) throw ( RuntimeException ) +sal_Bool SAL_CALL SfxBaseModel::canCheckIn( ) throw ( RuntimeException, std::exception ) { return getBoolPropertyValue( "CanCheckIn" ); } @@ -3231,7 +3231,7 @@ void SfxBaseModel::postEvent_Impl( const OUString& aName, const Reference< frame } -Reference < container::XIndexAccess > SAL_CALL SfxBaseModel::getViewData() throw(RuntimeException) +Reference < container::XIndexAccess > SAL_CALL SfxBaseModel::getViewData() throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -3274,7 +3274,7 @@ Reference < container::XIndexAccess > SAL_CALL SfxBaseModel::getViewData() throw return m_pData->m_contViewData; } -void SAL_CALL SfxBaseModel::setViewData( const Reference < container::XIndexAccess >& aData ) throw(RuntimeException) +void SAL_CALL SfxBaseModel::setViewData( const Reference < container::XIndexAccess >& aData ) throw(RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -3314,7 +3314,7 @@ sal_Bool SfxBaseModel::hasEventListeners() const return !impl_isDisposed() && (NULL != m_pData->m_aInterfaceContainer.getContainer( ::getCppuType((const Reference< document::XEventListener >*)0) ) ); } -void SAL_CALL SfxBaseModel::addPrintJobListener( const Reference< view::XPrintJobListener >& xListener ) throw (RuntimeException) +void SAL_CALL SfxBaseModel::addPrintJobListener( const Reference< view::XPrintJobListener >& xListener ) throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); @@ -3326,7 +3326,7 @@ void SAL_CALL SfxBaseModel::addPrintJobListener( const Reference< view::XPrintJo } } -void SAL_CALL SfxBaseModel::removePrintJobListener( const Reference< view::XPrintJobListener >& xListener ) throw (RuntimeException) +void SAL_CALL SfxBaseModel::removePrintJobListener( const Reference< view::XPrintJobListener >& xListener ) throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -3342,7 +3342,7 @@ void SAL_CALL SfxBaseModel::removePrintJobListener( const Reference< view::XPrin // the corresponding <so3/iface.hxx> cannon be included because it provides // declaration of class SvBorder that conflicts with ../../inc/viewfrm.hxx class SvObject; -sal_Int64 SAL_CALL SfxBaseModel::getSomething( const Sequence< sal_Int8 >& aIdentifier ) throw(RuntimeException) +sal_Int64 SAL_CALL SfxBaseModel::getSomething( const Sequence< sal_Int8 >& aIdentifier ) throw(RuntimeException, std::exception) { SvGlobalName aName( aIdentifier ); if ((aName == SvGlobalName( SO3_GLOBAL_CLASSID )) || @@ -3383,7 +3383,7 @@ void SfxBaseModel::ListenForStorage_Impl( const Reference< embed::XStorage >& xS } Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentSubStorage( const OUString& aStorageName, sal_Int32 nMode ) - throw ( RuntimeException) + throw ( RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -3408,7 +3408,7 @@ Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentSubStorage( const Sequence< OUString > SAL_CALL SfxBaseModel::getDocumentSubStoragesNames() throw ( io::IOException, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -3447,7 +3447,7 @@ Sequence< OUString > SAL_CALL SfxBaseModel::getDocumentSubStoragesNames() Reference< script::provider::XScriptProvider > SAL_CALL SfxBaseModel::getScriptProvider() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -3560,7 +3560,7 @@ static void ConvertSlotsToCommands( SfxObjectShell* pDoc, Reference< container:: } Reference< ui::XUIConfigurationManager > SAL_CALL SfxBaseModel::getUIConfigurationManager() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return Reference< ui::XUIConfigurationManager >( getUIConfigurationManager2(), UNO_QUERY_THROW ); } @@ -3670,7 +3670,7 @@ void SAL_CALL SfxBaseModel::setVisualAreaSize( sal_Int64 nAspect, const awt::Siz throw ( lang::IllegalArgumentException, embed::WrongStateException, Exception, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -3701,7 +3701,7 @@ awt::Size SAL_CALL SfxBaseModel::getVisualAreaSize( sal_Int64 /*nAspect*/ ) throw ( lang::IllegalArgumentException, embed::WrongStateException, Exception, - RuntimeException) + RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -3716,7 +3716,7 @@ awt::Size SAL_CALL SfxBaseModel::getVisualAreaSize( sal_Int64 /*nAspect*/ ) sal_Int32 SAL_CALL SfxBaseModel::getMapUnit( sal_Int64 /*nAspect*/ ) throw ( Exception, - RuntimeException) + RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -3730,7 +3730,7 @@ embed::VisualRepresentation SAL_CALL SfxBaseModel::getPreferredVisualRepresentat throw ( lang::IllegalArgumentException, embed::WrongStateException, Exception, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -3756,7 +3756,7 @@ void SAL_CALL SfxBaseModel::loadFromStorage( const Reference< embed::XStorage >& frame::DoubleInitializationException, io::IOException, Exception, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); if ( IsInitialized() ) @@ -3796,7 +3796,7 @@ void SAL_CALL SfxBaseModel::storeToStorage( const Reference< embed::XStorage >& throw ( lang::IllegalArgumentException, io::IOException, Exception, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -3858,7 +3858,7 @@ void SAL_CALL SfxBaseModel::switchToStorage( const Reference< embed::XStorage >& throw ( lang::IllegalArgumentException, io::IOException, Exception, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -3890,7 +3890,7 @@ void SAL_CALL SfxBaseModel::switchToStorage( const Reference< embed::XStorage >& Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentStorage() throw ( io::IOException, Exception, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -3903,7 +3903,7 @@ Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentStorage() void SAL_CALL SfxBaseModel::addStorageChangeListener( const Reference< document::XStorageChangeListener >& xListener ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); @@ -3913,7 +3913,7 @@ void SAL_CALL SfxBaseModel::addStorageChangeListener( void SAL_CALL SfxBaseModel::removeStorageChangeListener( const Reference< document::XStorageChangeListener >& xListener ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -3939,7 +3939,7 @@ bool SfxBaseModel::impl_getPrintHelper() // css.frame.XModule void SAL_CALL SfxBaseModel::setIdentifier(const OUString& Identifier) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); m_pData->m_sModuleIdentifier = Identifier; @@ -3948,7 +3948,7 @@ bool SfxBaseModel::impl_getPrintHelper() // css.frame.XModule OUString SAL_CALL SfxBaseModel::getIdentifier() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); if (!m_pData->m_sModuleIdentifier.isEmpty()) @@ -4000,7 +4000,7 @@ Reference< frame::XUntitledNumbers > SfxBaseModel::impl_getUntitledHelper () // css.frame.XTitle OUString SAL_CALL SfxBaseModel::getTitle() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // SYNCHRONIZED -> SfxModelGuard aGuard( *this ); @@ -4053,7 +4053,7 @@ OUString SAL_CALL SfxBaseModel::getTitle() // css.frame.XTitle void SAL_CALL SfxBaseModel::setTitle( const OUString& sTitle ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { // SYNCHRONIZED -> SfxModelGuard aGuard( *this ); @@ -4065,7 +4065,7 @@ void SAL_CALL SfxBaseModel::setTitle( const OUString& sTitle ) // css.frame.XTitleChangeBroadcaster void SAL_CALL SfxBaseModel::addTitleChangeListener( const Reference< frame::XTitleChangeListener >& xListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { // SYNCHRONIZED -> SfxModelGuard aGuard( *this, SfxModelGuard::E_INITIALIZING ); @@ -4078,7 +4078,7 @@ void SAL_CALL SfxBaseModel::addTitleChangeListener( const Reference< frame::XTit // css.frame.XTitleChangeBroadcaster void SAL_CALL SfxBaseModel::removeTitleChangeListener( const Reference< frame::XTitleChangeListener >& xListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { // SYNCHRONIZED -> SfxModelGuard aGuard( *this ); @@ -4092,7 +4092,7 @@ void SAL_CALL SfxBaseModel::removeTitleChangeListener( const Reference< frame::X // css.frame.XUntitledNumbers ::sal_Int32 SAL_CALL SfxBaseModel::leaseNumber( const Reference< XInterface >& xComponent ) throw (lang::IllegalArgumentException, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); @@ -4103,7 +4103,7 @@ void SAL_CALL SfxBaseModel::removeTitleChangeListener( const Reference< frame::X // css.frame.XUntitledNumbers void SAL_CALL SfxBaseModel::releaseNumber( ::sal_Int32 nNumber ) throw (lang::IllegalArgumentException, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); impl_getUntitledHelper ()->releaseNumber (nNumber); @@ -4113,7 +4113,7 @@ void SAL_CALL SfxBaseModel::releaseNumber( ::sal_Int32 nNumber ) // css.frame.XUntitledNumbers void SAL_CALL SfxBaseModel::releaseNumberForComponent( const Reference< XInterface >& xComponent ) throw (lang::IllegalArgumentException, - RuntimeException ) + RuntimeException, std::exception ) { SfxModelGuard aGuard( *this ); impl_getUntitledHelper ()->releaseNumberForComponent (xComponent); @@ -4122,7 +4122,7 @@ void SAL_CALL SfxBaseModel::releaseNumberForComponent( const Reference< XInterfa // css.frame.XUntitledNumbers OUString SAL_CALL SfxBaseModel::getUntitledPrefix() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); return impl_getUntitledHelper ()->getUntitledPrefix (); @@ -4131,7 +4131,7 @@ OUString SAL_CALL SfxBaseModel::getUntitledPrefix() // frame::XModel2 Reference< container::XEnumeration > SAL_CALL SfxBaseModel::getControllers() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4149,7 +4149,7 @@ Reference< container::XEnumeration > SAL_CALL SfxBaseModel::getControllers() // frame::XModel2 Sequence< OUString > SAL_CALL SfxBaseModel::getAvailableViewControllerNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4167,7 +4167,7 @@ Sequence< OUString > SAL_CALL SfxBaseModel::getAvailableViewControllerNames() Reference< frame::XController2 > SAL_CALL SfxBaseModel::createDefaultViewController( const Reference< frame::XFrame >& i_rFrame ) throw (RuntimeException , lang::IllegalArgumentException, - Exception ) + Exception, std::exception ) { SfxModelGuard aGuard( *this ); @@ -4283,7 +4283,7 @@ Reference< frame::XController2 > SAL_CALL SfxBaseModel::createViewController( const OUString& i_rViewName, const Sequence< PropertyValue >& i_rArguments, const Reference< XFrame >& i_rFrame ) throw (RuntimeException , lang::IllegalArgumentException, - Exception ) + Exception, std::exception ) { SfxModelGuard aGuard( *this ); @@ -4369,7 +4369,7 @@ Reference< frame::XController2 > SAL_CALL SfxBaseModel::createViewController( // rdf::XRepositorySupplier: Reference< rdf::XRepository > SAL_CALL -SfxBaseModel::getRDFRepository() throw (RuntimeException) +SfxBaseModel::getRDFRepository() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4384,7 +4384,7 @@ SfxBaseModel::getRDFRepository() throw (RuntimeException) // rdf::XNode: OUString SAL_CALL -SfxBaseModel::getStringValue() throw (RuntimeException) +SfxBaseModel::getStringValue() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4399,7 +4399,7 @@ SfxBaseModel::getStringValue() throw (RuntimeException) // rdf::XURI: OUString SAL_CALL -SfxBaseModel::getNamespace() throw (RuntimeException) +SfxBaseModel::getNamespace() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4413,7 +4413,7 @@ SfxBaseModel::getNamespace() throw (RuntimeException) } OUString SAL_CALL -SfxBaseModel::getLocalName() throw (RuntimeException) +SfxBaseModel::getLocalName() throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4430,7 +4430,7 @@ SfxBaseModel::getLocalName() throw (RuntimeException) Reference< rdf::XMetadatable > SAL_CALL SfxBaseModel::getElementByMetadataReference( const beans::StringPair & i_rReference) -throw (RuntimeException) +throw (RuntimeException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4445,7 +4445,7 @@ throw (RuntimeException) Reference< rdf::XMetadatable > SAL_CALL SfxBaseModel::getElementByURI(const Reference< rdf::XURI > & i_xURI) -throw (RuntimeException, lang::IllegalArgumentException) +throw (RuntimeException, lang::IllegalArgumentException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4461,7 +4461,7 @@ throw (RuntimeException, lang::IllegalArgumentException) Sequence< Reference< rdf::XURI > > SAL_CALL SfxBaseModel::getMetadataGraphsWithType( const Reference<rdf::XURI> & i_xType) -throw (RuntimeException, lang::IllegalArgumentException) +throw (RuntimeException, lang::IllegalArgumentException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4478,7 +4478,7 @@ Reference<rdf::XURI> SAL_CALL SfxBaseModel::addMetadataFile(const OUString & i_rFileName, const Sequence < Reference< rdf::XURI > > & i_rTypes) throw (RuntimeException, lang::IllegalArgumentException, - container::ElementExistException) + container::ElementExistException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4499,7 +4499,7 @@ SfxBaseModel::importMetadataFile(::sal_Int16 i_Format, const Sequence < Reference< rdf::XURI > > & i_rTypes) throw (RuntimeException, lang::IllegalArgumentException, datatransfer::UnsupportedFlavorException, - container::ElementExistException, rdf::ParseException, io::IOException) + container::ElementExistException, rdf::ParseException, io::IOException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4517,7 +4517,7 @@ void SAL_CALL SfxBaseModel::removeMetadataFile( const Reference< rdf::XURI > & i_xGraphName) throw (RuntimeException, lang::IllegalArgumentException, - container::NoSuchElementException) + container::NoSuchElementException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4533,7 +4533,7 @@ throw (RuntimeException, lang::IllegalArgumentException, void SAL_CALL SfxBaseModel::addContentOrStylesFile(const OUString & i_rFileName) throw (RuntimeException, lang::IllegalArgumentException, - container::ElementExistException) + container::ElementExistException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4549,7 +4549,7 @@ throw (RuntimeException, lang::IllegalArgumentException, void SAL_CALL SfxBaseModel::removeContentOrStylesFile(const OUString & i_rFileName) throw (RuntimeException, lang::IllegalArgumentException, - container::NoSuchElementException) + container::NoSuchElementException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4568,7 +4568,7 @@ SfxBaseModel::loadMetadataFromStorage( Reference<rdf::XURI> const & i_xBaseURI, Reference<task::XInteractionHandler> const & i_xHandler) throw (RuntimeException, lang::IllegalArgumentException, - lang::WrappedTargetException) + lang::WrappedTargetException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4596,7 +4596,7 @@ void SAL_CALL SfxBaseModel::storeMetadataToStorage( Reference< embed::XStorage > const & i_xStorage) throw (RuntimeException, lang::IllegalArgumentException, - lang::WrappedTargetException) + lang::WrappedTargetException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4613,7 +4613,7 @@ void SAL_CALL SfxBaseModel::loadMetadataFromMedium( const Sequence< beans::PropertyValue > & i_rMedium) throw (RuntimeException, lang::IllegalArgumentException, - lang::WrappedTargetException) + lang::WrappedTargetException, std::exception) { SfxModelGuard aGuard( *this ); @@ -4640,7 +4640,7 @@ void SAL_CALL SfxBaseModel::storeMetadataToMedium( const Sequence< beans::PropertyValue > & i_rMedium) throw (RuntimeException, lang::IllegalArgumentException, - lang::WrappedTargetException) + lang::WrappedTargetException, std::exception) { SfxModelGuard aGuard( *this ); diff --git a/sfx2/source/doc/sfxmodelfactory.cxx b/sfx2/source/doc/sfxmodelfactory.cxx index e40a94d60845..e62283fafb4c 100644 --- a/sfx2/source/doc/sfxmodelfactory.cxx +++ b/sfx2/source/doc/sfxmodelfactory.cxx @@ -76,13 +76,13 @@ namespace sfx2 ); // XSingleServiceFactory - virtual Reference< XInterface > SAL_CALL createInstance( ) throw (Exception, RuntimeException); - virtual Reference< XInterface > SAL_CALL createInstanceWithArguments( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException); + virtual Reference< XInterface > SAL_CALL createInstance( ) throw (Exception, RuntimeException, std::exception); + virtual Reference< XInterface > SAL_CALL createInstanceWithArguments( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception); // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (RuntimeException); - virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (RuntimeException); - virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (RuntimeException, std::exception); + virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (RuntimeException, std::exception); protected: virtual ~SfxModelFactory(); @@ -123,7 +123,7 @@ namespace sfx2 } - Reference< XInterface > SAL_CALL SfxModelFactory::createInstance( ) throw (Exception, RuntimeException) + Reference< XInterface > SAL_CALL SfxModelFactory::createInstance( ) throw (Exception, RuntimeException, std::exception) { return createInstanceWithArguments( Sequence< Any >() ); } @@ -152,7 +152,7 @@ namespace sfx2 } - Reference< XInterface > SAL_CALL SfxModelFactory::createInstanceWithArguments( const Sequence< Any >& _rArguments ) throw (Exception, RuntimeException) + Reference< XInterface > SAL_CALL SfxModelFactory::createInstanceWithArguments( const Sequence< Any >& _rArguments ) throw (Exception, RuntimeException, std::exception) { ::comphelper::NamedValueCollection aArgs( _rArguments ); const sal_Bool bEmbeddedObject = aArgs.getOrDefault( "EmbeddedObject", sal_False ); @@ -189,17 +189,17 @@ namespace sfx2 return xInstance; } - OUString SAL_CALL SfxModelFactory::getImplementationName( ) throw (RuntimeException) + OUString SAL_CALL SfxModelFactory::getImplementationName( ) throw (RuntimeException, std::exception) { return m_sImplementationName; } - ::sal_Bool SAL_CALL SfxModelFactory::supportsService( const OUString& _rServiceName ) throw (RuntimeException) + ::sal_Bool SAL_CALL SfxModelFactory::supportsService( const OUString& _rServiceName ) throw (RuntimeException, std::exception) { return cppu::supportsService(this, _rServiceName); } - Sequence< OUString > SAL_CALL SfxModelFactory::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > SAL_CALL SfxModelFactory::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { return m_aServiceNames; } |