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 /starmath/source | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/accessibility.cxx | 134 | ||||
-rw-r--r-- | starmath/source/accessibility.hxx | 134 | ||||
-rw-r--r-- | starmath/source/mathmlexport.cxx | 2 | ||||
-rw-r--r-- | starmath/source/mathmlexport.hxx | 2 | ||||
-rw-r--r-- | starmath/source/mathmlimport.cxx | 4 | ||||
-rw-r--r-- | starmath/source/mathmlimport.hxx | 4 | ||||
-rw-r--r-- | starmath/source/smdetect.cxx | 8 | ||||
-rw-r--r-- | starmath/source/smdetect.hxx | 2 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 20 |
9 files changed, 155 insertions, 155 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 3c554a93d193..20b455710536 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -172,14 +172,14 @@ void SmGraphicAccessible::LaunchEvent( } uno::Reference< XAccessibleContext > SAL_CALL SmGraphicAccessible::getAccessibleContext() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return this; } sal_Bool SAL_CALL SmGraphicAccessible::containsPoint( const awt::Point& aPoint ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { //! the arguments coordinates are relativ to the current window ! //! Thus the top-left point is (0, 0) @@ -195,7 +195,7 @@ sal_Bool SAL_CALL SmGraphicAccessible::containsPoint( const awt::Point& aPoint ) uno::Reference< XAccessible > SAL_CALL SmGraphicAccessible::getAccessibleAtPoint( const awt::Point& aPoint ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; XAccessible *pRes = 0; @@ -205,7 +205,7 @@ uno::Reference< XAccessible > SAL_CALL SmGraphicAccessible::getAccessibleAtPoint } awt::Rectangle SAL_CALL SmGraphicAccessible::getBounds() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -216,7 +216,7 @@ awt::Rectangle SAL_CALL SmGraphicAccessible::getBounds() } awt::Point SAL_CALL SmGraphicAccessible::getLocation() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -228,7 +228,7 @@ awt::Point SAL_CALL SmGraphicAccessible::getLocation() } awt::Point SAL_CALL SmGraphicAccessible::getLocationOnScreen() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -239,7 +239,7 @@ awt::Point SAL_CALL SmGraphicAccessible::getLocationOnScreen() } awt::Size SAL_CALL SmGraphicAccessible::getSize() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -257,7 +257,7 @@ awt::Size SAL_CALL SmGraphicAccessible::getSize() } void SAL_CALL SmGraphicAccessible::grabFocus() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -267,7 +267,7 @@ void SAL_CALL SmGraphicAccessible::grabFocus() } sal_Int32 SAL_CALL SmGraphicAccessible::getForeground() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -277,7 +277,7 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getForeground() } sal_Int32 SAL_CALL SmGraphicAccessible::getBackground() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -293,7 +293,7 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getBackground() } sal_Int32 SAL_CALL SmGraphicAccessible::getAccessibleChildCount() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return 0; @@ -301,14 +301,14 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getAccessibleChildCount() Reference< XAccessible > SAL_CALL SmGraphicAccessible::getAccessibleChild( sal_Int32 /*i*/ ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { SolarMutexGuard aGuard; throw IndexOutOfBoundsException(); // there is no child... } Reference< XAccessible > SAL_CALL SmGraphicAccessible::getAccessibleParent() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -320,7 +320,7 @@ Reference< XAccessible > SAL_CALL SmGraphicAccessible::getAccessibleParent() } sal_Int32 SAL_CALL SmGraphicAccessible::getAccessibleIndexInParent() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Int32 nIdx = -1; @@ -336,14 +336,14 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getAccessibleIndexInParent() } sal_Int16 SAL_CALL SmGraphicAccessible::getAccessibleRole() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return AccessibleRole::DOCUMENT; } OUString SAL_CALL SmGraphicAccessible::getAccessibleDescription() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; SmDocShell *pDoc = GetDoc_Impl(); @@ -351,14 +351,14 @@ OUString SAL_CALL SmGraphicAccessible::getAccessibleDescription() } OUString SAL_CALL SmGraphicAccessible::getAccessibleName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return aAccName; } Reference< XAccessibleRelationSet > SAL_CALL SmGraphicAccessible::getAccessibleRelationSet() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; Reference< XAccessibleRelationSet > xRelSet = new utl::AccessibleRelationSetHelper(); @@ -366,7 +366,7 @@ Reference< XAccessibleRelationSet > SAL_CALL SmGraphicAccessible::getAccessibleR } Reference< XAccessibleStateSet > SAL_CALL SmGraphicAccessible::getAccessibleStateSet() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; ::utl::AccessibleStateSetHelper *pStateSet = @@ -396,7 +396,7 @@ Reference< XAccessibleStateSet > SAL_CALL SmGraphicAccessible::getAccessibleStat } Locale SAL_CALL SmGraphicAccessible::getLocale() - throw (IllegalAccessibleComponentStateException, RuntimeException) + throw (IllegalAccessibleComponentStateException, RuntimeException, std::exception) { SolarMutexGuard aGuard; // should be the document language... @@ -407,7 +407,7 @@ Locale SAL_CALL SmGraphicAccessible::getLocale() void SAL_CALL SmGraphicAccessible::addAccessibleEventListener( const Reference< XAccessibleEventListener >& xListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (xListener.is()) { @@ -423,7 +423,7 @@ void SAL_CALL SmGraphicAccessible::addAccessibleEventListener( void SAL_CALL SmGraphicAccessible::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& xListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (xListener.is()) { @@ -442,14 +442,14 @@ void SAL_CALL SmGraphicAccessible::removeAccessibleEventListener( } sal_Int32 SAL_CALL SmGraphicAccessible::getCaretPosition() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return 0; } sal_Bool SAL_CALL SmGraphicAccessible::setCaretPosition( sal_Int32 nIndex ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { SolarMutexGuard aGuard; OUString aTxt( GetAccessibleText_Impl() ); @@ -459,7 +459,7 @@ sal_Bool SAL_CALL SmGraphicAccessible::setCaretPosition( sal_Int32 nIndex ) } sal_Unicode SAL_CALL SmGraphicAccessible::getCharacter( sal_Int32 nIndex ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { SolarMutexGuard aGuard; OUString aTxt( GetAccessibleText_Impl() ); @@ -471,7 +471,7 @@ sal_Unicode SAL_CALL SmGraphicAccessible::getCharacter( sal_Int32 nIndex ) Sequence< beans::PropertyValue > SAL_CALL SmGraphicAccessible::getCharacterAttributes( sal_Int32 nIndex, const uno::Sequence< OUString > & /*rRequestedAttributes*/ ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Int32 nLen = GetAccessibleText_Impl().getLength(); @@ -481,7 +481,7 @@ Sequence< beans::PropertyValue > SAL_CALL SmGraphicAccessible::getCharacterAttri } awt::Rectangle SAL_CALL SmGraphicAccessible::getCharacterBounds( sal_Int32 nIndex ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -556,14 +556,14 @@ awt::Rectangle SAL_CALL SmGraphicAccessible::getCharacterBounds( sal_Int32 nInde } sal_Int32 SAL_CALL SmGraphicAccessible::getCharacterCount() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return GetAccessibleText_Impl().getLength(); } sal_Int32 SAL_CALL SmGraphicAccessible::getIndexAtPoint( const awt::Point& aPoint ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -630,21 +630,21 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getIndexAtPoint( const awt::Point& aPoin } OUString SAL_CALL SmGraphicAccessible::getSelectedText() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return OUString(); } sal_Int32 SAL_CALL SmGraphicAccessible::getSelectionStart() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return -1; } sal_Int32 SAL_CALL SmGraphicAccessible::getSelectionEnd() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return -1; @@ -653,7 +653,7 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getSelectionEnd() sal_Bool SAL_CALL SmGraphicAccessible::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Int32 nLen = GetAccessibleText_Impl().getLength(); @@ -664,7 +664,7 @@ sal_Bool SAL_CALL SmGraphicAccessible::setSelection( } OUString SAL_CALL SmGraphicAccessible::getText() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return GetAccessibleText_Impl(); @@ -673,7 +673,7 @@ OUString SAL_CALL SmGraphicAccessible::getText() OUString SAL_CALL SmGraphicAccessible::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { //!! nEndIndex may be the string length per definition of the interface !! //!! text should be copied exclusive that end index though. And arguments @@ -689,7 +689,7 @@ OUString SAL_CALL SmGraphicAccessible::getTextRange( return aTxt.copy( nStart, nEnd - nStart ); } -::com::sun::star::accessibility::TextSegment SAL_CALL SmGraphicAccessible::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) +::com::sun::star::accessibility::TextSegment SAL_CALL SmGraphicAccessible::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; OUString aTxt( GetAccessibleText_Impl() ); @@ -709,7 +709,7 @@ OUString SAL_CALL SmGraphicAccessible::getTextRange( return aResult; } -::com::sun::star::accessibility::TextSegment SAL_CALL SmGraphicAccessible::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) +::com::sun::star::accessibility::TextSegment SAL_CALL SmGraphicAccessible::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; OUString aTxt( GetAccessibleText_Impl() ); @@ -730,7 +730,7 @@ OUString SAL_CALL SmGraphicAccessible::getTextRange( return aResult; } -::com::sun::star::accessibility::TextSegment SAL_CALL SmGraphicAccessible::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) +::com::sun::star::accessibility::TextSegment SAL_CALL SmGraphicAccessible::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; OUString aTxt( GetAccessibleText_Impl() ); @@ -755,7 +755,7 @@ OUString SAL_CALL SmGraphicAccessible::getTextRange( sal_Bool SAL_CALL SmGraphicAccessible::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Bool bReturn = sal_False; @@ -787,20 +787,20 @@ sal_Bool SAL_CALL SmGraphicAccessible::copyText( } OUString SAL_CALL SmGraphicAccessible::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return OUString("SmGraphicAccessible"); } sal_Bool SAL_CALL SmGraphicAccessible::supportsService( const OUString& rServiceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL SmGraphicAccessible::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { Sequence< OUString > aNames(4); OUString *pNames = aNames.getArray(); @@ -1686,7 +1686,7 @@ void SmEditAccessible::ClearWin() // XAccessible uno::Reference< XAccessibleContext > SAL_CALL SmEditAccessible::getAccessibleContext( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return this; @@ -1694,7 +1694,7 @@ uno::Reference< XAccessibleContext > SAL_CALL SmEditAccessible::getAccessibleCon // XAccessibleComponent sal_Bool SAL_CALL SmEditAccessible::containsPoint( const awt::Point& aPoint ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { //! the arguments coordinates are relativ to the current window ! //! Thus the top left-point is (0, 0) @@ -1709,7 +1709,7 @@ sal_Bool SAL_CALL SmEditAccessible::containsPoint( const awt::Point& aPoint ) } uno::Reference< XAccessible > SAL_CALL SmEditAccessible::getAccessibleAtPoint( const awt::Point& aPoint ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pTextHelper) @@ -1718,7 +1718,7 @@ uno::Reference< XAccessible > SAL_CALL SmEditAccessible::getAccessibleAtPoint( c } awt::Rectangle SAL_CALL SmEditAccessible::getBounds( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -1729,7 +1729,7 @@ awt::Rectangle SAL_CALL SmEditAccessible::getBounds( ) } awt::Point SAL_CALL SmEditAccessible::getLocation( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -1741,7 +1741,7 @@ awt::Point SAL_CALL SmEditAccessible::getLocation( ) } awt::Point SAL_CALL SmEditAccessible::getLocationOnScreen( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -1752,7 +1752,7 @@ awt::Point SAL_CALL SmEditAccessible::getLocationOnScreen( ) } awt::Size SAL_CALL SmEditAccessible::getSize( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -1770,7 +1770,7 @@ awt::Size SAL_CALL SmEditAccessible::getSize( ) } void SAL_CALL SmEditAccessible::grabFocus( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -1780,7 +1780,7 @@ void SAL_CALL SmEditAccessible::grabFocus( ) } sal_Int32 SAL_CALL SmEditAccessible::getForeground() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1790,7 +1790,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getForeground() } sal_Int32 SAL_CALL SmEditAccessible::getBackground() - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1807,7 +1807,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getBackground() // XAccessibleContext sal_Int32 SAL_CALL SmEditAccessible::getAccessibleChildCount( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pTextHelper) @@ -1816,7 +1816,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getAccessibleChildCount( ) } uno::Reference< XAccessible > SAL_CALL SmEditAccessible::getAccessibleChild( sal_Int32 i ) - throw (IndexOutOfBoundsException, RuntimeException) + throw (IndexOutOfBoundsException, RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pTextHelper) @@ -1825,7 +1825,7 @@ uno::Reference< XAccessible > SAL_CALL SmEditAccessible::getAccessibleChild( sal } uno::Reference< XAccessible > SAL_CALL SmEditAccessible::getAccessibleParent( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!pWin) @@ -1837,7 +1837,7 @@ uno::Reference< XAccessible > SAL_CALL SmEditAccessible::getAccessibleParent( ) } sal_Int32 SAL_CALL SmEditAccessible::getAccessibleIndexInParent( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; sal_Int32 nIdx = -1; @@ -1853,21 +1853,21 @@ sal_Int32 SAL_CALL SmEditAccessible::getAccessibleIndexInParent( ) } sal_Int16 SAL_CALL SmEditAccessible::getAccessibleRole( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return AccessibleRole::PANEL /*TEXT ?*/; } OUString SAL_CALL SmEditAccessible::getAccessibleDescription( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; return OUString(); // empty as agreed with product-management } OUString SAL_CALL SmEditAccessible::getAccessibleName( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; // same name as displayed by the window when not docked @@ -1875,7 +1875,7 @@ OUString SAL_CALL SmEditAccessible::getAccessibleName( ) } uno::Reference< XAccessibleRelationSet > SAL_CALL SmEditAccessible::getAccessibleRelationSet( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; Reference< XAccessibleRelationSet > xRelSet = new utl::AccessibleRelationSetHelper(); @@ -1883,7 +1883,7 @@ uno::Reference< XAccessibleRelationSet > SAL_CALL SmEditAccessible::getAccessibl } uno::Reference< XAccessibleStateSet > SAL_CALL SmEditAccessible::getAccessibleStateSet( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; ::utl::AccessibleStateSetHelper *pStateSet = @@ -1914,7 +1914,7 @@ uno::Reference< XAccessibleStateSet > SAL_CALL SmEditAccessible::getAccessibleSt } Locale SAL_CALL SmEditAccessible::getLocale( ) - throw (IllegalAccessibleComponentStateException, RuntimeException) + throw (IllegalAccessibleComponentStateException, RuntimeException, std::exception) { SolarMutexGuard aGuard; // should be the document language... @@ -1925,34 +1925,34 @@ Locale SAL_CALL SmEditAccessible::getLocale( ) // XAccessibleEventBroadcaster void SAL_CALL SmEditAccessible::addAccessibleEventListener( const uno::Reference< XAccessibleEventListener >& xListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (pTextHelper) // not disposing (about to destroy view shell) pTextHelper->AddEventListener( xListener ); } void SAL_CALL SmEditAccessible::removeAccessibleEventListener( const uno::Reference< XAccessibleEventListener >& xListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (pTextHelper) // not disposing (about to destroy view shell) pTextHelper->RemoveEventListener( xListener ); } OUString SAL_CALL SmEditAccessible::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return OUString("SmEditAccessible"); } sal_Bool SAL_CALL SmEditAccessible::supportsService( const OUString& rServiceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL SmEditAccessible::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { Sequence< OUString > aNames(3); OUString *pNames = aNames.getArray(); diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx index bec0c4742e46..5bd092b14b62 100644 --- a/starmath/source/accessibility.hxx +++ b/starmath/source/accessibility.hxx @@ -98,58 +98,58 @@ public: const ::com::sun::star::uno::Any &rNewVal); // XAccessible - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception); // XAccessibleComponent - virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException, std::exception); // XAccessibleContext - virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException); + virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception); // XAccessibleEventBroadcaster - virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); // XAccessibleText - virtual sal_Int32 SAL_CALL getCaretPosition( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL setCaretPosition ( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getCharacterCount( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getSelectedText( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getSelectionStart( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getSelectionEnd( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); + virtual sal_Int32 SAL_CALL getCaretPosition( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL setCaretPosition ( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getCharacterCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getSelectedText( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getSelectionStart( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getSelectionEnd( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception); }; @@ -350,39 +350,39 @@ public: EditView * GetEditView() { return pWin ? pWin->GetEditView() : 0; } // XAccessible - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception); // XAccessibleComponent - virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException, std::exception); // XAccessibleContext - virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException); + virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception); // XAccessibleEventBroadcaster - virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL removeAccessibleEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception); // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 7e0b9397259c..08e94f600232 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -371,7 +371,7 @@ SmXMLExport::SmXMLExport( sal_Int64 SAL_CALL SmXMLExport::getSomething( const uno::Sequence< sal_Int8 >& rId ) -throw(uno::RuntimeException) +throw(uno::RuntimeException, std::exception) { if ( rId.getLength() == 16 && 0 == memcmp( getUnoTunnelId().getConstArray(), diff --git a/starmath/source/mathmlexport.hxx b/starmath/source/mathmlexport.hxx index 01a51f080f56..ebb3f813abe0 100644 --- a/starmath/source/mathmlexport.hxx +++ b/starmath/source/mathmlexport.hxx @@ -110,7 +110,7 @@ public: virtual ~SmXMLExport() {}; // XUnoTunnel - sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException); + sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException, std::exception); static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); void _ExportAutoStyles() {} diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 0c55c035f552..780f194d1d8d 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -500,7 +500,7 @@ uno::Reference< uno::XInterface > SAL_CALL SmXMLImportSettings_createInstance( sal_Int64 SAL_CALL SmXMLImport::getSomething( const uno::Sequence< sal_Int8 >&rId ) -throw(uno::RuntimeException) +throw(uno::RuntimeException, std::exception) { if ( rId.getLength() == 16 && 0 == memcmp( getUnoTunnelId().getConstArray(), @@ -511,7 +511,7 @@ throw(uno::RuntimeException) } void SmXMLImport::endDocument(void) - throw(xml::sax::SAXException, uno::RuntimeException) + throw(xml::sax::SAXException, uno::RuntimeException, std::exception) { //Set the resulted tree into the SmDocShell where it belongs SmNode *pTree; diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx index a4b16b740e18..10f1fcfcd289 100644 --- a/starmath/source/mathmlimport.hxx +++ b/starmath/source/mathmlimport.hxx @@ -92,12 +92,12 @@ public: virtual ~SmXMLImport() throw (); // XUnoTunnel - sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException); + sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw(::com::sun::star::uno::RuntimeException, std::exception); static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); void SAL_CALL endDocument(void) throw( ::com::sun::star::xml::sax::SAXException, - ::com::sun::star::uno::RuntimeException ); + ::com::sun::star::uno::RuntimeException, std::exception ); SvXMLImportContext *CreateContext(sal_uInt16 nPrefix, const OUString &rLocalName, diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx index 43aaea9dd69d..9f4480d4aca0 100644 --- a/starmath/source/smdetect.cxx +++ b/starmath/source/smdetect.cxx @@ -76,7 +76,7 @@ SmFilterDetect::~SmFilterDetect() { } -OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor ) throw( RuntimeException ) +OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor ) throw( RuntimeException, std::exception ) { Reference< XInputStream > xStream; Reference< XContent > xContent; @@ -443,19 +443,19 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor } /* XServiceInfo */ -OUString SAL_CALL SmFilterDetect::getImplementationName() throw( RuntimeException ) +OUString SAL_CALL SmFilterDetect::getImplementationName() throw( RuntimeException, std::exception ) { return impl_getStaticImplementationName(); } \ /* XServiceInfo */ -sal_Bool SAL_CALL SmFilterDetect::supportsService( const OUString& sServiceName ) throw( RuntimeException ) +sal_Bool SAL_CALL SmFilterDetect::supportsService( const OUString& sServiceName ) throw( RuntimeException, std::exception ) { return cppu::supportsService(this, sServiceName); } /* XServiceInfo */ -Sequence< OUString > SAL_CALL SmFilterDetect::getSupportedServiceNames() throw( RuntimeException ) +Sequence< OUString > SAL_CALL SmFilterDetect::getSupportedServiceNames() throw( RuntimeException, std::exception ) { return impl_getStaticSupportedServiceNames(); } diff --git a/starmath/source/smdetect.hxx b/starmath/source/smdetect.hxx index 72104575241c..7339f4d4d4a4 100644 --- a/starmath/source/smdetect.hxx +++ b/starmath/source/smdetect.hxx @@ -62,7 +62,7 @@ public: // XExtendedFilterDetect - virtual OUString SAL_CALL detect( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException ); + virtual OUString SAL_CALL detect( css::uno::Sequence< css::beans::PropertyValue >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ); }; #endif diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index b3a1bbd2e906..d517fcb5592f 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -324,7 +324,7 @@ SmModel::~SmModel() throw () delete m_pPrintUIOptions; } -uno::Any SAL_CALL SmModel::queryInterface( const uno::Type& rType ) throw(uno::RuntimeException) +uno::Any SAL_CALL SmModel::queryInterface( const uno::Type& rType ) throw(uno::RuntimeException, std::exception) { uno::Any aRet = ::cppu::queryInterface ( rType, // OWeakObject interfaces @@ -352,7 +352,7 @@ void SAL_CALL SmModel::release() throw() OWeakObject::release(); } -uno::Sequence< uno::Type > SAL_CALL SmModel::getTypes( ) throw(uno::RuntimeException) +uno::Sequence< uno::Type > SAL_CALL SmModel::getTypes( ) throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; uno::Sequence< uno::Type > aTypes = SfxBaseModel::getTypes(); @@ -378,7 +378,7 @@ const uno::Sequence< sal_Int8 > & SmModel::getUnoTunnelId() } sal_Int64 SAL_CALL SmModel::getSomething( const uno::Sequence< sal_Int8 >& rId ) - throw(uno::RuntimeException) + throw(uno::RuntimeException, std::exception) { if( rId.getLength() == 16 && 0 == memcmp( getUnoTunnelId().getConstArray(), @@ -404,7 +404,7 @@ static sal_Int16 lcl_AnyToINT16(const uno::Any& rAny) return nRet; } -OUString SmModel::getImplementationName(void) throw( uno::RuntimeException ) +OUString SmModel::getImplementationName(void) throw( uno::RuntimeException, std::exception ) { return getImplementationName_Static(); } @@ -415,12 +415,12 @@ OUString SmModel::getImplementationName_Static() return OUString("com.sun.star.comp.math.FormulaDocument"); } -sal_Bool SmModel::supportsService(const OUString& rServiceName) throw( uno::RuntimeException ) +sal_Bool SmModel::supportsService(const OUString& rServiceName) throw( uno::RuntimeException, std::exception ) { return cppu::supportsService(this, rServiceName); } -uno::Sequence< OUString > SmModel::getSupportedServiceNames(void) throw( uno::RuntimeException ) +uno::Sequence< OUString > SmModel::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) { return getSupportedServiceNames_Static(); } @@ -950,7 +950,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu sal_Int32 SAL_CALL SmModel::getRendererCount( const uno::Any& /*rSelection*/, const uno::Sequence< beans::PropertyValue >& /*xOptions*/ ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { SolarMutexGuard aGuard; return 1; @@ -982,7 +982,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SmModel::getRenderer( sal_Int32 nRenderer, const uno::Any& /*rSelection*/, const uno::Sequence< beans::PropertyValue >& /*rxOptions*/ ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1019,7 +1019,7 @@ void SAL_CALL SmModel::render( sal_Int32 nRenderer, const uno::Any& rSelection, const uno::Sequence< beans::PropertyValue >& rxOptions ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1116,7 +1116,7 @@ void SAL_CALL SmModel::render( } void SAL_CALL SmModel::setParent( const uno::Reference< uno::XInterface >& xParent) - throw( lang::NoSupportException, uno::RuntimeException ) + throw( lang::NoSupportException, uno::RuntimeException, std::exception ) { SolarMutexGuard aGuard; SfxBaseModel::setParent( xParent ); |