summaryrefslogtreecommitdiff
path: root/svx/source/accessibility/AccessibleShape.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/accessibility/AccessibleShape.cxx')
-rw-r--r--svx/source/accessibility/AccessibleShape.cxx77
1 files changed, 17 insertions, 60 deletions
diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx
index 8df4e044dff2..455423730c7f 100644
--- a/svx/source/accessibility/AccessibleShape.cxx
+++ b/svx/source/accessibility/AccessibleShape.cxx
@@ -299,7 +299,6 @@ bool AccessibleShape::GetState (sal_Int16 aState)
// OverWrite the parent's getAccessibleName method
OUString SAL_CALL AccessibleShape::getAccessibleName()
- throw (css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
if (m_pShape && !m_pShape->GetTitle().isEmpty())
@@ -309,7 +308,6 @@ OUString SAL_CALL AccessibleShape::getAccessibleName()
}
OUString SAL_CALL AccessibleShape::getAccessibleDescription()
- throw (css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
if( m_pShape && !m_pShape->GetDescription().isEmpty())
@@ -324,7 +322,6 @@ OUString SAL_CALL AccessibleShape::getAccessibleDescription()
*/
sal_Int32 SAL_CALL
AccessibleShape::getAccessibleChildCount ()
- throw (css::uno::RuntimeException, std::exception)
{
if (IsDisposed())
{
@@ -349,7 +346,6 @@ sal_Int32 SAL_CALL
*/
uno::Reference<XAccessible> SAL_CALL
AccessibleShape::getAccessibleChild (sal_Int32 nIndex)
- throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -379,7 +375,6 @@ uno::Reference<XAccessible> SAL_CALL
uno::Reference<XAccessibleRelationSet> SAL_CALL
AccessibleShape::getAccessibleRelationSet()
- throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard (maMutex);
if (mpParent == nullptr)
@@ -405,7 +400,6 @@ uno::Reference<XAccessibleRelationSet> SAL_CALL
*/
uno::Reference<XAccessibleStateSet> SAL_CALL
AccessibleShape::getAccessibleStateSet()
- throw (css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard (maMutex);
Reference<XAccessibleStateSet> xStateSet;
@@ -482,7 +476,6 @@ uno::Reference<XAccessibleStateSet> SAL_CALL
uno::Reference<XAccessible > SAL_CALL
AccessibleShape::getAccessibleAtPoint (
const awt::Point& aPoint)
- throw (uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard (maMutex);
@@ -513,7 +506,6 @@ uno::Reference<XAccessible > SAL_CALL
awt::Rectangle SAL_CALL AccessibleShape::getBounds()
- throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard (maMutex);
@@ -626,7 +618,6 @@ awt::Rectangle SAL_CALL AccessibleShape::getBounds()
awt::Point SAL_CALL AccessibleShape::getLocation()
- throw (css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
awt::Rectangle aBoundingBox (getBounds());
@@ -635,7 +626,6 @@ awt::Point SAL_CALL AccessibleShape::getLocation()
awt::Point SAL_CALL AccessibleShape::getLocationOnScreen()
- throw (css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
@@ -658,7 +648,6 @@ awt::Point SAL_CALL AccessibleShape::getLocationOnScreen()
awt::Size SAL_CALL AccessibleShape::getSize()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
awt::Rectangle aBoundingBox (getBounds());
@@ -667,7 +656,6 @@ awt::Size SAL_CALL AccessibleShape::getSize()
sal_Int32 SAL_CALL AccessibleShape::getForeground()
- throw (css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
sal_Int32 nColor (0x0ffffffL);
@@ -691,7 +679,6 @@ sal_Int32 SAL_CALL AccessibleShape::getForeground()
sal_Int32 SAL_CALL AccessibleShape::getBackground()
- throw (css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
sal_Int32 nColor (0L);
@@ -730,7 +717,6 @@ sal_Int32 SAL_CALL AccessibleShape::getBackground()
// XAccessibleEventBroadcaster
void SAL_CALL AccessibleShape::addAccessibleEventListener (
const Reference<XAccessibleEventListener >& rxListener)
- throw (uno::RuntimeException, std::exception)
{
if (rBHelper.bDisposed || rBHelper.bInDispose)
{
@@ -749,7 +735,6 @@ void SAL_CALL AccessibleShape::addAccessibleEventListener (
void SAL_CALL AccessibleShape::removeAccessibleEventListener (
const Reference<XAccessibleEventListener >& rxListener)
- throw (uno::RuntimeException, std::exception)
{
AccessibleContextBase::removeAccessibleEventListener (rxListener);
if (mpText != nullptr)
@@ -759,7 +744,6 @@ void SAL_CALL AccessibleShape::removeAccessibleEventListener (
// XInterface
css::uno::Any SAL_CALL
AccessibleShape::queryInterface (const css::uno::Type & rType)
- throw (css::uno::RuntimeException, std::exception)
{
css::uno::Any aReturn = AccessibleContextBase::queryInterface (rType);
if ( ! aReturn.hasValue())
@@ -795,14 +779,11 @@ void SAL_CALL
// XAccessibleSelection
void SAL_CALL AccessibleShape::selectAccessibleChild( sal_Int32 )
-throw ( IndexOutOfBoundsException, RuntimeException, std::exception )
{
}
sal_Bool SAL_CALL AccessibleShape::isAccessibleChildSelected( sal_Int32 nChildIndex )
-throw ( IndexOutOfBoundsException,
- RuntimeException, std::exception )
{
uno::Reference<XAccessible> xAcc = getAccessibleChild( nChildIndex );
uno::Reference<XAccessibleContext> xContext;
@@ -844,19 +825,16 @@ throw ( IndexOutOfBoundsException,
void SAL_CALL AccessibleShape::clearAccessibleSelection( )
-throw ( RuntimeException, std::exception )
{
}
void SAL_CALL AccessibleShape::selectAllAccessibleChildren( )
-throw ( RuntimeException, std::exception )
{
}
sal_Int32 SAL_CALL AccessibleShape::getSelectedAccessibleChildCount()
-throw ( RuntimeException, std::exception )
{
sal_Int32 nCount = 0;
sal_Int32 TotalCount = getAccessibleChildCount();
@@ -868,7 +846,6 @@ throw ( RuntimeException, std::exception )
Reference<XAccessible> SAL_CALL AccessibleShape::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex )
-throw ( IndexOutOfBoundsException, RuntimeException, std::exception)
{
if ( nSelectedChildIndex > getSelectedAccessibleChildCount() )
throw IndexOutOfBoundsException();
@@ -885,15 +862,12 @@ throw ( IndexOutOfBoundsException, RuntimeException, std::exception)
void SAL_CALL AccessibleShape::deselectAccessibleChild( sal_Int32 )
- throw ( IndexOutOfBoundsException,
- RuntimeException, std::exception )
{
}
// XAccessibleExtendedAttributes
uno::Any SAL_CALL AccessibleShape::getExtendedAttributes()
- throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception)
{
uno::Any strRet;
OUString style;
@@ -910,7 +884,6 @@ uno::Any SAL_CALL AccessibleShape::getExtendedAttributes()
// XServiceInfo
OUString SAL_CALL
AccessibleShape::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("AccessibleShape");
}
@@ -918,7 +891,6 @@ OUString SAL_CALL
uno::Sequence<OUString> SAL_CALL
AccessibleShape::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
// Get list of supported service names from base class...
@@ -936,7 +908,6 @@ uno::Sequence<OUString> SAL_CALL
// XTypeProvider
uno::Sequence<uno::Type> SAL_CALL
AccessibleShape::getTypes()
- throw (uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
// Get list of types from the context base implementation, ...
@@ -975,7 +946,6 @@ uno::Sequence<uno::Type> SAL_CALL
*/
void SAL_CALL
AccessibleShape::disposing (const lang::EventObject& aEvent)
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard (maMutex);
@@ -999,7 +969,6 @@ void SAL_CALL
// document::XEventListener
void SAL_CALL
AccessibleShape::notifyEvent (const document::EventObject& rEventObject)
- throw (uno::RuntimeException, std::exception)
{
// First check if the event is for us.
uno::Reference<drawing::XShape> xShape (
@@ -1057,7 +1026,6 @@ AccessibleShape*
sal_Int64 SAL_CALL
AccessibleShape::getSomething( const uno::Sequence< sal_Int8 >& rIdentifier )
- throw(uno::RuntimeException, std::exception)
{
sal_Int64 nReturn( 0 );
@@ -1088,20 +1056,17 @@ void AccessibleShape::ViewForwarderChanged()
// protected internal
// Set this object's name if is different to the current name.
OUString AccessibleShape::CreateAccessibleBaseName()
- throw (css::uno::RuntimeException, std::exception)
{
return ShapeTypeHandler::CreateAccessibleBaseName( mxShape );
}
OUString AccessibleShape::CreateAccessibleName()
- throw (css::uno::RuntimeException, std::exception)
{
return GetFullAccessibleName(this);
}
OUString AccessibleShape::GetFullAccessibleName (AccessibleShape *shape)
- throw (css::uno::RuntimeException, std::exception)
{
OUString sName (shape->CreateAccessibleBaseName());
// Append the shape's index to the name to disambiguate between shapes
@@ -1138,7 +1103,6 @@ OUString AccessibleShape::GetFullAccessibleName (AccessibleShape *shape)
OUString
AccessibleShape::CreateAccessibleDescription()
- throw (css::uno::RuntimeException, std::exception)
{
DescriptionGenerator aDG (mxShape);
aDG.Initialize (CreateAccessibleBaseName());
@@ -1248,7 +1212,6 @@ void AccessibleShape::disposing()
sal_Int32 SAL_CALL
AccessibleShape::getAccessibleIndexInParent()
- throw (css::uno::RuntimeException, std::exception)
{
ThrowIfDisposed ();
// Use a simple but slow solution for now. Optimize later.
@@ -1294,7 +1257,6 @@ void AccessibleShape::UpdateNameAndDescription()
// Return this object's role.
sal_Int16 SAL_CALL AccessibleShape::getAccessibleRole()
- throw (css::uno::RuntimeException, std::exception)
{
sal_Int16 nAccessibleRole = AccessibleRole::SHAPE ;
switch (ShapeTypeHandler::Instance().GetTypeId (mxShape))
@@ -1332,7 +1294,6 @@ struct XShapePosCompareHelper
// XAccessibleGroupPosition
uno::Sequence< sal_Int32 > SAL_CALL
AccessibleShape::getGroupPosition( const uno::Any& )
-throw (uno::RuntimeException, std::exception)
{
// we will return the:
// [0] group level
@@ -1425,7 +1386,6 @@ throw (uno::RuntimeException, std::exception)
}
OUString AccessibleShape::getObjectLink( const uno::Any& )
- throw (uno::RuntimeException, std::exception)
{
OUString aRet;
@@ -1447,7 +1407,6 @@ OUString AccessibleShape::getObjectLink( const uno::Any& )
// XAccesibleHypertext
sal_Int32 SAL_CALL AccessibleShape::getHyperLinkCount()
- throw (css::uno::RuntimeException, std::exception)
{
// MT: Introduced with IA2 CWS, but SvxAccessibleHyperlink was redundant to svx::AccessibleHyperlink which we introduced meanwhile.
// Code need to be adapted....
@@ -1463,7 +1422,6 @@ sal_Int32 SAL_CALL AccessibleShape::getHyperLinkCount()
}
uno::Reference< XAccessibleHyperlink > SAL_CALL
AccessibleShape::getHyperLink( sal_Int32 )
- throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception)
{
uno::Reference< XAccessibleHyperlink > xRet;
// MT: Introduced with IA2 CWS, but SvxAccessibleHyperlink was redundant to svx::AccessibleHyperlink which we introduced meanwhile.
@@ -1478,48 +1436,47 @@ uno::Reference< XAccessibleHyperlink > SAL_CALL
return xRet;
}
sal_Int32 SAL_CALL AccessibleShape::getHyperLinkIndex( sal_Int32 )
-throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception)
{
sal_Int32 nRet = 0;
return nRet;
}
// XAccesibleText
-sal_Int32 SAL_CALL AccessibleShape::getCaretPosition( ) throw (css::uno::RuntimeException, std::exception){return 0;}
-sal_Bool SAL_CALL AccessibleShape::setCaretPosition( sal_Int32 ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception){return false;}
-sal_Unicode SAL_CALL AccessibleShape::getCharacter( sal_Int32 ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception){return 0;}
-css::uno::Sequence< css::beans::PropertyValue > SAL_CALL AccessibleShape::getCharacterAttributes( sal_Int32, const css::uno::Sequence< OUString >& ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL AccessibleShape::getCaretPosition( ){return 0;}
+sal_Bool SAL_CALL AccessibleShape::setCaretPosition( sal_Int32 ){return false;}
+sal_Unicode SAL_CALL AccessibleShape::getCharacter( sal_Int32 ){return 0;}
+css::uno::Sequence< css::beans::PropertyValue > SAL_CALL AccessibleShape::getCharacterAttributes( sal_Int32, const css::uno::Sequence< OUString >& )
{
uno::Sequence< css::beans::PropertyValue > aValues(0);
return aValues;
}
-css::awt::Rectangle SAL_CALL AccessibleShape::getCharacterBounds( sal_Int32 ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception)
+css::awt::Rectangle SAL_CALL AccessibleShape::getCharacterBounds( sal_Int32 )
{
return css::awt::Rectangle(0, 0, 0, 0 );
}
-sal_Int32 SAL_CALL AccessibleShape::getCharacterCount( ) throw (css::uno::RuntimeException, std::exception){return 0;}
-sal_Int32 SAL_CALL AccessibleShape::getIndexAtPoint( const css::awt::Point& ) throw (css::uno::RuntimeException, std::exception){return 0;}
-OUString SAL_CALL AccessibleShape::getSelectedText( ) throw (css::uno::RuntimeException, std::exception){return OUString();}
-sal_Int32 SAL_CALL AccessibleShape::getSelectionStart( ) throw (css::uno::RuntimeException, std::exception){return 0;}
-sal_Int32 SAL_CALL AccessibleShape::getSelectionEnd( ) throw (css::uno::RuntimeException, std::exception){return 0;}
-sal_Bool SAL_CALL AccessibleShape::setSelection( sal_Int32, sal_Int32 ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception){return true;}
-OUString SAL_CALL AccessibleShape::getText( ) throw (css::uno::RuntimeException, std::exception){return OUString();}
-OUString SAL_CALL AccessibleShape::getTextRange( sal_Int32, sal_Int32 ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception){return OUString();}
-css::accessibility::TextSegment SAL_CALL AccessibleShape::getTextAtIndex( sal_Int32, sal_Int16 ) throw (css::lang::IndexOutOfBoundsException, css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL AccessibleShape::getCharacterCount( ){return 0;}
+sal_Int32 SAL_CALL AccessibleShape::getIndexAtPoint( const css::awt::Point& ){return 0;}
+OUString SAL_CALL AccessibleShape::getSelectedText( ){return OUString();}
+sal_Int32 SAL_CALL AccessibleShape::getSelectionStart( ){return 0;}
+sal_Int32 SAL_CALL AccessibleShape::getSelectionEnd( ){return 0;}
+sal_Bool SAL_CALL AccessibleShape::setSelection( sal_Int32, sal_Int32 ){return true;}
+OUString SAL_CALL AccessibleShape::getText( ){return OUString();}
+OUString SAL_CALL AccessibleShape::getTextRange( sal_Int32, sal_Int32 ){return OUString();}
+css::accessibility::TextSegment SAL_CALL AccessibleShape::getTextAtIndex( sal_Int32, sal_Int16 )
{
css::accessibility::TextSegment aResult;
return aResult;
}
-css::accessibility::TextSegment SAL_CALL AccessibleShape::getTextBeforeIndex( sal_Int32, sal_Int16 ) throw (css::lang::IndexOutOfBoundsException, css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
+css::accessibility::TextSegment SAL_CALL AccessibleShape::getTextBeforeIndex( sal_Int32, sal_Int16 )
{
css::accessibility::TextSegment aResult;
return aResult;
}
-css::accessibility::TextSegment SAL_CALL AccessibleShape::getTextBehindIndex( sal_Int32, sal_Int16 ) throw (css::lang::IndexOutOfBoundsException, css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
+css::accessibility::TextSegment SAL_CALL AccessibleShape::getTextBehindIndex( sal_Int32, sal_Int16 )
{
css::accessibility::TextSegment aResult;
return aResult;
}
-sal_Bool SAL_CALL AccessibleShape::copyText( sal_Int32, sal_Int32 ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception){return true;}
+sal_Bool SAL_CALL AccessibleShape::copyText( sal_Int32, sal_Int32 ){return true;}
} // end of namespace accessibility