summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/chartuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/chartuno.cxx')
-rw-r--r--sc/source/ui/unoobj/chartuno.cxx36
1 files changed, 11 insertions, 25 deletions
diff --git a/sc/source/ui/unoobj/chartuno.cxx b/sc/source/ui/unoobj/chartuno.cxx
index 124245fddd08..b2c5bec2b25c 100644
--- a/sc/source/ui/unoobj/chartuno.cxx
+++ b/sc/source/ui/unoobj/chartuno.cxx
@@ -166,8 +166,6 @@ void SAL_CALL ScChartsObj::addNewByName( const OUString& rName,
const awt::Rectangle& aRect,
const uno::Sequence<table::CellRangeAddress>& aRanges,
sal_Bool bColumnHeaders, sal_Bool bRowHeaders )
- throw(css::uno::RuntimeException,
- std::exception)
{
SolarMutexGuard aGuard;
if (!pDocShell)
@@ -296,7 +294,6 @@ void SAL_CALL ScChartsObj::addNewByName( const OUString& rName,
}
void SAL_CALL ScChartsObj::removeByName( const OUString& aName )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
SdrOle2Obj* pObj = lcl_FindChartObj( pDocShell, nTab, aName );
@@ -317,7 +314,6 @@ void SAL_CALL ScChartsObj::removeByName( const OUString& aName )
// XEnumerationAccess
uno::Reference<container::XEnumeration> SAL_CALL ScChartsObj::createEnumeration()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return new ScIndexEnumeration(this, OUString("com.sun.star.table.TableChartsEnumeration"));
@@ -325,7 +321,7 @@ uno::Reference<container::XEnumeration> SAL_CALL ScChartsObj::createEnumeration(
// XIndexAccess
-sal_Int32 SAL_CALL ScChartsObj::getCount() throw(uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScChartsObj::getCount()
{
SolarMutexGuard aGuard;
sal_Int32 nCount = 0;
@@ -354,8 +350,6 @@ sal_Int32 SAL_CALL ScChartsObj::getCount() throw(uno::RuntimeException, std::exc
}
uno::Any SAL_CALL ScChartsObj::getByIndex( sal_Int32 nIndex )
- throw(lang::IndexOutOfBoundsException,
- lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<table::XTableChart> xChart(GetObjectByIndex_Impl(nIndex));
@@ -365,21 +359,19 @@ uno::Any SAL_CALL ScChartsObj::getByIndex( sal_Int32 nIndex )
throw lang::IndexOutOfBoundsException();
}
-uno::Type SAL_CALL ScChartsObj::getElementType() throw(uno::RuntimeException, std::exception)
+uno::Type SAL_CALL ScChartsObj::getElementType()
{
SolarMutexGuard aGuard;
return cppu::UnoType<table::XTableChart>::get();
}
-sal_Bool SAL_CALL ScChartsObj::hasElements() throw(uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScChartsObj::hasElements()
{
SolarMutexGuard aGuard;
return getCount() != 0;
}
uno::Any SAL_CALL ScChartsObj::getByName( const OUString& aName )
- throw(container::NoSuchElementException,
- lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<table::XTableChart> xChart(GetObjectByName_Impl(aName));
@@ -389,7 +381,7 @@ uno::Any SAL_CALL ScChartsObj::getByName( const OUString& aName )
throw container::NoSuchElementException();
}
-uno::Sequence<OUString> SAL_CALL ScChartsObj::getElementNames() throw(uno::RuntimeException, std::exception)
+uno::Sequence<OUString> SAL_CALL ScChartsObj::getElementNames()
{
SolarMutexGuard aGuard;
if (pDocShell)
@@ -434,7 +426,6 @@ uno::Sequence<OUString> SAL_CALL ScChartsObj::getElementNames() throw(uno::Runti
}
sal_Bool SAL_CALL ScChartsObj::hasByName( const OUString& aName )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return ( lcl_FindChartObj( pDocShell, nTab, aName ) != nullptr );
@@ -557,7 +548,6 @@ void ScChartObj::Update_Impl( const ScRangeListRef& rRanges, bool bColHeaders, b
}
void ScChartObj::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const uno::Any& rValue )
- throw (uno::Exception, std::exception)
{
switch ( nHandle )
{
@@ -651,7 +641,7 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2( ScChartObj, ScChartObj_Base, ScChartObj_PBase
// XTableChart
-sal_Bool SAL_CALL ScChartObj::getHasColumnHeaders() throw(uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScChartObj::getHasColumnHeaders()
{
SolarMutexGuard aGuard;
ScRangeListRef xRanges = new ScRangeList;
@@ -661,8 +651,6 @@ sal_Bool SAL_CALL ScChartObj::getHasColumnHeaders() throw(uno::RuntimeException,
}
void SAL_CALL ScChartObj::setHasColumnHeaders( sal_Bool bHasColumnHeaders )
- throw(uno::RuntimeException,
- std::exception)
{
SolarMutexGuard aGuard;
ScRangeListRef xRanges = new ScRangeList;
@@ -672,7 +660,7 @@ void SAL_CALL ScChartObj::setHasColumnHeaders( sal_Bool bHasColumnHeaders )
Update_Impl( xRanges, bHasColumnHeaders, bOldRowHeaders );
}
-sal_Bool SAL_CALL ScChartObj::getHasRowHeaders() throw(uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScChartObj::getHasRowHeaders()
{
SolarMutexGuard aGuard;
ScRangeListRef xRanges = new ScRangeList;
@@ -682,7 +670,6 @@ sal_Bool SAL_CALL ScChartObj::getHasRowHeaders() throw(uno::RuntimeException, st
}
void SAL_CALL ScChartObj::setHasRowHeaders( sal_Bool bHasRowHeaders )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ScRangeListRef xRanges = new ScRangeList;
@@ -692,7 +679,7 @@ void SAL_CALL ScChartObj::setHasRowHeaders( sal_Bool bHasRowHeaders )
Update_Impl( xRanges, bOldColHeaders, bHasRowHeaders );
}
-uno::Sequence<table::CellRangeAddress> SAL_CALL ScChartObj::getRanges() throw(uno::RuntimeException, std::exception)
+uno::Sequence<table::CellRangeAddress> SAL_CALL ScChartObj::getRanges()
{
SolarMutexGuard aGuard;
ScRangeListRef xRanges = new ScRangeList;
@@ -725,7 +712,6 @@ uno::Sequence<table::CellRangeAddress> SAL_CALL ScChartObj::getRanges() throw(un
}
void SAL_CALL ScChartObj::setRanges( const uno::Sequence<table::CellRangeAddress>& aRanges )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ScRangeListRef xOldRanges = new ScRangeList;
@@ -752,7 +738,7 @@ void SAL_CALL ScChartObj::setRanges( const uno::Sequence<table::CellRangeAddress
// XEmbeddedObjectSupplier
-uno::Reference<lang::XComponent> SAL_CALL ScChartObj::getEmbeddedObject() throw(uno::RuntimeException, std::exception)
+uno::Reference<lang::XComponent> SAL_CALL ScChartObj::getEmbeddedObject()
{
SolarMutexGuard aGuard;
SdrOle2Obj* pObject = lcl_FindChartObj( pDocShell, nTab, aChartName );
@@ -767,13 +753,13 @@ uno::Reference<lang::XComponent> SAL_CALL ScChartObj::getEmbeddedObject() throw(
// XNamed
-OUString SAL_CALL ScChartObj::getName() throw(uno::RuntimeException, std::exception)
+OUString SAL_CALL ScChartObj::getName()
{
SolarMutexGuard aGuard;
return aChartName;
}
-void SAL_CALL ScChartObj::setName( const OUString& /* aName */ ) throw(uno::RuntimeException, std::exception)
+void SAL_CALL ScChartObj::setName( const OUString& /* aName */ )
{
SolarMutexGuard aGuard;
throw uno::RuntimeException(); // name cannot be changed
@@ -781,7 +767,7 @@ void SAL_CALL ScChartObj::setName( const OUString& /* aName */ ) throw(uno::Runt
// XPropertySet
-uno::Reference< beans::XPropertySetInfo > ScChartObj::getPropertySetInfo() throw (uno::RuntimeException, std::exception)
+uno::Reference< beans::XPropertySetInfo > ScChartObj::getPropertySetInfo()
{
return createPropertySetInfo( getInfoHelper() ) ;
}