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 /sc/source/ui/unoobj/cursuno.cxx | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'sc/source/ui/unoobj/cursuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/cursuno.cxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/sc/source/ui/unoobj/cursuno.cxx b/sc/source/ui/unoobj/cursuno.cxx index d9e21c0b04e4..cd931df9fa61 100644 --- a/sc/source/ui/unoobj/cursuno.cxx +++ b/sc/source/ui/unoobj/cursuno.cxx @@ -50,7 +50,7 @@ ScCellCursorObj::~ScCellCursorObj() { } -uno::Any SAL_CALL ScCellCursorObj::queryInterface( const uno::Type& rType ) throw(uno::RuntimeException) +uno::Any SAL_CALL ScCellCursorObj::queryInterface( const uno::Type& rType ) throw(uno::RuntimeException, std::exception) { SC_QUERYINTERFACE( sheet::XSheetCellCursor ) SC_QUERYINTERFACE( sheet::XUsedAreaCursor ) @@ -69,7 +69,7 @@ void SAL_CALL ScCellCursorObj::release() throw() ScCellRangeObj::release(); } -uno::Sequence<uno::Type> SAL_CALL ScCellCursorObj::getTypes() throw(uno::RuntimeException) +uno::Sequence<uno::Type> SAL_CALL ScCellCursorObj::getTypes() throw(uno::RuntimeException, std::exception) { static uno::Sequence<uno::Type> aTypes; if ( aTypes.getLength() == 0 ) @@ -95,14 +95,14 @@ namespace class theScCellCursorObjImplementationId : public rtl::Static< UnoTunnelIdInit, theScCellCursorObjImplementationId > {}; } -uno::Sequence<sal_Int8> SAL_CALL ScCellCursorObj::getImplementationId() throw(uno::RuntimeException) +uno::Sequence<sal_Int8> SAL_CALL ScCellCursorObj::getImplementationId() throw(uno::RuntimeException, std::exception) { return theScCellCursorObjImplementationId::get().getSeq(); } // XSheetCellCursor -void SAL_CALL ScCellCursorObj::collapseToCurrentRegion() throw(uno::RuntimeException) +void SAL_CALL ScCellCursorObj::collapseToCurrentRegion() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const ScRangeList& rRanges = GetRangeList(); @@ -160,7 +160,7 @@ void SAL_CALL ScCellCursorObj::collapseToCurrentArray() }*/ } -void SAL_CALL ScCellCursorObj::collapseToMergedArea() throw(uno::RuntimeException) +void SAL_CALL ScCellCursorObj::collapseToMergedArea() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDocShell* pDocSh = GetDocShell(); @@ -178,7 +178,7 @@ void SAL_CALL ScCellCursorObj::collapseToMergedArea() throw(uno::RuntimeExceptio } } -void SAL_CALL ScCellCursorObj::expandToEntireColumns() throw(uno::RuntimeException) +void SAL_CALL ScCellCursorObj::expandToEntireColumns() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const ScRangeList& rRanges = GetRangeList(); @@ -191,7 +191,7 @@ void SAL_CALL ScCellCursorObj::expandToEntireColumns() throw(uno::RuntimeExcepti SetNewRange( aNewRange ); } -void SAL_CALL ScCellCursorObj::expandToEntireRows() throw(uno::RuntimeException) +void SAL_CALL ScCellCursorObj::expandToEntireRows() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const ScRangeList& rRanges = GetRangeList(); @@ -205,7 +205,7 @@ void SAL_CALL ScCellCursorObj::expandToEntireRows() throw(uno::RuntimeException) } void SAL_CALL ScCellCursorObj::collapseToSize( sal_Int32 nColumns, sal_Int32 nRows ) - throw(uno::RuntimeException) + throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; if ( nColumns <= 0 || nRows <= 0 ) @@ -269,7 +269,7 @@ void SAL_CALL ScCellCursorObj::gotoStartOfUsedArea(sal_Bool bExpand) } void SAL_CALL ScCellCursorObj::gotoEndOfUsedArea( sal_Bool bExpand ) - throw(uno::RuntimeException) + throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDocShell* pDocSh = GetDocShell(); @@ -298,7 +298,7 @@ void SAL_CALL ScCellCursorObj::gotoEndOfUsedArea( sal_Bool bExpand ) // XCellCursor -void SAL_CALL ScCellCursorObj::gotoStart() throw(uno::RuntimeException) +void SAL_CALL ScCellCursorObj::gotoStart() throw(uno::RuntimeException, std::exception) { // this is similar to collapseToCurrentRegion //! something like gotoEdge with 4 possible directions is needed @@ -326,7 +326,7 @@ void SAL_CALL ScCellCursorObj::gotoStart() throw(uno::RuntimeException) } } -void SAL_CALL ScCellCursorObj::gotoEnd() throw(uno::RuntimeException) +void SAL_CALL ScCellCursorObj::gotoEnd() throw(uno::RuntimeException, std::exception) { // this is similar to collapseToCurrentRegion //! something like gotoEdge with 4 possible directions is needed @@ -354,7 +354,7 @@ void SAL_CALL ScCellCursorObj::gotoEnd() throw(uno::RuntimeException) } } -void SAL_CALL ScCellCursorObj::gotoNext() throw(uno::RuntimeException) +void SAL_CALL ScCellCursorObj::gotoNext() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const ScRangeList& rRanges = GetRangeList(); @@ -376,7 +376,7 @@ void SAL_CALL ScCellCursorObj::gotoNext() throw(uno::RuntimeException) SetNewRange( ScRange( nNewX, nNewY, nTab ) ); } -void SAL_CALL ScCellCursorObj::gotoPrevious() throw(uno::RuntimeException) +void SAL_CALL ScCellCursorObj::gotoPrevious() throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const ScRangeList& rRanges = GetRangeList(); @@ -399,7 +399,7 @@ void SAL_CALL ScCellCursorObj::gotoPrevious() throw(uno::RuntimeException) } void SAL_CALL ScCellCursorObj::gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nRowOffset ) - throw(uno::RuntimeException) + throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const ScRangeList& rRanges = GetRangeList(); @@ -425,7 +425,7 @@ void SAL_CALL ScCellCursorObj::gotoOffset( sal_Int32 nColumnOffset, sal_Int32 nR // XSheetCellRange uno::Reference<sheet::XSpreadsheet> SAL_CALL ScCellCursorObj::getSpreadsheet() - throw(uno::RuntimeException) + throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; return ScCellRangeObj::getSpreadsheet(); @@ -435,7 +435,7 @@ uno::Reference<sheet::XSpreadsheet> SAL_CALL ScCellCursorObj::getSpreadsheet() uno::Reference<table::XCell> SAL_CALL ScCellCursorObj::getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) - throw(lang::IndexOutOfBoundsException, uno::RuntimeException) + throw(lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; return ScCellRangeObj::getCellByPosition(nColumn,nRow); @@ -443,14 +443,14 @@ uno::Reference<table::XCell> SAL_CALL ScCellCursorObj::getCellByPosition( uno::Reference<table::XCellRange> SAL_CALL ScCellCursorObj::getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) - throw(lang::IndexOutOfBoundsException, uno::RuntimeException) + throw(lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; return ScCellRangeObj::getCellRangeByPosition(nLeft,nTop,nRight,nBottom); } uno::Reference<table::XCellRange> SAL_CALL ScCellCursorObj::getCellRangeByName( - const OUString& rRange ) throw(uno::RuntimeException) + const OUString& rRange ) throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; return ScCellRangeObj::getCellRangeByName(rRange); @@ -458,19 +458,19 @@ uno::Reference<table::XCellRange> SAL_CALL ScCellCursorObj::getCellRangeByName( // XServiceInfo -OUString SAL_CALL ScCellCursorObj::getImplementationName() throw(uno::RuntimeException) +OUString SAL_CALL ScCellCursorObj::getImplementationName() throw(uno::RuntimeException, std::exception) { return OUString( "ScCellCursorObj" ); } sal_Bool SAL_CALL ScCellCursorObj::supportsService( const OUString& rServiceName ) - throw(uno::RuntimeException) + throw(uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } uno::Sequence<OUString> SAL_CALL ScCellCursorObj::getSupportedServiceNames() - throw(uno::RuntimeException) + throw(uno::RuntimeException, std::exception) { // get all service names from cell range uno::Sequence<OUString> aParentSeq(ScCellRangeObj::getSupportedServiceNames()); |