diff options
Diffstat (limited to 'sc/source/ui/unoobj/dapiuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/dapiuno.cxx | 160 |
1 files changed, 38 insertions, 122 deletions
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index ecff34578f60..b5d0bccf66eb 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -350,7 +350,6 @@ ScDataPilotTableObj* ScDataPilotTablesObj::GetObjectByName_Impl(const OUString& } Reference<XDataPilotDescriptor> SAL_CALL ScDataPilotTablesObj::createDataPilotDescriptor() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; if (pDocShell) @@ -398,7 +397,6 @@ static OUString lcl_GetOriginalName(const Reference< XNamed >& rDim) void SAL_CALL ScDataPilotTablesObj::insertNewByName( const OUString& aNewName, const CellAddress& aOutputAddress, const Reference<XDataPilotDescriptor>& xDescriptor ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!xDescriptor.is()) return; @@ -437,7 +435,6 @@ void SAL_CALL ScDataPilotTablesObj::insertNewByName( const OUString& aNewName, } void SAL_CALL ScDataPilotTablesObj::removeByName( const OUString& aName ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDPObject* pDPObj = lcl_GetDPObject( pDocShell, nTab, aName ); @@ -452,7 +449,7 @@ void SAL_CALL ScDataPilotTablesObj::removeByName( const OUString& aName ) // XEnumerationAccess -Reference< XEnumeration > SAL_CALL ScDataPilotTablesObj::createEnumeration() throw(RuntimeException, std::exception) +Reference< XEnumeration > SAL_CALL ScDataPilotTablesObj::createEnumeration() { SolarMutexGuard aGuard; return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.DataPilotTablesEnumeration")); @@ -460,7 +457,7 @@ Reference< XEnumeration > SAL_CALL ScDataPilotTablesObj::createEnumeration() thr // XIndexAccess -sal_Int32 SAL_CALL ScDataPilotTablesObj::getCount() throw(RuntimeException, std::exception) +sal_Int32 SAL_CALL ScDataPilotTablesObj::getCount() { SolarMutexGuard aGuard; if ( pDocShell ) @@ -487,7 +484,6 @@ sal_Int32 SAL_CALL ScDataPilotTablesObj::getCount() throw(RuntimeException, std: } Any SAL_CALL ScDataPilotTablesObj::getByIndex( sal_Int32 nIndex ) - throw(IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; Reference<XDataPilotTable2> xTable(GetObjectByIndex_Impl(nIndex)); @@ -496,13 +492,13 @@ Any SAL_CALL ScDataPilotTablesObj::getByIndex( sal_Int32 nIndex ) return Any( xTable ); } -uno::Type SAL_CALL ScDataPilotTablesObj::getElementType() throw(RuntimeException, std::exception) +uno::Type SAL_CALL ScDataPilotTablesObj::getElementType() { SolarMutexGuard aGuard; return cppu::UnoType<XDataPilotTable2>::get(); } -sal_Bool SAL_CALL ScDataPilotTablesObj::hasElements() throw(RuntimeException, std::exception) +sal_Bool SAL_CALL ScDataPilotTablesObj::hasElements() { SolarMutexGuard aGuard; return ( getCount() != 0 ); @@ -511,7 +507,6 @@ sal_Bool SAL_CALL ScDataPilotTablesObj::hasElements() throw(RuntimeException, st // XNameAccess Any SAL_CALL ScDataPilotTablesObj::getByName( const OUString& aName ) - throw(NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; Reference<XDataPilotTable2> xTable(GetObjectByName_Impl(aName)); @@ -521,7 +516,6 @@ Any SAL_CALL ScDataPilotTablesObj::getByName( const OUString& aName ) } Sequence<OUString> SAL_CALL ScDataPilotTablesObj::getElementNames() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; if (pDocShell) @@ -559,7 +553,6 @@ Sequence<OUString> SAL_CALL ScDataPilotTablesObj::getElementNames() } sal_Bool SAL_CALL ScDataPilotTablesObj::hasByName( const OUString& aName ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; if (pDocShell) @@ -597,7 +590,6 @@ ScDataPilotDescriptorBase::~ScDataPilotDescriptorBase() } Any SAL_CALL ScDataPilotDescriptorBase::queryInterface( const uno::Type& rType ) - throw(RuntimeException, std::exception) { SC_QUERYINTERFACE( XDataPilotDescriptor ) SC_QUERYINTERFACE( XPropertySet ) @@ -621,7 +613,6 @@ void SAL_CALL ScDataPilotDescriptorBase::release() throw() } Sequence< uno::Type > SAL_CALL ScDataPilotDescriptorBase::getTypes() - throw(RuntimeException, std::exception) { static Sequence< uno::Type > aTypes; if ( aTypes.getLength() == 0 ) @@ -639,7 +630,6 @@ Sequence< uno::Type > SAL_CALL ScDataPilotDescriptorBase::getTypes() } Sequence<sal_Int8> SAL_CALL ScDataPilotDescriptorBase::getImplementationId() - throw(RuntimeException, std::exception) { return css::uno::Sequence<sal_Int8>(); } @@ -657,7 +647,6 @@ void ScDataPilotDescriptorBase::Notify( SfxBroadcaster&, const SfxHint& rHint ) // XDataPilotDescriptor CellRangeAddress SAL_CALL ScDataPilotDescriptorBase::getSourceRange() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -671,7 +660,7 @@ CellRangeAddress SAL_CALL ScDataPilotDescriptorBase::getSourceRange() return aRet; } -void SAL_CALL ScDataPilotDescriptorBase::setSourceRange( const CellRangeAddress& aSourceRange ) throw(RuntimeException, std::exception) +void SAL_CALL ScDataPilotDescriptorBase::setSourceRange( const CellRangeAddress& aSourceRange ) { SolarMutexGuard aGuard; @@ -691,49 +680,42 @@ void SAL_CALL ScDataPilotDescriptorBase::setSourceRange( const CellRangeAddress& } Reference<XSheetFilterDescriptor> SAL_CALL ScDataPilotDescriptorBase::getFilterDescriptor() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScDataPilotFilterDescriptor( pDocShell, this ); } Reference<XIndexAccess> SAL_CALL ScDataPilotDescriptorBase::getDataPilotFields() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScDataPilotFieldsObj( *this ); } Reference<XIndexAccess> SAL_CALL ScDataPilotDescriptorBase::getColumnFields() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScDataPilotFieldsObj( *this, DataPilotFieldOrientation_COLUMN ); } Reference<XIndexAccess> SAL_CALL ScDataPilotDescriptorBase::getRowFields() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScDataPilotFieldsObj( *this, DataPilotFieldOrientation_ROW ); } Reference<XIndexAccess> SAL_CALL ScDataPilotDescriptorBase::getPageFields() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScDataPilotFieldsObj( *this, DataPilotFieldOrientation_PAGE ); } Reference<XIndexAccess> SAL_CALL ScDataPilotDescriptorBase::getDataFields() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScDataPilotFieldsObj( *this, DataPilotFieldOrientation_DATA ); } Reference<XIndexAccess> SAL_CALL ScDataPilotDescriptorBase::getHiddenFields() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScDataPilotFieldsObj( *this, DataPilotFieldOrientation_HIDDEN ); @@ -741,7 +723,6 @@ Reference<XIndexAccess> SAL_CALL ScDataPilotDescriptorBase::getHiddenFields() // XPropertySet Reference< XPropertySetInfo > SAL_CALL ScDataPilotDescriptorBase::getPropertySetInfo( ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; static Reference<XPropertySetInfo> aRef = @@ -750,8 +731,6 @@ Reference< XPropertySetInfo > SAL_CALL ScDataPilotDescriptorBase::getPropertySet } void SAL_CALL ScDataPilotDescriptorBase::setPropertyValue( const OUString& aPropertyName, const Any& aValue ) - throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, - WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDPObject* pDPObject = GetDPObject(); @@ -895,8 +874,6 @@ void SAL_CALL ScDataPilotDescriptorBase::setPropertyValue( const OUString& aProp } Any SAL_CALL ScDataPilotDescriptorBase::getPropertyValue( const OUString& aPropertyName ) - throw (UnknownPropertyException, WrappedTargetException, - RuntimeException, std::exception) { SolarMutexGuard aGuard; Any aRet; @@ -1007,32 +984,27 @@ Any SAL_CALL ScDataPilotDescriptorBase::getPropertyValue( const OUString& aPrope void SAL_CALL ScDataPilotDescriptorBase::addPropertyChangeListener( const OUString& /* aPropertyName */, const Reference<XPropertyChangeListener >& /* xListener */ ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } void SAL_CALL ScDataPilotDescriptorBase::removePropertyChangeListener( const OUString& /* aPropertyName */, const Reference<XPropertyChangeListener >& /* aListener */ ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } void SAL_CALL ScDataPilotDescriptorBase::addVetoableChangeListener( const OUString& /* PropertyName */, const Reference<XVetoableChangeListener >& /* aListener */ ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } void SAL_CALL ScDataPilotDescriptorBase::removeVetoableChangeListener( const OUString& /* PropertyName */, const Reference<XVetoableChangeListener >& /* aListener */ ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } // XDataPilotDataLayoutFieldSupplier Reference< XDataPilotField > SAL_CALL ScDataPilotDescriptorBase::getDataLayoutField() - throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if( ScDPObject* pDPObject = GetDPObject() ) @@ -1052,7 +1024,7 @@ Reference< XDataPilotField > SAL_CALL ScDataPilotDescriptorBase::getDataLayoutFi // XUnoTunnel sal_Int64 SAL_CALL ScDataPilotDescriptorBase::getSomething( - const Sequence<sal_Int8 >& rId ) throw(RuntimeException, std::exception) + const Sequence<sal_Int8 >& rId ) { if ( rId.getLength() == 16 && 0 == memcmp( getUnoTunnelId().getConstArray(), @@ -1095,7 +1067,6 @@ ScDataPilotTableObj::~ScDataPilotTableObj() } Any SAL_CALL ScDataPilotTableObj::queryInterface( const uno::Type& rType ) - throw(RuntimeException, std::exception) { // since we manually do resolve the query for XDataPilotTable2 // we also need to do the same for XDataPilotTable @@ -1116,7 +1087,7 @@ void SAL_CALL ScDataPilotTableObj::release() throw() ScDataPilotDescriptorBase::release(); } -Sequence< uno::Type > SAL_CALL ScDataPilotTableObj::getTypes() throw(RuntimeException, std::exception) +Sequence< uno::Type > SAL_CALL ScDataPilotTableObj::getTypes() { static Sequence< uno::Type > aTypes; if ( aTypes.getLength() == 0 ) @@ -1137,7 +1108,6 @@ Sequence< uno::Type > SAL_CALL ScDataPilotTableObj::getTypes() throw(RuntimeExce } Sequence<sal_Int8> SAL_CALL ScDataPilotTableObj::getImplementationId() - throw(RuntimeException, std::exception) { return css::uno::Sequence<sal_Int8>(); } @@ -1160,7 +1130,7 @@ void ScDataPilotTableObj::SetDPObject( ScDPObject* pDPObject ) // "rest of XDataPilotDescriptor" -OUString SAL_CALL ScDataPilotTableObj::getName() throw(RuntimeException, std::exception) +OUString SAL_CALL ScDataPilotTableObj::getName() { SolarMutexGuard aGuard; ScDPObject* pDPObj = lcl_GetDPObject(GetDocShell(), nTab, aName); @@ -1170,7 +1140,6 @@ OUString SAL_CALL ScDataPilotTableObj::getName() throw(RuntimeException, std::ex } void SAL_CALL ScDataPilotTableObj::setName( const OUString& aNewName ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDPObject* pDPObj = lcl_GetDPObject(GetDocShell(), nTab, aName); @@ -1186,7 +1155,7 @@ void SAL_CALL ScDataPilotTableObj::setName( const OUString& aNewName ) } } -OUString SAL_CALL ScDataPilotTableObj::getTag() throw(RuntimeException, std::exception) +OUString SAL_CALL ScDataPilotTableObj::getTag() { SolarMutexGuard aGuard; ScDPObject* pDPObj = lcl_GetDPObject(GetDocShell(), nTab, aName); @@ -1196,7 +1165,6 @@ OUString SAL_CALL ScDataPilotTableObj::getTag() throw(RuntimeException, std::exc } void SAL_CALL ScDataPilotTableObj::setTag( const OUString& aNewTag ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDPObject* pDPObj = lcl_GetDPObject(GetDocShell(), nTab, aName); @@ -1211,7 +1179,7 @@ void SAL_CALL ScDataPilotTableObj::setTag( const OUString& aNewTag ) // XDataPilotTable -CellRangeAddress SAL_CALL ScDataPilotTableObj::getOutputRange() throw(RuntimeException, std::exception) +CellRangeAddress SAL_CALL ScDataPilotTableObj::getOutputRange() { SolarMutexGuard aGuard; CellRangeAddress aRet; @@ -1228,7 +1196,7 @@ CellRangeAddress SAL_CALL ScDataPilotTableObj::getOutputRange() throw(RuntimeExc return aRet; } -void SAL_CALL ScDataPilotTableObj::refresh() throw(RuntimeException, std::exception) +void SAL_CALL ScDataPilotTableObj::refresh() { SolarMutexGuard aGuard; ScDPObject* pDPObj = lcl_GetDPObject(GetDocShell(), nTab, aName); @@ -1240,7 +1208,6 @@ void SAL_CALL ScDataPilotTableObj::refresh() throw(RuntimeException, std::except } Sequence< Sequence<Any> > SAL_CALL ScDataPilotTableObj::getDrillDownData(const CellAddress& aAddr) - throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; Sequence< Sequence<Any> > aTabData; @@ -1254,7 +1221,6 @@ Sequence< Sequence<Any> > SAL_CALL ScDataPilotTableObj::getDrillDownData(const C } DataPilotTablePositionData SAL_CALL ScDataPilotTableObj::getPositionData(const CellAddress& aAddr) - throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; DataPilotTablePositionData aPosData; @@ -1268,7 +1234,6 @@ DataPilotTablePositionData SAL_CALL ScDataPilotTableObj::getPositionData(const C } void SAL_CALL ScDataPilotTableObj::insertDrillDownSheet(const CellAddress& aAddr) - throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDPObject* pDPObj = GetDPObject(); @@ -1285,7 +1250,6 @@ void SAL_CALL ScDataPilotTableObj::insertDrillDownSheet(const CellAddress& aAddr } CellRangeAddress SAL_CALL ScDataPilotTableObj::getOutputRangeByType( sal_Int32 nType ) - throw (IllegalArgumentException, RuntimeException, std::exception) { SolarMutexGuard aGuard; if (nType < 0 || nType > DataPilotOutputRangeType::RESULT) @@ -1298,7 +1262,6 @@ CellRangeAddress SAL_CALL ScDataPilotTableObj::getOutputRangeByType( sal_Int32 n } void SAL_CALL ScDataPilotTableObj::addModifyListener( const uno::Reference<util::XModifyListener>& aListener ) - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1311,7 +1274,6 @@ void SAL_CALL ScDataPilotTableObj::addModifyListener( const uno::Reference<util: } void SAL_CALL ScDataPilotTableObj::removeModifyListener( const uno::Reference<util::XModifyListener>& aListener ) - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1412,27 +1374,25 @@ void ScDataPilotDescriptor::SetDPObject( ScDPObject* pDPObject ) // "rest of XDataPilotDescriptor" -OUString SAL_CALL ScDataPilotDescriptor::getName() throw(RuntimeException, std::exception) +OUString SAL_CALL ScDataPilotDescriptor::getName() { SolarMutexGuard aGuard; return mpDPObject->GetName(); } void SAL_CALL ScDataPilotDescriptor::setName( const OUString& aNewName ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; mpDPObject->SetName( aNewName ); } -OUString SAL_CALL ScDataPilotDescriptor::getTag() throw(RuntimeException, std::exception) +OUString SAL_CALL ScDataPilotDescriptor::getTag() { SolarMutexGuard aGuard; return mpDPObject->GetTag(); } void SAL_CALL ScDataPilotDescriptor::setTag( const OUString& aNewTag ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; mpDPObject->SetTag( aNewTag ); @@ -1707,7 +1667,6 @@ ScDataPilotFieldObj* ScDataPilotFieldsObj::GetObjectByName_Impl(const OUString& // XEnumerationAccess Reference<XEnumeration> SAL_CALL ScDataPilotFieldsObj::createEnumeration() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.DataPilotFieldsEnumeration")); @@ -1715,7 +1674,7 @@ Reference<XEnumeration> SAL_CALL ScDataPilotFieldsObj::createEnumeration() // XIndexAccess -sal_Int32 SAL_CALL ScDataPilotFieldsObj::getCount() throw(RuntimeException, std::exception) +sal_Int32 SAL_CALL ScDataPilotFieldsObj::getCount() { SolarMutexGuard aGuard; // TODO @@ -1724,7 +1683,6 @@ sal_Int32 SAL_CALL ScDataPilotFieldsObj::getCount() throw(RuntimeException, std: } Any SAL_CALL ScDataPilotFieldsObj::getByIndex( sal_Int32 nIndex ) - throw(IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; Reference< XPropertySet > xField( GetObjectByIndex_Impl( nIndex ) ); @@ -1733,20 +1691,19 @@ Any SAL_CALL ScDataPilotFieldsObj::getByIndex( sal_Int32 nIndex ) return Any( xField ); } -uno::Type SAL_CALL ScDataPilotFieldsObj::getElementType() throw(RuntimeException, std::exception) +uno::Type SAL_CALL ScDataPilotFieldsObj::getElementType() { SolarMutexGuard aGuard; return cppu::UnoType<XPropertySet>::get(); } -sal_Bool SAL_CALL ScDataPilotFieldsObj::hasElements() throw(RuntimeException, std::exception) +sal_Bool SAL_CALL ScDataPilotFieldsObj::hasElements() { SolarMutexGuard aGuard; return ( getCount() != 0 ); } Any SAL_CALL ScDataPilotFieldsObj::getByName( const OUString& aName ) - throw(NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; Reference<XPropertySet> xField(GetObjectByName_Impl(aName)); @@ -1756,7 +1713,6 @@ Any SAL_CALL ScDataPilotFieldsObj::getByName( const OUString& aName ) } Sequence<OUString> SAL_CALL ScDataPilotFieldsObj::getElementNames() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; // TODO @@ -1780,7 +1736,6 @@ Sequence<OUString> SAL_CALL ScDataPilotFieldsObj::getElementNames() } sal_Bool SAL_CALL ScDataPilotFieldsObj::hasByName( const OUString& aName ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1809,7 +1764,6 @@ ScDataPilotFieldObj::~ScDataPilotFieldObj() // XNamed OUString SAL_CALL ScDataPilotFieldObj::getName() - throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; OUString aName; @@ -1829,7 +1783,6 @@ OUString SAL_CALL ScDataPilotFieldObj::getName() } void SAL_CALL ScDataPilotFieldObj::setName(const OUString& rName) - throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDPObject* pDPObj = nullptr; @@ -1844,7 +1797,6 @@ void SAL_CALL ScDataPilotFieldObj::setName(const OUString& rName) // XPropertySet Reference<XPropertySetInfo> SAL_CALL ScDataPilotFieldObj::getPropertySetInfo() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; static Reference<XPropertySetInfo> aRef( @@ -1853,9 +1805,6 @@ Reference<XPropertySetInfo> SAL_CALL ScDataPilotFieldObj::getPropertySetInfo() } void SAL_CALL ScDataPilotFieldObj::setPropertyValue( const OUString& aPropertyName, const Any& aValue ) - throw (UnknownPropertyException, PropertyVetoException, - IllegalArgumentException, WrappedTargetException, - RuntimeException, std::exception) { SolarMutexGuard aGuard; if ( aPropertyName == SC_UNONAME_FUNCTION ) @@ -1973,8 +1922,6 @@ void SAL_CALL ScDataPilotFieldObj::setPropertyValue( const OUString& aPropertyNa } Any SAL_CALL ScDataPilotFieldObj::getPropertyValue( const OUString& aPropertyName ) - throw (UnknownPropertyException, WrappedTargetException, - RuntimeException, std::exception) { SolarMutexGuard aGuard; Any aRet; @@ -2068,7 +2015,6 @@ Any SAL_CALL ScDataPilotFieldObj::getPropertyValue( const OUString& aPropertyNam // XDatePilotField Reference<XIndexAccess> SAL_CALL ScDataPilotFieldObj::getItems() - throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if (!mxItems.is()) @@ -2563,8 +2509,6 @@ bool ScDataPilotFieldObj::HasString(const Sequence< OUString >& rItems, const OU // XDataPilotFieldGrouping Reference< XDataPilotField > SAL_CALL ScDataPilotFieldObj::createNameGroup( const Sequence< OUString >& rItems ) - throw (RuntimeException, IllegalArgumentException, - std::exception) { SolarMutexGuard aGuard; @@ -2733,8 +2677,6 @@ Reference< XDataPilotField > SAL_CALL ScDataPilotFieldObj::createNameGroup( cons } Reference < XDataPilotField > SAL_CALL ScDataPilotFieldObj::createDateGroup( const DataPilotFieldGroupInfo& rInfo ) - throw (RuntimeException, IllegalArgumentException, - std::exception) { SolarMutexGuard aGuard; using namespace ::com::sun::star::sheet::DataPilotFieldGroupBy; @@ -2900,7 +2842,6 @@ ScDataPilotFieldGroupsObj::~ScDataPilotFieldGroupsObj() // XNameAccess Any SAL_CALL ScDataPilotFieldGroupsObj::getByName( const OUString& rName ) - throw(NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; if( implFindByName( rName ) == maGroups.end() ) @@ -2908,7 +2849,7 @@ Any SAL_CALL ScDataPilotFieldGroupsObj::getByName( const OUString& rName ) return Any( Reference< XNameAccess >( new ScDataPilotFieldGroupObj( *this, rName ) ) ); } -Sequence< OUString > SAL_CALL ScDataPilotFieldGroupsObj::getElementNames() throw(RuntimeException, std::exception) +Sequence< OUString > SAL_CALL ScDataPilotFieldGroupsObj::getElementNames() { SolarMutexGuard aGuard; Sequence< OUString > aSeq; @@ -2922,7 +2863,7 @@ Sequence< OUString > SAL_CALL ScDataPilotFieldGroupsObj::getElementNames() throw return aSeq; } -sal_Bool SAL_CALL ScDataPilotFieldGroupsObj::hasByName( const OUString& rName ) throw(RuntimeException, std::exception) +sal_Bool SAL_CALL ScDataPilotFieldGroupsObj::hasByName( const OUString& rName ) { SolarMutexGuard aGuard; return implFindByName( rName ) != maGroups.end(); @@ -2931,7 +2872,6 @@ sal_Bool SAL_CALL ScDataPilotFieldGroupsObj::hasByName( const OUString& rName ) // XNameReplace void SAL_CALL ScDataPilotFieldGroupsObj::replaceByName( const OUString& rName, const Any& rElement ) - throw (IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2954,7 +2894,6 @@ void SAL_CALL ScDataPilotFieldGroupsObj::replaceByName( const OUString& rName, c // XNameContainer void SAL_CALL ScDataPilotFieldGroupsObj::insertByName( const OUString& rName, const Any& rElement ) - throw (IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2978,7 +2917,6 @@ void SAL_CALL ScDataPilotFieldGroupsObj::insertByName( const OUString& rName, co } void SAL_CALL ScDataPilotFieldGroupsObj::removeByName( const OUString& rName ) - throw (NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -2994,14 +2932,13 @@ void SAL_CALL ScDataPilotFieldGroupsObj::removeByName( const OUString& rName ) // XIndexAccess -sal_Int32 SAL_CALL ScDataPilotFieldGroupsObj::getCount() throw(RuntimeException, std::exception) +sal_Int32 SAL_CALL ScDataPilotFieldGroupsObj::getCount() { SolarMutexGuard aGuard; return static_cast< sal_Int32 >( maGroups.size() ); } Any SAL_CALL ScDataPilotFieldGroupsObj::getByIndex( sal_Int32 nIndex ) - throw(IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; if ((nIndex < 0) || (nIndex >= static_cast< sal_Int32 >( maGroups.size() ))) @@ -3011,7 +2948,7 @@ Any SAL_CALL ScDataPilotFieldGroupsObj::getByIndex( sal_Int32 nIndex ) // XEnumerationAccess -Reference<XEnumeration> SAL_CALL ScDataPilotFieldGroupsObj::createEnumeration() throw(RuntimeException, std::exception) +Reference<XEnumeration> SAL_CALL ScDataPilotFieldGroupsObj::createEnumeration() { SolarMutexGuard aGuard; return new ScIndexEnumeration( this, OUString( "com.sun.star.sheet.DataPilotFieldGroupsEnumeration" ) ); @@ -3019,13 +2956,13 @@ Reference<XEnumeration> SAL_CALL ScDataPilotFieldGroupsObj::createEnumeration() // XElementAccess -uno::Type SAL_CALL ScDataPilotFieldGroupsObj::getElementType() throw(RuntimeException, std::exception) +uno::Type SAL_CALL ScDataPilotFieldGroupsObj::getElementType() { SolarMutexGuard aGuard; return cppu::UnoType<XNameAccess>::get(); } -sal_Bool SAL_CALL ScDataPilotFieldGroupsObj::hasElements() throw(RuntimeException, std::exception) +sal_Bool SAL_CALL ScDataPilotFieldGroupsObj::hasElements() { SolarMutexGuard aGuard; return !maGroups.empty(); @@ -3033,7 +2970,7 @@ sal_Bool SAL_CALL ScDataPilotFieldGroupsObj::hasElements() throw(RuntimeExceptio // implementation -ScFieldGroup& ScDataPilotFieldGroupsObj::getFieldGroup( const OUString& rName ) throw(RuntimeException) +ScFieldGroup& ScDataPilotFieldGroupsObj::getFieldGroup( const OUString& rName ) { SolarMutexGuard aGuard; ScFieldGroups::iterator aIt = implFindByName( rName ); @@ -3042,7 +2979,7 @@ ScFieldGroup& ScDataPilotFieldGroupsObj::getFieldGroup( const OUString& rName ) return *aIt; } -void ScDataPilotFieldGroupsObj::renameFieldGroup( const OUString& rOldName, const OUString& rNewName ) throw(RuntimeException) +void ScDataPilotFieldGroupsObj::renameFieldGroup( const OUString& rOldName, const OUString& rNewName ) { SolarMutexGuard aGuard; ScFieldGroups::iterator aOldIt = implFindByName( rOldName ); @@ -3092,7 +3029,6 @@ ScDataPilotFieldGroupObj::~ScDataPilotFieldGroupObj() // XNameAccess Any SAL_CALL ScDataPilotFieldGroupObj::getByName( const OUString& rName ) - throw(NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; ScFieldGroupMembers& rMembers = mrParent.getFieldGroup( maGroupName ).maMembers; @@ -3102,13 +3038,13 @@ Any SAL_CALL ScDataPilotFieldGroupObj::getByName( const OUString& rName ) return Any( Reference< XNamed >( new ScDataPilotFieldGroupItemObj( *this, *aIt ) ) ); } -Sequence< OUString > SAL_CALL ScDataPilotFieldGroupObj::getElementNames() throw(RuntimeException, std::exception) +Sequence< OUString > SAL_CALL ScDataPilotFieldGroupObj::getElementNames() { SolarMutexGuard aGuard; return ::comphelper::containerToSequence( mrParent.getFieldGroup( maGroupName ).maMembers ); } -sal_Bool SAL_CALL ScDataPilotFieldGroupObj::hasByName( const OUString& rName ) throw(RuntimeException, std::exception) +sal_Bool SAL_CALL ScDataPilotFieldGroupObj::hasByName( const OUString& rName ) { SolarMutexGuard aGuard; ScFieldGroupMembers& rMembers = mrParent.getFieldGroup( maGroupName ).maMembers; @@ -3118,7 +3054,6 @@ sal_Bool SAL_CALL ScDataPilotFieldGroupObj::hasByName( const OUString& rName ) t // XNameReplace void SAL_CALL ScDataPilotFieldGroupObj::replaceByName( const OUString& rName, const Any& rElement ) - throw (IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -3144,7 +3079,6 @@ void SAL_CALL ScDataPilotFieldGroupObj::replaceByName( const OUString& rName, co // XNameContainer void SAL_CALL ScDataPilotFieldGroupObj::insertByName( const OUString& rName, const Any& /*rElement*/ ) - throw (IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -3161,7 +3095,6 @@ void SAL_CALL ScDataPilotFieldGroupObj::insertByName( const OUString& rName, con } void SAL_CALL ScDataPilotFieldGroupObj::removeByName( const OUString& rName ) - throw (NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -3177,14 +3110,13 @@ void SAL_CALL ScDataPilotFieldGroupObj::removeByName( const OUString& rName ) // XIndexAccess -sal_Int32 SAL_CALL ScDataPilotFieldGroupObj::getCount() throw(RuntimeException, std::exception) +sal_Int32 SAL_CALL ScDataPilotFieldGroupObj::getCount() { SolarMutexGuard aGuard; return static_cast< sal_Int32 >( mrParent.getFieldGroup( maGroupName ).maMembers.size() ); } Any SAL_CALL ScDataPilotFieldGroupObj::getByIndex( sal_Int32 nIndex ) - throw(IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; ScFieldGroupMembers& rMembers = mrParent.getFieldGroup( maGroupName ).maMembers; @@ -3195,7 +3127,7 @@ Any SAL_CALL ScDataPilotFieldGroupObj::getByIndex( sal_Int32 nIndex ) // XEnumerationAccess -Reference< XEnumeration > SAL_CALL ScDataPilotFieldGroupObj::createEnumeration() throw(RuntimeException, std::exception) +Reference< XEnumeration > SAL_CALL ScDataPilotFieldGroupObj::createEnumeration() { SolarMutexGuard aGuard; return new ScIndexEnumeration( this, OUString( "com.sun.star.sheet.DataPilotFieldGroupEnumeration" ) ); @@ -3203,13 +3135,13 @@ Reference< XEnumeration > SAL_CALL ScDataPilotFieldGroupObj::createEnumeration() // XElementAccess -uno::Type SAL_CALL ScDataPilotFieldGroupObj::getElementType() throw(RuntimeException, std::exception) +uno::Type SAL_CALL ScDataPilotFieldGroupObj::getElementType() { SolarMutexGuard aGuard; return cppu::UnoType<XNamed>::get(); } -sal_Bool SAL_CALL ScDataPilotFieldGroupObj::hasElements() throw(RuntimeException, std::exception) +sal_Bool SAL_CALL ScDataPilotFieldGroupObj::hasElements() { SolarMutexGuard aGuard; return !mrParent.getFieldGroup( maGroupName ).maMembers.empty(); @@ -3217,13 +3149,13 @@ sal_Bool SAL_CALL ScDataPilotFieldGroupObj::hasElements() throw(RuntimeException // XNamed -OUString SAL_CALL ScDataPilotFieldGroupObj::getName() throw(RuntimeException, std::exception) +OUString SAL_CALL ScDataPilotFieldGroupObj::getName() { SolarMutexGuard aGuard; return maGroupName; } -void SAL_CALL ScDataPilotFieldGroupObj::setName( const OUString& rName ) throw(RuntimeException, std::exception) +void SAL_CALL ScDataPilotFieldGroupObj::setName( const OUString& rName ) { SolarMutexGuard aGuard; mrParent.renameFieldGroup( maGroupName, rName ); @@ -3245,13 +3177,13 @@ ScDataPilotFieldGroupItemObj::~ScDataPilotFieldGroupItemObj() // XNamed -OUString SAL_CALL ScDataPilotFieldGroupItemObj::getName() throw(RuntimeException, std::exception) +OUString SAL_CALL ScDataPilotFieldGroupItemObj::getName() { SolarMutexGuard aGuard; return maName; } -void SAL_CALL ScDataPilotFieldGroupItemObj::setName( const OUString& rName ) throw(RuntimeException, std::exception) +void SAL_CALL ScDataPilotFieldGroupItemObj::setName( const OUString& rName ) { SolarMutexGuard aGuard; mrParent.replaceByName( maName, Any( rName ) ); @@ -3279,7 +3211,6 @@ ScDataPilotItemObj* ScDataPilotItemsObj::GetObjectByIndex_Impl( sal_Int32 nIndex // XNameAccess Any SAL_CALL ScDataPilotItemsObj::getByName( const OUString& aName ) - throw(NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; Reference<XNameAccess> xMembers = GetMembers(); @@ -3303,7 +3234,6 @@ Any SAL_CALL ScDataPilotItemsObj::getByName( const OUString& aName ) } Sequence<OUString> SAL_CALL ScDataPilotItemsObj::getElementNames() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; Sequence< OUString > aSeq; @@ -3313,7 +3243,6 @@ Sequence<OUString> SAL_CALL ScDataPilotItemsObj::getElementNames() } sal_Bool SAL_CALL ScDataPilotItemsObj::hasByName( const OUString& aName ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; bool bFound = false; @@ -3338,7 +3267,6 @@ sal_Bool SAL_CALL ScDataPilotItemsObj::hasByName( const OUString& aName ) // XEnumerationAccess Reference<XEnumeration> SAL_CALL ScDataPilotItemsObj::createEnumeration() - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.DataPilotItemsEnumeration")); @@ -3346,14 +3274,13 @@ Reference<XEnumeration> SAL_CALL ScDataPilotItemsObj::createEnumeration() // XIndexAccess -sal_Int32 SAL_CALL ScDataPilotItemsObj::getCount() throw(RuntimeException, std::exception) +sal_Int32 SAL_CALL ScDataPilotItemsObj::getCount() { SolarMutexGuard aGuard; return GetMemberCount(); } Any SAL_CALL ScDataPilotItemsObj::getByIndex( sal_Int32 nIndex ) - throw(IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception) { SolarMutexGuard aGuard; Reference< XPropertySet > xItem( GetObjectByIndex_Impl( nIndex ) ); @@ -3362,13 +3289,13 @@ Any SAL_CALL ScDataPilotItemsObj::getByIndex( sal_Int32 nIndex ) return Any( xItem ); } -uno::Type SAL_CALL ScDataPilotItemsObj::getElementType() throw(RuntimeException, std::exception) +uno::Type SAL_CALL ScDataPilotItemsObj::getElementType() { SolarMutexGuard aGuard; return cppu::UnoType<XPropertySet>::get(); } -sal_Bool SAL_CALL ScDataPilotItemsObj::hasElements() throw(RuntimeException, std::exception) +sal_Bool SAL_CALL ScDataPilotItemsObj::hasElements() { SolarMutexGuard aGuard; return ( getCount() != 0 ); @@ -3386,7 +3313,7 @@ ScDataPilotItemObj::~ScDataPilotItemObj() } // XNamed -OUString SAL_CALL ScDataPilotItemObj::getName() throw(RuntimeException, std::exception) +OUString SAL_CALL ScDataPilotItemObj::getName() { SolarMutexGuard aGuard; OUString sRet; @@ -3405,14 +3332,12 @@ OUString SAL_CALL ScDataPilotItemObj::getName() throw(RuntimeException, std::exc } void SAL_CALL ScDataPilotItemObj::setName( const OUString& /* aName */ ) - throw(RuntimeException, std::exception) { } // XPropertySet Reference< XPropertySetInfo > SAL_CALL ScDataPilotItemObj::getPropertySetInfo( ) - throw(RuntimeException, std::exception) { SolarMutexGuard aGuard; static Reference<XPropertySetInfo> aRef = @@ -3421,9 +3346,6 @@ Reference< XPropertySetInfo > } void SAL_CALL ScDataPilotItemObj::setPropertyValue( const OUString& aPropertyName, const Any& aValue ) - throw (UnknownPropertyException, PropertyVetoException, - IllegalArgumentException, WrappedTargetException, - RuntimeException, std::exception) { SolarMutexGuard aGuard; ScDPObject* pDPObj = nullptr; @@ -3475,8 +3397,6 @@ void SAL_CALL ScDataPilotItemObj::setPropertyValue( const OUString& aPropertyNam } Any SAL_CALL ScDataPilotItemObj::getPropertyValue( const OUString& aPropertyName ) - throw (UnknownPropertyException, WrappedTargetException, - RuntimeException, std::exception) { SolarMutexGuard aGuard; Any aRet; @@ -3534,25 +3454,21 @@ Any SAL_CALL ScDataPilotItemObj::getPropertyValue( const OUString& aPropertyName void SAL_CALL ScDataPilotItemObj::addPropertyChangeListener( const OUString& /* aPropertyName */, const Reference< XPropertyChangeListener >& /* xListener */ ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } void SAL_CALL ScDataPilotItemObj::removePropertyChangeListener( const OUString& /* aPropertyName */, const Reference< XPropertyChangeListener >& /* aListener */ ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } void SAL_CALL ScDataPilotItemObj::addVetoableChangeListener( const OUString& /* PropertyName */, const Reference< XVetoableChangeListener >& /* aListener */ ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } void SAL_CALL ScDataPilotItemObj::removeVetoableChangeListener( const OUString& /* PropertyName */, const Reference< XVetoableChangeListener >& /* aListener */ ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } |