diff options
Diffstat (limited to 'sw/source/core/unocore/unoidx.cxx')
-rw-r--r-- | sw/source/core/unocore/unoidx.cxx | 162 |
1 files changed, 43 insertions, 119 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index a25780a4e67d..c06361dfed3b 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -67,7 +67,7 @@ using namespace ::com::sun::star; /// @throws lang::IllegalArgumentException static OUString -lcl_AnyToString(uno::Any const& rVal) throw (lang::IllegalArgumentException) +lcl_AnyToString(uno::Any const& rVal) { OUString sRet; if(!(rVal >>= sRet)) @@ -79,7 +79,7 @@ lcl_AnyToString(uno::Any const& rVal) throw (lang::IllegalArgumentException) /// @throws lang::IllegalArgumentException static sal_Int16 -lcl_AnyToInt16(uno::Any const& rVal) throw (lang::IllegalArgumentException) +lcl_AnyToInt16(uno::Any const& rVal) { sal_Int16 nRet = 0; if(!(rVal >>= nRet)) @@ -91,7 +91,7 @@ lcl_AnyToInt16(uno::Any const& rVal) throw (lang::IllegalArgumentException) /// @throws lang::IllegalArgumentException static bool -lcl_AnyToBool(uno::Any const& rVal) throw (lang::IllegalArgumentException) +lcl_AnyToBool(uno::Any const& rVal) { bool bRet = false; if(!(rVal >>= bRet)) @@ -105,7 +105,6 @@ lcl_AnyToBool(uno::Any const& rVal) throw (lang::IllegalArgumentException) template<typename T> void lcl_AnyToBitMask(uno::Any const& rValue, T & rBitMask, const T nBit) -throw (lang::IllegalArgumentException) { rBitMask = lcl_AnyToBool(rValue) ? (rBitMask | nBit) @@ -203,29 +202,23 @@ public: explicit StyleAccess_Impl(SwXDocumentIndex& rParentIdx); // XServiceInfo - virtual OUString SAL_CALL getImplementationName() - throw (uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL - supportsService(const OUString& rServiceName) - throw (uno::RuntimeException, std::exception) override; + supportsService(const OUString& rServiceName) override; virtual uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (uno::RuntimeException, std::exception) override; + getSupportedServiceNames() override; // XElementAccess - virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL hasElements() throw (uno::RuntimeException, std::exception) override; + virtual uno::Type SAL_CALL getElementType() override; + virtual sal_Bool SAL_CALL hasElements() override; // XIndexAccess - virtual sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException, std::exception) override; - virtual uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) - throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getCount() override; + virtual uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override; // XIndexReplace virtual void SAL_CALL - replaceByIndex(sal_Int32 Index, const uno::Any& rElement) - throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, - lang::WrappedTargetException, uno::RuntimeException, std::exception) override; + replaceByIndex(sal_Int32 Index, const uno::Any& rElement) override; }; @@ -249,29 +242,23 @@ public: explicit TokenAccess_Impl(SwXDocumentIndex& rParentIdx); // XServiceInfo - virtual OUString SAL_CALL getImplementationName() - throw (uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL - supportsService(const OUString& rServiceName) - throw (uno::RuntimeException, std::exception) override; + supportsService(const OUString& rServiceName) override; virtual uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (uno::RuntimeException, std::exception) override; + getSupportedServiceNames() override; // XElementAccess - virtual uno::Type SAL_CALL getElementType() throw (uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL hasElements() throw (uno::RuntimeException, std::exception) override; + virtual uno::Type SAL_CALL getElementType() override; + virtual sal_Bool SAL_CALL hasElements() override; // XIndexAccess - virtual sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException, std::exception) override; - virtual uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) - throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) override; + virtual sal_Int32 SAL_CALL getCount() override; + virtual uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override; // XIndexReplace virtual void SAL_CALL - replaceByIndex(sal_Int32 Index, const uno::Any& rElement) - throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, - lang::WrappedTargetException, uno::RuntimeException, std::exception) override; + replaceByIndex(sal_Int32 Index, const uno::Any& rElement) override; }; @@ -459,26 +446,24 @@ const uno::Sequence< sal_Int8 > & SwXDocumentIndex::getUnoTunnelId() sal_Int64 SAL_CALL SwXDocumentIndex::getSomething(const uno::Sequence< sal_Int8 >& rId) -throw (uno::RuntimeException, std::exception) { return ::sw::UnoTunnelImpl<SwXDocumentIndex>(rId, this); } OUString SAL_CALL -SwXDocumentIndex::getImplementationName() throw (uno::RuntimeException, std::exception) +SwXDocumentIndex::getImplementationName() { return OUString("SwXDocumentIndex"); } sal_Bool SAL_CALL SwXDocumentIndex::supportsService(const OUString& rServiceName) -throw (uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SAL_CALL -SwXDocumentIndex::getSupportedServiceNames() throw (uno::RuntimeException, std::exception) +SwXDocumentIndex::getSupportedServiceNames() { SolarMutexGuard g; @@ -513,7 +498,6 @@ SwXDocumentIndex::getSupportedServiceNames() throw (uno::RuntimeException, std:: } OUString SAL_CALL SwXDocumentIndex::getServiceName() -throw (uno::RuntimeException, std::exception) { SolarMutexGuard g; @@ -538,13 +522,13 @@ throw (uno::RuntimeException, std::exception) return SwXServiceProvider::GetProviderName(nObjectType); } -void SAL_CALL SwXDocumentIndex::update() throw (uno::RuntimeException, std::exception) +void SAL_CALL SwXDocumentIndex::update() { return refresh(); // update is from deprecated XDocumentIndex } uno::Reference< beans::XPropertySetInfo > SAL_CALL -SwXDocumentIndex::getPropertySetInfo() throw (uno::RuntimeException, std::exception) +SwXDocumentIndex::getPropertySetInfo() { SolarMutexGuard g; @@ -556,9 +540,6 @@ SwXDocumentIndex::getPropertySetInfo() throw (uno::RuntimeException, std::except void SAL_CALL SwXDocumentIndex::setPropertyValue( const OUString& rPropertyName, const uno::Any& rValue) -throw (beans::UnknownPropertyException, beans::PropertyVetoException, - lang::IllegalArgumentException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -891,8 +872,6 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException, uno::Any SAL_CALL SwXDocumentIndex::getPropertyValue(const OUString& rPropertyName) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1224,8 +1203,6 @@ void SAL_CALL SwXDocumentIndex::addPropertyChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { OSL_FAIL("SwXDocumentIndex::addPropertyChangeListener(): not implemented"); } @@ -1234,8 +1211,6 @@ void SAL_CALL SwXDocumentIndex::removePropertyChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { OSL_FAIL("SwXDocumentIndex::removePropertyChangeListener(): not implemented"); } @@ -1244,8 +1219,6 @@ void SAL_CALL SwXDocumentIndex::addVetoableChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*xListener*/) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { OSL_FAIL("SwXDocumentIndex::addVetoableChangeListener(): not implemented"); } @@ -1254,8 +1227,6 @@ void SAL_CALL SwXDocumentIndex::removeVetoableChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*xListener*/) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { OSL_FAIL("SwXDocumentIndex::removeVetoableChangeListener(): not implemented"); } @@ -1281,7 +1252,7 @@ void lcl_CalcLayout(SwDoc *pDoc) } // XRefreshable -void SAL_CALL SwXDocumentIndex::refresh() throw (uno::RuntimeException, std::exception) +void SAL_CALL SwXDocumentIndex::refresh() { { SolarMutexGuard g; @@ -1316,7 +1287,6 @@ void SAL_CALL SwXDocumentIndex::refresh() throw (uno::RuntimeException, std::exc void SAL_CALL SwXDocumentIndex::addRefreshListener( const uno::Reference<util::XRefreshListener>& xListener) -throw (uno::RuntimeException, std::exception) { // no need to lock here as m_pImpl is const and container threadsafe m_pImpl->m_Listeners.addInterface( @@ -1325,7 +1295,6 @@ throw (uno::RuntimeException, std::exception) void SAL_CALL SwXDocumentIndex::removeRefreshListener( const uno::Reference<util::XRefreshListener>& xListener) -throw (uno::RuntimeException, std::exception) { // no need to lock here as m_pImpl is const and container threadsafe m_pImpl->m_Listeners.removeInterface( @@ -1334,7 +1303,6 @@ throw (uno::RuntimeException, std::exception) void SAL_CALL SwXDocumentIndex::attach(const uno::Reference< text::XTextRange > & xTextRange) -throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1395,7 +1363,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) } uno::Reference< text::XTextRange > SAL_CALL -SwXDocumentIndex::getAnchor() throw (uno::RuntimeException, std::exception) +SwXDocumentIndex::getAnchor() { SolarMutexGuard aGuard; @@ -1420,7 +1388,7 @@ SwXDocumentIndex::getAnchor() throw (uno::RuntimeException, std::exception) return xRet; } -void SAL_CALL SwXDocumentIndex::dispose() throw (uno::RuntimeException, std::exception) +void SAL_CALL SwXDocumentIndex::dispose() { SolarMutexGuard aGuard; @@ -1436,7 +1404,6 @@ void SAL_CALL SwXDocumentIndex::dispose() throw (uno::RuntimeException, std::exc void SAL_CALL SwXDocumentIndex::addEventListener( const uno::Reference< lang::XEventListener > & xListener) -throw (uno::RuntimeException, std::exception) { // no need to lock here as m_pImpl is const and container threadsafe m_pImpl->m_Listeners.addInterface( @@ -1446,14 +1413,13 @@ throw (uno::RuntimeException, std::exception) void SAL_CALL SwXDocumentIndex::removeEventListener( const uno::Reference< lang::XEventListener > & xListener) -throw (uno::RuntimeException, std::exception) { // no need to lock here as m_pImpl is const and container threadsafe m_pImpl->m_Listeners.removeInterface( cppu::UnoType<lang::XEventListener>::get(), xListener); } -OUString SAL_CALL SwXDocumentIndex::getName() throw (uno::RuntimeException, std::exception) +OUString SAL_CALL SwXDocumentIndex::getName() { SolarMutexGuard g; @@ -1475,7 +1441,7 @@ OUString SAL_CALL SwXDocumentIndex::getName() throw (uno::RuntimeException, std: } void SAL_CALL -SwXDocumentIndex::setName(const OUString& rName) throw (uno::RuntimeException, std::exception) +SwXDocumentIndex::setName(const OUString& rName) { SolarMutexGuard g; @@ -1716,25 +1682,23 @@ const uno::Sequence< sal_Int8 > & SwXDocumentIndexMark::getUnoTunnelId() sal_Int64 SAL_CALL SwXDocumentIndexMark::getSomething(const uno::Sequence< sal_Int8 >& rId) -throw (uno::RuntimeException, std::exception) { return ::sw::UnoTunnelImpl<SwXDocumentIndexMark>(rId, this); } OUString SAL_CALL -SwXDocumentIndexMark::getImplementationName() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexMark::getImplementationName() { return OUString("SwXDocumentIndexMark"); } sal_Bool SAL_CALL SwXDocumentIndexMark::supportsService(const OUString& rServiceName) -throw (uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SAL_CALL -SwXDocumentIndexMark::getSupportedServiceNames() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexMark::getSupportedServiceNames() { SolarMutexGuard g; @@ -1763,7 +1727,7 @@ SwXDocumentIndexMark::getSupportedServiceNames() throw (uno::RuntimeException, s } OUString SAL_CALL -SwXDocumentIndexMark::getMarkEntry() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexMark::getMarkEntry() { SolarMutexGuard aGuard; @@ -1786,7 +1750,6 @@ SwXDocumentIndexMark::getMarkEntry() throw (uno::RuntimeException, std::exceptio void SAL_CALL SwXDocumentIndexMark::setMarkEntry(const OUString& rIndexEntry) -throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1821,7 +1784,6 @@ throw (uno::RuntimeException, std::exception) void SAL_CALL SwXDocumentIndexMark::attach( const uno::Reference< text::XTextRange > & xTextRange) -throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2034,7 +1996,7 @@ void SwXDocumentIndexMark::Impl::InsertTOXMark( } uno::Reference< text::XTextRange > SAL_CALL -SwXDocumentIndexMark::getAnchor() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexMark::getAnchor() { SolarMutexGuard aGuard; @@ -2068,7 +2030,7 @@ SwXDocumentIndexMark::getAnchor() throw (uno::RuntimeException, std::exception) } void SAL_CALL -SwXDocumentIndexMark::dispose() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexMark::dispose() { SolarMutexGuard aGuard; @@ -2082,7 +2044,6 @@ SwXDocumentIndexMark::dispose() throw (uno::RuntimeException, std::exception) void SAL_CALL SwXDocumentIndexMark::addEventListener( const uno::Reference< lang::XEventListener > & xListener) -throw (uno::RuntimeException, std::exception) { // no need to lock here as m_pImpl is const and container threadsafe m_pImpl->m_EventListeners.addInterface(xListener); @@ -2091,14 +2052,13 @@ throw (uno::RuntimeException, std::exception) void SAL_CALL SwXDocumentIndexMark::removeEventListener( const uno::Reference< lang::XEventListener > & xListener) -throw (uno::RuntimeException, std::exception) { // no need to lock here as m_pImpl is const and container threadsafe m_pImpl->m_EventListeners.removeInterface(xListener); } uno::Reference< beans::XPropertySetInfo > SAL_CALL -SwXDocumentIndexMark::getPropertySetInfo() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexMark::getPropertySetInfo() { SolarMutexGuard g; @@ -2129,9 +2089,6 @@ SwXDocumentIndexMark::getPropertySetInfo() throw (uno::RuntimeException, std::ex void SAL_CALL SwXDocumentIndexMark::setPropertyValue( const OUString& rPropertyName, const uno::Any& rValue) -throw (beans::UnknownPropertyException, beans::PropertyVetoException, - lang::IllegalArgumentException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2277,8 +2234,6 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException, uno::Any SAL_CALL SwXDocumentIndexMark::getPropertyValue(const OUString& rPropertyName) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2394,8 +2349,6 @@ void SAL_CALL SwXDocumentIndexMark::addPropertyChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { OSL_FAIL("SwXDocumentIndexMark::addPropertyChangeListener(): not implemented"); } @@ -2404,8 +2357,6 @@ void SAL_CALL SwXDocumentIndexMark::removePropertyChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { OSL_FAIL("SwXDocumentIndexMark::removePropertyChangeListener(): not implemented"); } @@ -2414,8 +2365,6 @@ void SAL_CALL SwXDocumentIndexMark::addVetoableChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*xListener*/) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { OSL_FAIL("SwXDocumentIndexMark::addVetoableChangeListener(): not implemented"); } @@ -2424,8 +2373,6 @@ void SAL_CALL SwXDocumentIndexMark::removeVetoableChangeListener( const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*xListener*/) -throw (beans::UnknownPropertyException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { OSL_FAIL("SwXDocumentIndexMark::removeVetoableChangeListener(): not implemented"); } @@ -2440,7 +2387,7 @@ SwXDocumentIndexes::~SwXDocumentIndexes() } OUString SAL_CALL -SwXDocumentIndexes::getImplementationName() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexes::getImplementationName() { return OUString("SwXDocumentIndexes"); } @@ -2451,20 +2398,19 @@ static char const*const g_ServicesDocumentIndexes[] = }; sal_Bool SAL_CALL SwXDocumentIndexes::supportsService(const OUString& rServiceName) -throw (uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SAL_CALL -SwXDocumentIndexes::getSupportedServiceNames() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexes::getSupportedServiceNames() { return ::sw::GetSupportedServiceNamesImpl( SAL_N_ELEMENTS(g_ServicesDocumentIndexes), g_ServicesDocumentIndexes); } sal_Int32 SAL_CALL -SwXDocumentIndexes::getCount() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexes::getCount() { SolarMutexGuard aGuard; @@ -2487,8 +2433,6 @@ SwXDocumentIndexes::getCount() throw (uno::RuntimeException, std::exception) uno::Any SAL_CALL SwXDocumentIndexes::getByIndex(sal_Int32 nIndex) -throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2519,8 +2463,6 @@ throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::Any SAL_CALL SwXDocumentIndexes::getByName(const OUString& rName) -throw (container::NoSuchElementException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2548,7 +2490,7 @@ throw (container::NoSuchElementException, lang::WrappedTargetException, } uno::Sequence< OUString > SAL_CALL -SwXDocumentIndexes::getElementNames() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexes::getElementNames() { SolarMutexGuard aGuard; @@ -2584,7 +2526,6 @@ SwXDocumentIndexes::getElementNames() throw (uno::RuntimeException, std::excepti sal_Bool SAL_CALL SwXDocumentIndexes::hasByName(const OUString& rName) -throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2609,13 +2550,13 @@ throw (uno::RuntimeException, std::exception) } uno::Type SAL_CALL -SwXDocumentIndexes::getElementType() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexes::getElementType() { return cppu::UnoType<text::XDocumentIndex>::get(); } sal_Bool SAL_CALL -SwXDocumentIndexes::hasElements() throw (uno::RuntimeException, std::exception) +SwXDocumentIndexes::hasElements() { return 0 != getCount(); } @@ -2632,7 +2573,6 @@ SwXDocumentIndex::StyleAccess_Impl::~StyleAccess_Impl() OUString SAL_CALL SwXDocumentIndex::StyleAccess_Impl::getImplementationName() -throw (uno::RuntimeException, std::exception) { return OUString("SwXDocumentIndex::StyleAccess_Impl"); } @@ -2644,14 +2584,12 @@ static char const*const g_ServicesIndexStyleAccess[] = sal_Bool SAL_CALL SwXDocumentIndex::StyleAccess_Impl::supportsService(const OUString& rServiceName) -throw (uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SAL_CALL SwXDocumentIndex::StyleAccess_Impl::getSupportedServiceNames() -throw (uno::RuntimeException, std::exception) { return ::sw::GetSupportedServiceNamesImpl( SAL_N_ELEMENTS(g_ServicesIndexStyleAccess), @@ -2661,8 +2599,6 @@ throw (uno::RuntimeException, std::exception) void SAL_CALL SwXDocumentIndex::StyleAccess_Impl::replaceByIndex( sal_Int32 nIndex, const uno::Any& rElement) -throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, - lang::WrappedTargetException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2697,15 +2633,13 @@ throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, } sal_Int32 SAL_CALL -SwXDocumentIndex::StyleAccess_Impl::getCount() throw (uno::RuntimeException, std::exception) +SwXDocumentIndex::StyleAccess_Impl::getCount() { return MAXLEVEL; } uno::Any SAL_CALL SwXDocumentIndex::StyleAccess_Impl::getByIndex(sal_Int32 nIndex) -throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2738,13 +2672,12 @@ throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::Type SAL_CALL SwXDocumentIndex::StyleAccess_Impl::getElementType() -throw (uno::RuntimeException, std::exception) { return cppu::UnoType<uno::Sequence<OUString>>::get(); } sal_Bool SAL_CALL -SwXDocumentIndex::StyleAccess_Impl::hasElements() throw (uno::RuntimeException, std::exception) +SwXDocumentIndex::StyleAccess_Impl::hasElements() { return true; } @@ -2761,7 +2694,6 @@ SwXDocumentIndex::TokenAccess_Impl::~TokenAccess_Impl() OUString SAL_CALL SwXDocumentIndex::TokenAccess_Impl::getImplementationName() -throw (uno::RuntimeException, std::exception) { return OUString("SwXDocumentIndex::TokenAccess_Impl"); } @@ -2773,14 +2705,12 @@ static char const*const g_ServicesIndexTokenAccess[] = sal_Bool SAL_CALL SwXDocumentIndex::TokenAccess_Impl::supportsService( const OUString& rServiceName) -throw (uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SAL_CALL SwXDocumentIndex::TokenAccess_Impl::getSupportedServiceNames() -throw (uno::RuntimeException, std::exception) { return ::sw::GetSupportedServiceNamesImpl( SAL_N_ELEMENTS(g_ServicesIndexTokenAccess), @@ -2809,8 +2739,6 @@ static const struct TokenType_ g_TokenTypes[] = void SAL_CALL SwXDocumentIndex::TokenAccess_Impl::replaceByIndex( sal_Int32 nIndex, const uno::Any& rElement) -throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, - lang::WrappedTargetException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2989,7 +2917,7 @@ throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, } sal_Int32 SAL_CALL -SwXDocumentIndex::TokenAccess_Impl::getCount() throw (uno::RuntimeException, std::exception) +SwXDocumentIndex::TokenAccess_Impl::getCount() { SolarMutexGuard aGuard; @@ -2999,8 +2927,6 @@ SwXDocumentIndex::TokenAccess_Impl::getCount() throw (uno::RuntimeException, std uno::Any SAL_CALL SwXDocumentIndex::TokenAccess_Impl::getByIndex(sal_Int32 nIndex) -throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, - uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -3250,14 +3176,12 @@ throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::Type SAL_CALL SwXDocumentIndex::TokenAccess_Impl::getElementType() -throw (uno::RuntimeException, std::exception) { return cppu::UnoType<uno::Sequence< beans::PropertyValues >>::get(); } sal_Bool SAL_CALL SwXDocumentIndex::TokenAccess_Impl::hasElements() -throw (uno::RuntimeException, std::exception) { return true; } |