summaryrefslogtreecommitdiff
path: root/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /sc/source/ui/Accessibility/AccessibleCsvControl.cxx
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleCsvControl.cxx')
-rw-r--r--sc/source/ui/Accessibility/AccessibleCsvControl.cxx132
1 files changed, 38 insertions, 94 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
index 39ab0c4817df..428a440fd398 100644
--- a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
@@ -104,20 +104,19 @@ void SAL_CALL ScAccessibleCsvControl::disposing()
// XAccessibleComponent -------------------------------------------------------
Reference< XAccessible > SAL_CALL ScAccessibleCsvControl::getAccessibleAtPoint( const css::awt::Point& /* rPoint */ )
- throw( RuntimeException, std::exception )
{
ensureAlive();
return nullptr;
}
-bool SAL_CALL ScAccessibleCsvControl::isVisible() throw( RuntimeException, std::exception )
+bool SAL_CALL ScAccessibleCsvControl::isVisible()
{
SolarMutexGuard aGuard;
ensureAlive();
return implGetControl().IsVisible();
}
-void SAL_CALL ScAccessibleCsvControl::grabFocus() throw( RuntimeException, std::exception )
+void SAL_CALL ScAccessibleCsvControl::grabFocus()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -172,21 +171,21 @@ void ScAccessibleCsvControl::SendRemoveColumnEvent( sal_uInt32 /* nFirstColumn *
// helpers --------------------------------------------------------------------
-Rectangle ScAccessibleCsvControl::GetBoundingBoxOnScreen() const throw( RuntimeException, std::exception )
+Rectangle ScAccessibleCsvControl::GetBoundingBoxOnScreen() const
{
SolarMutexGuard aGuard;
ensureAlive();
return implGetControl().GetWindowExtentsRelative( nullptr );
}
-Rectangle ScAccessibleCsvControl::GetBoundingBox() const throw( RuntimeException, std::exception )
+Rectangle ScAccessibleCsvControl::GetBoundingBox() const
{
SolarMutexGuard aGuard;
ensureAlive();
return implGetControl().GetWindowExtentsRelative( implGetControl().GetAccessibleParentWindow() );
}
-void ScAccessibleCsvControl::ensureAlive() const throw( DisposedException )
+void ScAccessibleCsvControl::ensureAlive() const
{
if( !implIsAlive() )
throw DisposedException();
@@ -199,7 +198,7 @@ ScCsvControl& ScAccessibleCsvControl::implGetControl() const
}
Reference< XAccessible > ScAccessibleCsvControl::implGetChildByRole(
- const Reference< XAccessible >& rxParentObj, sal_uInt16 nRole ) throw( RuntimeException )
+ const Reference< XAccessible >& rxParentObj, sal_uInt16 nRole )
{
Reference< XAccessible > xAccObj;
if( rxParentObj.is() )
@@ -342,7 +341,6 @@ ScAccessibleCsvRuler::~ScAccessibleCsvRuler()
// XAccessibleComponent -----------------------------------------------------
sal_Int32 SAL_CALL ScAccessibleCsvRuler::getForeground( )
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -350,7 +348,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvRuler::getForeground( )
}
sal_Int32 SAL_CALL ScAccessibleCsvRuler::getBackground( )
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -359,21 +356,19 @@ sal_Int32 SAL_CALL ScAccessibleCsvRuler::getBackground( )
// XAccessibleContext ---------------------------------------------------------
-sal_Int32 SAL_CALL ScAccessibleCsvRuler::getAccessibleChildCount() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvRuler::getAccessibleChildCount()
{
ensureAlive();
return 0;
}
Reference< XAccessible > SAL_CALL ScAccessibleCsvRuler::getAccessibleChild( sal_Int32 /* nIndex */ )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
ensureAlive();
throw IndexOutOfBoundsException();
}
Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvRuler::getAccessibleRelationSet()
- throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -389,7 +384,6 @@ Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvRuler::getAccessible
}
Reference< XAccessibleStateSet > SAL_CALL ScAccessibleCsvRuler::getAccessibleStateSet()
- throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
AccessibleStateSetHelper* pStateSet = implCreateStateSet();
@@ -405,7 +399,7 @@ Reference< XAccessibleStateSet > SAL_CALL ScAccessibleCsvRuler::getAccessibleSta
// XAccessibleText ------------------------------------------------------------
-sal_Int32 SAL_CALL ScAccessibleCsvRuler::getCaretPosition() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvRuler::getCaretPosition()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -413,7 +407,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvRuler::getCaretPosition() throw( RuntimeExcept
}
sal_Bool SAL_CALL ScAccessibleCsvRuler::setCaretPosition( sal_Int32 nIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -425,7 +418,6 @@ sal_Bool SAL_CALL ScAccessibleCsvRuler::setCaretPosition( sal_Int32 nIndex )
}
sal_Unicode SAL_CALL ScAccessibleCsvRuler::getCharacter( sal_Int32 nIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -435,7 +427,6 @@ sal_Unicode SAL_CALL ScAccessibleCsvRuler::getCharacter( sal_Int32 nIndex )
Sequence< PropertyValue > SAL_CALL ScAccessibleCsvRuler::getCharacterAttributes( sal_Int32 nIndex,
const css::uno::Sequence< OUString >& /* aRequestedAttributes */ )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -446,7 +437,6 @@ Sequence< PropertyValue > SAL_CALL ScAccessibleCsvRuler::getCharacterAttributes(
}
css::awt::Rectangle SAL_CALL ScAccessibleCsvRuler::getCharacterBounds( sal_Int32 nIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -463,7 +453,7 @@ css::awt::Rectangle SAL_CALL ScAccessibleCsvRuler::getCharacterBounds( sal_Int32
return aRect;
}
-sal_Int32 SAL_CALL ScAccessibleCsvRuler::getCharacterCount() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvRuler::getCharacterCount()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -471,7 +461,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvRuler::getCharacterCount() throw( RuntimeExcep
}
sal_Int32 SAL_CALL ScAccessibleCsvRuler::getIndexAtPoint( const css::awt::Point& rPoint )
- throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -480,32 +469,31 @@ sal_Int32 SAL_CALL ScAccessibleCsvRuler::getIndexAtPoint( const css::awt::Point&
return lcl_GetApiPos( ::std::min( ::std::max( rRuler.GetPosFromX( rPoint.X ), static_cast<sal_Int32>(0) ), rRuler.GetPosCount() ) );
}
-OUString SAL_CALL ScAccessibleCsvRuler::getSelectedText() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvRuler::getSelectedText()
{
ensureAlive();
return OUString();
}
-sal_Int32 SAL_CALL ScAccessibleCsvRuler::getSelectionStart() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvRuler::getSelectionStart()
{
ensureAlive();
return -1;
}
-sal_Int32 SAL_CALL ScAccessibleCsvRuler::getSelectionEnd() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvRuler::getSelectionEnd()
{
ensureAlive();
return -1;
}
sal_Bool SAL_CALL ScAccessibleCsvRuler::setSelection( sal_Int32 /* nStartIndex */, sal_Int32 /* nEndIndex */ )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
ensureAlive();
return false;
}
-OUString SAL_CALL ScAccessibleCsvRuler::getText() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvRuler::getText()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -513,7 +501,6 @@ OUString SAL_CALL ScAccessibleCsvRuler::getText() throw( RuntimeException, std::
}
OUString SAL_CALL ScAccessibleCsvRuler::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -522,7 +509,6 @@ OUString SAL_CALL ScAccessibleCsvRuler::getTextRange( sal_Int32 nStartIndex, sal
}
TextSegment SAL_CALL ScAccessibleCsvRuler::getTextAtIndex( sal_Int32 nIndex, sal_Int16 nTextType )
- throw( IndexOutOfBoundsException, IllegalArgumentException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -587,7 +573,6 @@ TextSegment SAL_CALL ScAccessibleCsvRuler::getTextAtIndex( sal_Int32 nIndex, sal
}
TextSegment SAL_CALL ScAccessibleCsvRuler::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 nTextType )
- throw( IndexOutOfBoundsException, IllegalArgumentException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -640,7 +625,6 @@ TextSegment SAL_CALL ScAccessibleCsvRuler::getTextBeforeIndex( sal_Int32 nIndex,
}
TextSegment SAL_CALL ScAccessibleCsvRuler::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 nTextType )
- throw( IndexOutOfBoundsException, IllegalArgumentException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -694,7 +678,6 @@ TextSegment SAL_CALL ScAccessibleCsvRuler::getTextBehindIndex( sal_Int32 nIndex,
}
sal_Bool SAL_CALL ScAccessibleCsvRuler::copyText( sal_Int32 /* nStartIndex */, sal_Int32 /* nEndIndex */ )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
ensureAlive();
return false;
@@ -703,7 +686,6 @@ sal_Bool SAL_CALL ScAccessibleCsvRuler::copyText( sal_Int32 /* nStartIndex */, s
// XInterface -----------------------------------------------------------------
Any SAL_CALL ScAccessibleCsvRuler::queryInterface( const css::uno::Type& rType )
- throw( RuntimeException, std::exception )
{
Any aAny( ScAccessibleCsvRulerImpl::queryInterface( rType ) );
return aAny.hasValue() ? aAny : ScAccessibleCsvControl::queryInterface( rType );
@@ -721,21 +703,21 @@ void SAL_CALL ScAccessibleCsvRuler::release() throw ()
// XServiceInfo ---------------------------------------------------------------
-OUString SAL_CALL ScAccessibleCsvRuler::getImplementationName() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvRuler::getImplementationName()
{
return OUString( RULER_IMPL_NAME );
}
// XTypeProvider --------------------------------------------------------------
-Sequence< css::uno::Type > SAL_CALL ScAccessibleCsvRuler::getTypes() throw( RuntimeException, std::exception )
+Sequence< css::uno::Type > SAL_CALL ScAccessibleCsvRuler::getTypes()
{
Sequence< css::uno::Type > aSeq( 1 );
aSeq[ 0 ] = cppu::UnoType<XAccessibleText>::get();
return ::comphelper::concatSequences( ScAccessibleCsvControl::getTypes(), aSeq );
}
-Sequence< sal_Int8 > SAL_CALL ScAccessibleCsvRuler::getImplementationId() throw( RuntimeException, std::exception )
+Sequence< sal_Int8 > SAL_CALL ScAccessibleCsvRuler::getImplementationId()
{
return css::uno::Sequence<sal_Int8>();
}
@@ -757,32 +739,29 @@ void ScAccessibleCsvRuler::SendCaretEvent()
// helpers --------------------------------------------------------------------
-OUString SAL_CALL ScAccessibleCsvRuler::createAccessibleName() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvRuler::createAccessibleName()
{
return OUString( ScResId( STR_ACC_CSVRULER_NAME ) );
}
-OUString SAL_CALL ScAccessibleCsvRuler::createAccessibleDescription() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvRuler::createAccessibleDescription()
{
return OUString( ScResId( STR_ACC_CSVRULER_DESCR ) );
}
void ScAccessibleCsvRuler::ensureValidIndex( sal_Int32 nIndex ) const
- throw( IndexOutOfBoundsException )
{
if( (nIndex < 0) || (nIndex >= implGetTextLength()) )
throw IndexOutOfBoundsException();
}
void ScAccessibleCsvRuler::ensureValidIndexWithEnd( sal_Int32 nIndex ) const
- throw( IndexOutOfBoundsException )
{
if( (nIndex < 0) || (nIndex > implGetTextLength()) )
throw IndexOutOfBoundsException();
}
void ScAccessibleCsvRuler::ensureValidRange( sal_Int32& rnStartIndex, sal_Int32& rnEndIndex ) const
- throw( IndexOutOfBoundsException )
{
if( rnStartIndex > rnEndIndex )
::std::swap( rnStartIndex, rnEndIndex );
@@ -795,7 +774,7 @@ ScCsvRuler& ScAccessibleCsvRuler::implGetRuler() const
return static_cast< ScCsvRuler& >( implGetControl() );
}
-void ScAccessibleCsvRuler::constructStringBuffer() throw( RuntimeException )
+void ScAccessibleCsvRuler::constructStringBuffer()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -877,7 +856,6 @@ void ScAccessibleCsvGrid::disposing()
// XAccessibleComponent -------------------------------------------------------
Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleAtPoint( const css::awt::Point& rPoint )
- throw( RuntimeException, std::exception )
{
Reference< XAccessible > xRet;
if( containsPoint( rPoint ) )
@@ -897,7 +875,6 @@ Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleAtPoint( con
}
sal_Int32 SAL_CALL ScAccessibleCsvGrid::getForeground( )
-throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -905,7 +882,6 @@ throw (RuntimeException, std::exception)
}
sal_Int32 SAL_CALL ScAccessibleCsvGrid::getBackground( )
-throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -914,7 +890,7 @@ throw (RuntimeException, std::exception)
// XAccessibleContext ---------------------------------------------------------
-sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleChildCount() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleChildCount()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -938,7 +914,6 @@ Reference<XAccessible> ScAccessibleCsvGrid::getAccessibleCell(sal_Int32 nRow, sa
}
Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleChild( sal_Int32 nIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -948,7 +923,6 @@ Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleChild( sal_I
}
Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvGrid::getAccessibleRelationSet()
- throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -964,7 +938,6 @@ Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvGrid::getAccessibleR
}
Reference< XAccessibleStateSet > SAL_CALL ScAccessibleCsvGrid::getAccessibleStateSet()
- throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
AccessibleStateSetHelper* pStateSet = implCreateStateSet();
@@ -983,14 +956,14 @@ Reference< XAccessibleStateSet > SAL_CALL ScAccessibleCsvGrid::getAccessibleStat
// XAccessibleTable -----------------------------------------------------------
-sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRowCount() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRowCount()
{
SolarMutexGuard aGuard;
ensureAlive();
return implGetRowCount();
}
-sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnCount() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnCount()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -998,7 +971,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnCount() throw( Runtim
}
OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleRowDescription( sal_Int32 nRow )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1007,7 +979,6 @@ OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleRowDescription( sal_Int32 nR
}
OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnDescription( sal_Int32 nColumn )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1016,7 +987,6 @@ OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnDescription( sal_Int32
}
sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRowExtentAt( sal_Int32 nRow, sal_Int32 nColumn )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
ensureAlive();
ensureValidPosition( nRow, nColumn );
@@ -1024,7 +994,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRowExtentAt( sal_Int32 nRow
}
sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnExtentAt( sal_Int32 nRow, sal_Int32 nColumn )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
ensureAlive();
ensureValidPosition( nRow, nColumn );
@@ -1032,28 +1001,24 @@ sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnExtentAt( sal_Int32 n
}
Reference< XAccessibleTable > SAL_CALL ScAccessibleCsvGrid::getAccessibleRowHeaders()
- throw( RuntimeException, std::exception )
{
ensureAlive();
return nullptr;
}
Reference< XAccessibleTable > SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnHeaders()
- throw( RuntimeException, std::exception )
{
ensureAlive();
return nullptr;
}
Sequence< sal_Int32 > SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleRows()
- throw( RuntimeException, std::exception )
{
ensureAlive();
return Sequence< sal_Int32 >();
}
Sequence< sal_Int32 > SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleColumns()
- throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1071,14 +1036,12 @@ Sequence< sal_Int32 > SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleColumns
}
sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleRowSelected( sal_Int32 /* nRow */ )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
ensureAlive();
return false;
}
sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleColumnSelected( sal_Int32 nColumn )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1087,7 +1050,6 @@ sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleColumnSelected( sal_Int32 nCo
}
Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleCellAt( sal_Int32 nRow, sal_Int32 nColumn )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1096,27 +1058,23 @@ Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleCellAt( sal_
}
Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleCaption()
- throw( RuntimeException, std::exception )
{
ensureAlive();
return nullptr;
}
Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleSummary()
- throw( RuntimeException, std::exception )
{
ensureAlive();
return nullptr;
}
sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleSelected( sal_Int32 /* nRow */, sal_Int32 nColumn )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
return isAccessibleColumnSelected( nColumn );
}
sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleIndex( sal_Int32 nRow, sal_Int32 nColumn )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1125,7 +1083,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleIndex( sal_Int32 nRow, sal_
}
sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRow( sal_Int32 nChildIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1134,7 +1091,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRow( sal_Int32 nChildIndex
}
sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumn( sal_Int32 nChildIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1145,7 +1101,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumn( sal_Int32 nChildInd
// XAccessibleSelection -------------------------------------------------------
void SAL_CALL ScAccessibleCsvGrid::selectAccessibleChild( sal_Int32 nChildIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1158,7 +1113,6 @@ void SAL_CALL ScAccessibleCsvGrid::selectAccessibleChild( sal_Int32 nChildIndex
}
sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleChildSelected( sal_Int32 nChildIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1167,19 +1121,19 @@ sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleChildSelected( sal_Int32 nChi
return implIsColumnSelected( nColumn );
}
-void SAL_CALL ScAccessibleCsvGrid::clearAccessibleSelection() throw( RuntimeException, std::exception )
+void SAL_CALL ScAccessibleCsvGrid::clearAccessibleSelection()
{
SolarMutexGuard aGuard;
ensureAlive();
implGetGrid().SelectAll( false );
}
-void SAL_CALL ScAccessibleCsvGrid::selectAllAccessibleChildren() throw( RuntimeException, std::exception )
+void SAL_CALL ScAccessibleCsvGrid::selectAllAccessibleChildren()
{
selectAccessibleChild( 0 );
}
-sal_Int32 SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChildCount() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChildCount()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1187,7 +1141,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChildCount() throw(
}
Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1201,7 +1154,6 @@ Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChil
}
void SAL_CALL ScAccessibleCsvGrid::deselectAccessibleChild( sal_Int32 nSelectedChildIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1218,7 +1170,6 @@ void SAL_CALL ScAccessibleCsvGrid::deselectAccessibleChild( sal_Int32 nSelectedC
// XInterface -----------------------------------------------------------------
Any SAL_CALL ScAccessibleCsvGrid::queryInterface( const css::uno::Type& rType )
- throw( RuntimeException, std::exception )
{
Any aAny( ScAccessibleCsvGridImpl::queryInterface( rType ) );
return aAny.hasValue() ? aAny : ScAccessibleCsvControl::queryInterface( rType );
@@ -1236,14 +1187,14 @@ void SAL_CALL ScAccessibleCsvGrid::release() throw ()
// XServiceInfo ---------------------------------------------------------------
-OUString SAL_CALL ScAccessibleCsvGrid::getImplementationName() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvGrid::getImplementationName()
{
return OUString( GRID_IMPL_NAME );
}
// XTypeProvider --------------------------------------------------------------
-Sequence< css::uno::Type > SAL_CALL ScAccessibleCsvGrid::getTypes() throw( RuntimeException, std::exception )
+Sequence< css::uno::Type > SAL_CALL ScAccessibleCsvGrid::getTypes()
{
Sequence< css::uno::Type > aSeq( 2 );
aSeq[ 0 ] = cppu::UnoType<XAccessibleTable>::get();
@@ -1251,7 +1202,7 @@ Sequence< css::uno::Type > SAL_CALL ScAccessibleCsvGrid::getTypes() throw( Runti
return ::comphelper::concatSequences( ScAccessibleCsvControl::getTypes(), aSeq );
}
-Sequence< sal_Int8 > SAL_CALL ScAccessibleCsvGrid::getImplementationId() throw( RuntimeException, std::exception )
+Sequence< sal_Int8 > SAL_CALL ScAccessibleCsvGrid::getImplementationId()
{
return css::uno::Sequence<sal_Int8>();
}
@@ -1316,25 +1267,23 @@ void ScAccessibleCsvGrid::SendRemoveColumnEvent( sal_uInt32 nFirstColumn, sal_uI
// helpers --------------------------------------------------------------------
-OUString SAL_CALL ScAccessibleCsvGrid::createAccessibleName() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvGrid::createAccessibleName()
{
return OUString( ScResId( STR_ACC_CSVGRID_NAME ) );
}
-OUString SAL_CALL ScAccessibleCsvGrid::createAccessibleDescription() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvGrid::createAccessibleDescription()
{
return OUString( ScResId( STR_ACC_CSVGRID_DESCR ) );
}
void ScAccessibleCsvGrid::ensureValidIndex( sal_Int32 nIndex ) const
- throw( IndexOutOfBoundsException )
{
if( (nIndex < 0) || (nIndex >= implGetCellCount()) )
throw IndexOutOfBoundsException();
}
void ScAccessibleCsvGrid::ensureValidPosition( sal_Int32 nRow, sal_Int32 nColumn ) const
- throw( IndexOutOfBoundsException )
{
if( (nRow < 0) || (nRow >= implGetRowCount()) || (nColumn < 0) || (nColumn >= implGetColumnCount()) )
throw IndexOutOfBoundsException();
@@ -1434,7 +1383,7 @@ void SAL_CALL ScAccessibleCsvCell::disposing()
// XAccessibleComponent -------------------------------------------------------
-void SAL_CALL ScAccessibleCsvCell::grabFocus() throw( RuntimeException, std::exception )
+void SAL_CALL ScAccessibleCsvCell::grabFocus()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1443,7 +1392,6 @@ void SAL_CALL ScAccessibleCsvCell::grabFocus() throw( RuntimeException, std::exc
}
sal_Int32 SAL_CALL ScAccessibleCsvCell::getForeground( )
-throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1451,7 +1399,6 @@ throw (RuntimeException, std::exception)
}
sal_Int32 SAL_CALL ScAccessibleCsvCell::getBackground( )
-throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1460,18 +1407,17 @@ throw (RuntimeException, std::exception)
// XAccessibleContext -----------------------------------------------------
-sal_Int32 SAL_CALL ScAccessibleCsvCell::getAccessibleChildCount() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvCell::getAccessibleChildCount()
{
return AccessibleStaticTextBase::getAccessibleChildCount();
}
Reference< XAccessible > SAL_CALL ScAccessibleCsvCell::getAccessibleChild( sal_Int32 nIndex )
- throw( IndexOutOfBoundsException, RuntimeException, std::exception )
{
return AccessibleStaticTextBase::getAccessibleChild( nIndex );
}
-sal_Int32 SAL_CALL ScAccessibleCsvCell::getAccessibleIndexInParent() throw( RuntimeException, std::exception )
+sal_Int32 SAL_CALL ScAccessibleCsvCell::getAccessibleIndexInParent()
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1479,7 +1425,6 @@ sal_Int32 SAL_CALL ScAccessibleCsvCell::getAccessibleIndexInParent() throw( Runt
}
Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvCell::getAccessibleRelationSet()
- throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1487,7 +1432,6 @@ Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvCell::getAccessibleR
}
Reference< XAccessibleStateSet > SAL_CALL ScAccessibleCsvCell::getAccessibleStateSet()
- throw( RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
AccessibleStateSetHelper* pStateSet = implCreateStateSet();
@@ -1515,14 +1459,14 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2( ScAccessibleCsvCell, ScAccessibleCsvControl, A
// XServiceInfo ---------------------------------------------------------------
-OUString SAL_CALL ScAccessibleCsvCell::getImplementationName() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvCell::getImplementationName()
{
return OUString( CELL_IMPL_NAME );
}
// helpers --------------------------------------------------------------------
-Rectangle ScAccessibleCsvCell::GetBoundingBoxOnScreen() const throw( RuntimeException, std::exception )
+Rectangle ScAccessibleCsvCell::GetBoundingBoxOnScreen() const
{
SolarMutexGuard aGuard;
ensureAlive();
@@ -1531,19 +1475,19 @@ Rectangle ScAccessibleCsvCell::GetBoundingBoxOnScreen() const throw( RuntimeExce
return aRect;
}
-Rectangle ScAccessibleCsvCell::GetBoundingBox() const throw( RuntimeException, std::exception )
+Rectangle ScAccessibleCsvCell::GetBoundingBox() const
{
SolarMutexGuard aGuard;
ensureAlive();
return implGetBoundingBox();
}
-OUString SAL_CALL ScAccessibleCsvCell::createAccessibleName() throw( RuntimeException, std::exception )
+OUString SAL_CALL ScAccessibleCsvCell::createAccessibleName()
{
return maCellText;
}
-OUString SAL_CALL ScAccessibleCsvCell::createAccessibleDescription() throw( RuntimeException )
+OUString SAL_CALL ScAccessibleCsvCell::createAccessibleDescription()
{
return OUString();
}