diff options
Diffstat (limited to 'svtools/source/control/toolbarmenuacc.cxx')
-rw-r--r-- | svtools/source/control/toolbarmenuacc.cxx | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/svtools/source/control/toolbarmenuacc.cxx b/svtools/source/control/toolbarmenuacc.cxx index 2a3e2759b82c..5d472a1b8746 100644 --- a/svtools/source/control/toolbarmenuacc.cxx +++ b/svtools/source/control/toolbarmenuacc.cxx @@ -129,14 +129,14 @@ void ToolbarMenuAcc::FireAccessibleEvent( short nEventId, const Any& rOldValue, } -Reference< XAccessibleContext > SAL_CALL ToolbarMenuAcc::getAccessibleContext() throw (RuntimeException, std::exception) +Reference< XAccessibleContext > SAL_CALL ToolbarMenuAcc::getAccessibleContext() { ThrowIfDisposed(); return this; } -sal_Int32 SAL_CALL ToolbarMenuAcc::getAccessibleChildCount() throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuAcc::getAccessibleChildCount() { const SolarMutexGuard aSolarGuard; ThrowIfDisposed(); @@ -145,7 +145,7 @@ sal_Int32 SAL_CALL ToolbarMenuAcc::getAccessibleChildCount() throw (RuntimeExcep } -Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) +Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleChild( sal_Int32 i ) { const SolarMutexGuard aSolarGuard; ThrowIfDisposed(); @@ -154,7 +154,7 @@ Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleChild( sal_Int32 } -Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleParent() throw (RuntimeException, std::exception) +Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleParent() { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -169,7 +169,7 @@ Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleParent() throw (R } -sal_Int32 SAL_CALL ToolbarMenuAcc::getAccessibleIndexInParent() throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuAcc::getAccessibleIndexInParent() { const SolarMutexGuard aSolarGuard; ThrowIfDisposed(); @@ -188,21 +188,21 @@ sal_Int32 SAL_CALL ToolbarMenuAcc::getAccessibleIndexInParent() throw (RuntimeEx } -sal_Int16 SAL_CALL ToolbarMenuAcc::getAccessibleRole() throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL ToolbarMenuAcc::getAccessibleRole() { ThrowIfDisposed(); return AccessibleRole::LIST; } -OUString SAL_CALL ToolbarMenuAcc::getAccessibleDescription() throw (RuntimeException, std::exception) +OUString SAL_CALL ToolbarMenuAcc::getAccessibleDescription() { ThrowIfDisposed(); return OUString( "ToolbarMenu" ); } -OUString SAL_CALL ToolbarMenuAcc::getAccessibleName() throw (RuntimeException, std::exception) +OUString SAL_CALL ToolbarMenuAcc::getAccessibleName() { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -222,14 +222,14 @@ OUString SAL_CALL ToolbarMenuAcc::getAccessibleName() throw (RuntimeException, s } -Reference< XAccessibleRelationSet > SAL_CALL ToolbarMenuAcc::getAccessibleRelationSet() throw (RuntimeException, std::exception) +Reference< XAccessibleRelationSet > SAL_CALL ToolbarMenuAcc::getAccessibleRelationSet() { ThrowIfDisposed(); return Reference< XAccessibleRelationSet >(); } -Reference< XAccessibleStateSet > SAL_CALL ToolbarMenuAcc::getAccessibleStateSet() throw (RuntimeException, std::exception) +Reference< XAccessibleStateSet > SAL_CALL ToolbarMenuAcc::getAccessibleStateSet() { ThrowIfDisposed(); ::utl::AccessibleStateSetHelper* pStateSet = new ::utl::AccessibleStateSetHelper(); @@ -248,7 +248,7 @@ Reference< XAccessibleStateSet > SAL_CALL ToolbarMenuAcc::getAccessibleStateSet( } -Locale SAL_CALL ToolbarMenuAcc::getLocale() throw (IllegalAccessibleComponentStateException, RuntimeException, std::exception) +Locale SAL_CALL ToolbarMenuAcc::getLocale() { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -267,7 +267,7 @@ Locale SAL_CALL ToolbarMenuAcc::getLocale() throw (IllegalAccessibleComponentSta } -void SAL_CALL ToolbarMenuAcc::addAccessibleEventListener( const Reference< XAccessibleEventListener >& rxListener ) throw (RuntimeException, std::exception) +void SAL_CALL ToolbarMenuAcc::addAccessibleEventListener( const Reference< XAccessibleEventListener >& rxListener ) { ThrowIfDisposed(); ::osl::MutexGuard aGuard(m_aMutex); @@ -291,7 +291,7 @@ void SAL_CALL ToolbarMenuAcc::addAccessibleEventListener( const Reference< XAcce } -void SAL_CALL ToolbarMenuAcc::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& rxListener ) throw (RuntimeException, std::exception) +void SAL_CALL ToolbarMenuAcc::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& rxListener ) { ThrowIfDisposed(); ::osl::MutexGuard aGuard(m_aMutex); @@ -305,7 +305,7 @@ void SAL_CALL ToolbarMenuAcc::removeAccessibleEventListener( const Reference< XA } -sal_Bool SAL_CALL ToolbarMenuAcc::containsPoint( const awt::Point& aPoint ) throw (RuntimeException, std::exception) +sal_Bool SAL_CALL ToolbarMenuAcc::containsPoint( const awt::Point& aPoint ) { ThrowIfDisposed(); const awt::Rectangle aRect( getBounds() ); @@ -316,7 +316,7 @@ sal_Bool SAL_CALL ToolbarMenuAcc::containsPoint( const awt::Point& aPoint ) thro } -Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleAtPoint( const awt::Point& aPoint ) throw (RuntimeException, std::exception) +Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleAtPoint( const awt::Point& aPoint ) { const SolarMutexGuard aSolarGuard; ThrowIfDisposed(); @@ -347,7 +347,7 @@ Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleAtPoint( const aw } -awt::Rectangle SAL_CALL ToolbarMenuAcc::getBounds() throw (RuntimeException, std::exception) +awt::Rectangle SAL_CALL ToolbarMenuAcc::getBounds() { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -364,7 +364,7 @@ awt::Rectangle SAL_CALL ToolbarMenuAcc::getBounds() throw (RuntimeException, std } -awt::Point SAL_CALL ToolbarMenuAcc::getLocation() throw (RuntimeException, std::exception) +awt::Point SAL_CALL ToolbarMenuAcc::getLocation() { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -373,7 +373,7 @@ awt::Point SAL_CALL ToolbarMenuAcc::getLocation() throw (RuntimeException, std:: } -awt::Point SAL_CALL ToolbarMenuAcc::getLocationOnScreen() throw (RuntimeException, std::exception) +awt::Point SAL_CALL ToolbarMenuAcc::getLocationOnScreen() { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -382,7 +382,7 @@ awt::Point SAL_CALL ToolbarMenuAcc::getLocationOnScreen() throw (RuntimeExcepti } -awt::Size SAL_CALL ToolbarMenuAcc::getSize() throw (RuntimeException, std::exception) +awt::Size SAL_CALL ToolbarMenuAcc::getSize() { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -390,28 +390,28 @@ awt::Size SAL_CALL ToolbarMenuAcc::getSize() throw (RuntimeException, std::excep return awt::Size( aOutSize.Width(), aOutSize.Height() ); } -void SAL_CALL ToolbarMenuAcc::grabFocus() throw (RuntimeException, std::exception) +void SAL_CALL ToolbarMenuAcc::grabFocus() { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; mpParent->mrMenu.GrabFocus(); } -sal_Int32 SAL_CALL ToolbarMenuAcc::getForeground() throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuAcc::getForeground() { ThrowIfDisposed(); sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetMenuTextColor().GetColor(); return static_cast<sal_Int32>(nColor); } -sal_Int32 SAL_CALL ToolbarMenuAcc::getBackground() throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuAcc::getBackground() { ThrowIfDisposed(); sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetMenuColor().GetColor(); return static_cast<sal_Int32>(nColor); } -void SAL_CALL ToolbarMenuAcc::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) +void SAL_CALL ToolbarMenuAcc::selectAccessibleChild( sal_Int32 nChildIndex ) { const SolarMutexGuard aSolarGuard; ThrowIfDisposed(); @@ -419,7 +419,7 @@ void SAL_CALL ToolbarMenuAcc::selectAccessibleChild( sal_Int32 nChildIndex ) thr mpParent->selectAccessibleChild( nChildIndex ); } -sal_Bool SAL_CALL ToolbarMenuAcc::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) +sal_Bool SAL_CALL ToolbarMenuAcc::isAccessibleChildSelected( sal_Int32 nChildIndex ) { const SolarMutexGuard aSolarGuard; ThrowIfDisposed(); @@ -427,7 +427,7 @@ sal_Bool SAL_CALL ToolbarMenuAcc::isAccessibleChildSelected( sal_Int32 nChildInd } -void SAL_CALL ToolbarMenuAcc::clearAccessibleSelection() throw (RuntimeException, std::exception) +void SAL_CALL ToolbarMenuAcc::clearAccessibleSelection() { const SolarMutexGuard aSolarGuard; ThrowIfDisposed(); @@ -435,14 +435,14 @@ void SAL_CALL ToolbarMenuAcc::clearAccessibleSelection() throw (RuntimeException } -void SAL_CALL ToolbarMenuAcc::selectAllAccessibleChildren() throw (RuntimeException, std::exception) +void SAL_CALL ToolbarMenuAcc::selectAllAccessibleChildren() { ThrowIfDisposed(); // unsupported due to single selection only } -sal_Int32 SAL_CALL ToolbarMenuAcc::getSelectedAccessibleChildCount() throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuAcc::getSelectedAccessibleChildCount() { const SolarMutexGuard aSolarGuard; ThrowIfDisposed(); @@ -451,7 +451,7 @@ sal_Int32 SAL_CALL ToolbarMenuAcc::getSelectedAccessibleChildCount() throw (Runt } -Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) +Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -475,7 +475,7 @@ Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getSelectedAccessibleChild( sa } -void SAL_CALL ToolbarMenuAcc::deselectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) +void SAL_CALL ToolbarMenuAcc::deselectAccessibleChild( sal_Int32 nChildIndex ) { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -520,7 +520,7 @@ void SAL_CALL ToolbarMenuAcc::disposing() } } -void ToolbarMenuAcc::ThrowIfDisposed() throw (DisposedException) +void ToolbarMenuAcc::ThrowIfDisposed() { if(rBHelper.bDisposed || rBHelper.bInDispose || !mpParent) { @@ -576,25 +576,25 @@ void SAL_CALL ToolbarMenuEntryAcc::disposing() } -Reference< XAccessibleContext > SAL_CALL ToolbarMenuEntryAcc::getAccessibleContext() throw (RuntimeException, std::exception) +Reference< XAccessibleContext > SAL_CALL ToolbarMenuEntryAcc::getAccessibleContext() { return this; } -sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getAccessibleChildCount() throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getAccessibleChildCount() { return 0; } -Reference< XAccessible > SAL_CALL ToolbarMenuEntryAcc::getAccessibleChild( sal_Int32 ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) +Reference< XAccessible > SAL_CALL ToolbarMenuEntryAcc::getAccessibleChild( sal_Int32 ) { throw IndexOutOfBoundsException(); } -Reference< XAccessible > SAL_CALL ToolbarMenuEntryAcc::getAccessibleParent() throw (RuntimeException, std::exception) +Reference< XAccessible > SAL_CALL ToolbarMenuEntryAcc::getAccessibleParent() { const SolarMutexGuard aSolarGuard; Reference< XAccessible > xRet; @@ -606,7 +606,7 @@ Reference< XAccessible > SAL_CALL ToolbarMenuEntryAcc::getAccessibleParent() thr } -sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getAccessibleIndexInParent() throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getAccessibleIndexInParent() { const SolarMutexGuard aSolarGuard; // The index defaults to -1 to indicate the child does not belong to its @@ -637,19 +637,19 @@ sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getAccessibleIndexInParent() throw (Runt } -sal_Int16 SAL_CALL ToolbarMenuEntryAcc::getAccessibleRole() throw (RuntimeException, std::exception) +sal_Int16 SAL_CALL ToolbarMenuEntryAcc::getAccessibleRole() { return AccessibleRole::LIST_ITEM; } -OUString SAL_CALL ToolbarMenuEntryAcc::getAccessibleDescription() throw (RuntimeException, std::exception) +OUString SAL_CALL ToolbarMenuEntryAcc::getAccessibleDescription() { return OUString(); } -OUString SAL_CALL ToolbarMenuEntryAcc::getAccessibleName() throw (RuntimeException, std::exception) +OUString SAL_CALL ToolbarMenuEntryAcc::getAccessibleName() { const SolarMutexGuard aSolarGuard; OUString aRet; @@ -669,13 +669,13 @@ OUString SAL_CALL ToolbarMenuEntryAcc::getAccessibleName() throw (RuntimeExcepti } -Reference< XAccessibleRelationSet > SAL_CALL ToolbarMenuEntryAcc::getAccessibleRelationSet() throw (RuntimeException, std::exception) +Reference< XAccessibleRelationSet > SAL_CALL ToolbarMenuEntryAcc::getAccessibleRelationSet() { return Reference< XAccessibleRelationSet >(); } -Reference< XAccessibleStateSet > SAL_CALL ToolbarMenuEntryAcc::getAccessibleStateSet() throw (RuntimeException, std::exception) +Reference< XAccessibleStateSet > SAL_CALL ToolbarMenuEntryAcc::getAccessibleStateSet() { const SolarMutexGuard aSolarGuard; ::utl::AccessibleStateSetHelper* pStateSet = new ::utl::AccessibleStateSetHelper; @@ -701,7 +701,7 @@ Reference< XAccessibleStateSet > SAL_CALL ToolbarMenuEntryAcc::getAccessibleStat } -Locale SAL_CALL ToolbarMenuEntryAcc::getLocale() throw (IllegalAccessibleComponentStateException, RuntimeException, std::exception) +Locale SAL_CALL ToolbarMenuEntryAcc::getLocale() { Locale aRet( "", "", "" ); @@ -718,7 +718,7 @@ Locale SAL_CALL ToolbarMenuEntryAcc::getLocale() throw (IllegalAccessibleCompone } -void SAL_CALL ToolbarMenuEntryAcc::addAccessibleEventListener( const Reference< XAccessibleEventListener >& rxListener ) throw (RuntimeException, std::exception) +void SAL_CALL ToolbarMenuEntryAcc::addAccessibleEventListener( const Reference< XAccessibleEventListener >& rxListener ) { const ::osl::MutexGuard aGuard( maMutex ); @@ -736,7 +736,7 @@ void SAL_CALL ToolbarMenuEntryAcc::addAccessibleEventListener( const Reference< } -void SAL_CALL ToolbarMenuEntryAcc::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& rxListener ) throw (RuntimeException, std::exception) +void SAL_CALL ToolbarMenuEntryAcc::removeAccessibleEventListener( const Reference< XAccessibleEventListener >& rxListener ) { const ::osl::MutexGuard aGuard( maMutex ); @@ -749,7 +749,7 @@ void SAL_CALL ToolbarMenuEntryAcc::removeAccessibleEventListener( const Referenc } -sal_Bool SAL_CALL ToolbarMenuEntryAcc::containsPoint( const awt::Point& aPoint ) throw (RuntimeException, std::exception) +sal_Bool SAL_CALL ToolbarMenuEntryAcc::containsPoint( const awt::Point& aPoint ) { const awt::Rectangle aRect( getBounds() ); const Point aSize( aRect.Width, aRect.Height ); @@ -759,14 +759,14 @@ sal_Bool SAL_CALL ToolbarMenuEntryAcc::containsPoint( const awt::Point& aPoint ) } -Reference< XAccessible > SAL_CALL ToolbarMenuEntryAcc::getAccessibleAtPoint( const awt::Point& ) throw (RuntimeException, std::exception) +Reference< XAccessible > SAL_CALL ToolbarMenuEntryAcc::getAccessibleAtPoint( const awt::Point& ) { Reference< XAccessible > xRet; return xRet; } -awt::Rectangle SAL_CALL ToolbarMenuEntryAcc::getBounds() throw (RuntimeException, std::exception) +awt::Rectangle SAL_CALL ToolbarMenuEntryAcc::getBounds() { const SolarMutexGuard aSolarGuard; awt::Rectangle aRet; @@ -789,14 +789,14 @@ awt::Rectangle SAL_CALL ToolbarMenuEntryAcc::getBounds() throw (RuntimeException } -awt::Point SAL_CALL ToolbarMenuEntryAcc::getLocation() throw (RuntimeException, std::exception) +awt::Point SAL_CALL ToolbarMenuEntryAcc::getLocation() { const awt::Rectangle aRect( getBounds() ); return awt::Point( aRect.X, aRect.Y ); } -awt::Point SAL_CALL ToolbarMenuEntryAcc::getLocationOnScreen() throw (RuntimeException, std::exception) +awt::Point SAL_CALL ToolbarMenuEntryAcc::getLocationOnScreen() { const SolarMutexGuard aSolarGuard; awt::Point aRet; @@ -813,7 +813,7 @@ awt::Point SAL_CALL ToolbarMenuEntryAcc::getLocationOnScreen() throw (RuntimeExc } -awt::Size SAL_CALL ToolbarMenuEntryAcc::getSize() throw (RuntimeException, std::exception) +awt::Size SAL_CALL ToolbarMenuEntryAcc::getSize() { const awt::Rectangle aRect( getBounds() ); awt::Size aRet; @@ -824,17 +824,17 @@ awt::Size SAL_CALL ToolbarMenuEntryAcc::getSize() throw (RuntimeException, std:: return aRet; } -void SAL_CALL ToolbarMenuEntryAcc::grabFocus() throw (RuntimeException, std::exception) +void SAL_CALL ToolbarMenuEntryAcc::grabFocus() { // nothing to do } -sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getForeground( ) throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getForeground( ) { return static_cast<sal_Int32>(Application::GetSettings().GetStyleSettings().GetMenuTextColor().GetColor()); } -sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getBackground( ) throw (RuntimeException, std::exception) +sal_Int32 SAL_CALL ToolbarMenuEntryAcc::getBackground( ) { return static_cast<sal_Int32>(Application::GetSettings().GetStyleSettings().GetMenuColor().GetColor()); } |