summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/linkuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/linkuno.cxx')
-rw-r--r--sc/source/ui/unoobj/linkuno.cxx109
1 files changed, 22 insertions, 87 deletions
diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx
index d001bd989c93..64528ab62133 100644
--- a/sc/source/ui/unoobj/linkuno.cxx
+++ b/sc/source/ui/unoobj/linkuno.cxx
@@ -126,13 +126,13 @@ ScTableLink* ScSheetLinkObj::GetLink_Impl() const
// XNamed
-OUString SAL_CALL ScSheetLinkObj::getName() throw(uno::RuntimeException, std::exception)
+OUString SAL_CALL ScSheetLinkObj::getName()
{
SolarMutexGuard aGuard;
return getFileName(); // Name ist der Dateiname (URL)
}
-void SAL_CALL ScSheetLinkObj::setName( const OUString& aName ) throw(uno::RuntimeException, std::exception)
+void SAL_CALL ScSheetLinkObj::setName( const OUString& aName )
{
SolarMutexGuard aGuard;
setFileName(aName); // Name ist der Dateiname (URL)
@@ -141,7 +141,6 @@ void SAL_CALL ScSheetLinkObj::setName( const OUString& aName ) throw(uno::Runtim
// XRefreshable
void SAL_CALL ScSheetLinkObj::refresh()
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ScTableLink* pLink = GetLink_Impl();
@@ -151,7 +150,6 @@ void SAL_CALL ScSheetLinkObj::refresh()
void SAL_CALL ScSheetLinkObj::addRefreshListener(
const uno::Reference<util::XRefreshListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
aRefreshListeners.push_back( xListener );
@@ -163,7 +161,6 @@ void SAL_CALL ScSheetLinkObj::addRefreshListener(
void SAL_CALL ScSheetLinkObj::removeRefreshListener(
const uno::Reference<util::XRefreshListener >& xListener )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
size_t nCount = aRefreshListeners.size();
@@ -198,7 +195,6 @@ void ScSheetLinkObj::ModifyRefreshDelay_Impl( sal_Int32 nRefresh )
// XPropertySet
uno::Reference<beans::XPropertySetInfo> SAL_CALL ScSheetLinkObj::getPropertySetInfo()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
static uno::Reference<beans::XPropertySetInfo> aRef(
@@ -208,9 +204,6 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScSheetLinkObj::getPropertySetI
void SAL_CALL ScSheetLinkObj::setPropertyValue(
const OUString& aPropertyName, const uno::Any& aValue )
- throw(beans::UnknownPropertyException, beans::PropertyVetoException,
- lang::IllegalArgumentException, lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
OUString aValStr;
@@ -244,8 +237,6 @@ void SAL_CALL ScSheetLinkObj::setPropertyValue(
}
uno::Any SAL_CALL ScSheetLinkObj::getPropertyValue( const OUString& aPropertyName )
- throw(beans::UnknownPropertyException, lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Any aRet;
@@ -442,14 +433,13 @@ ScSheetLinkObj* ScSheetLinksObj::GetObjectByName_Impl(const OUString& aName)
// XEnumerationAccess
uno::Reference<container::XEnumeration> SAL_CALL ScSheetLinksObj::createEnumeration()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.SheetLinksEnumeration"));
}
// XIndexAccess
-sal_Int32 SAL_CALL ScSheetLinksObj::getCount() throw(uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScSheetLinksObj::getCount()
{
typedef std::unordered_set<OUString, OUStringHash> StrSetType;
@@ -475,8 +465,6 @@ sal_Int32 SAL_CALL ScSheetLinksObj::getCount() throw(uno::RuntimeException, std:
}
uno::Any SAL_CALL ScSheetLinksObj::getByIndex( sal_Int32 nIndex )
- throw(lang::IndexOutOfBoundsException,
- lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<beans::XPropertySet> xLink(GetObjectByIndex_Impl(nIndex));
@@ -486,21 +474,19 @@ uno::Any SAL_CALL ScSheetLinksObj::getByIndex( sal_Int32 nIndex )
throw lang::IndexOutOfBoundsException();
}
-uno::Type SAL_CALL ScSheetLinksObj::getElementType() throw(uno::RuntimeException, std::exception)
+uno::Type SAL_CALL ScSheetLinksObj::getElementType()
{
SolarMutexGuard aGuard;
return cppu::UnoType<beans::XPropertySet>::get();
}
-sal_Bool SAL_CALL ScSheetLinksObj::hasElements() throw(uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScSheetLinksObj::hasElements()
{
SolarMutexGuard aGuard;
return ( getCount() != 0 );
}
uno::Any SAL_CALL ScSheetLinksObj::getByName( const OUString& aName )
- throw(container::NoSuchElementException,
- lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<beans::XPropertySet> xLink(GetObjectByName_Impl(aName));
@@ -512,7 +498,6 @@ uno::Any SAL_CALL ScSheetLinksObj::getByName( const OUString& aName )
}
sal_Bool SAL_CALL ScSheetLinksObj::hasByName( const OUString& aName )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
// Name ist der Dateiname
@@ -533,7 +518,7 @@ sal_Bool SAL_CALL ScSheetLinksObj::hasByName( const OUString& aName )
return false;
}
-uno::Sequence<OUString> SAL_CALL ScSheetLinksObj::getElementNames() throw(uno::RuntimeException, std::exception)
+uno::Sequence<OUString> SAL_CALL ScSheetLinksObj::getElementNames()
{
typedef std::unordered_set<OUString, OUStringHash> StrSetType;
@@ -679,7 +664,6 @@ void ScAreaLinkObj::ModifyRefreshDelay_Impl( sal_Int32 nRefresh )
// XRefreshable
void SAL_CALL ScAreaLinkObj::refresh()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ScAreaLink* pLink = lcl_GetAreaLink(pDocShell, nPos);
@@ -689,7 +673,6 @@ void SAL_CALL ScAreaLinkObj::refresh()
void SAL_CALL ScAreaLinkObj::addRefreshListener(
const uno::Reference<util::XRefreshListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
aRefreshListeners.push_back( xListener );
@@ -701,7 +684,6 @@ void SAL_CALL ScAreaLinkObj::addRefreshListener(
void SAL_CALL ScAreaLinkObj::removeRefreshListener(
const uno::Reference<util::XRefreshListener >& xListener )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
size_t nCount = aRefreshListeners.size();
@@ -732,7 +714,6 @@ void ScAreaLinkObj::Refreshed_Impl()
// XPropertySet
uno::Reference<beans::XPropertySetInfo> SAL_CALL ScAreaLinkObj::getPropertySetInfo()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
static uno::Reference<beans::XPropertySetInfo> aRef(
@@ -742,9 +723,6 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScAreaLinkObj::getPropertySetIn
void SAL_CALL ScAreaLinkObj::setPropertyValue(
const OUString& aPropertyName, const uno::Any& aValue )
- throw(beans::UnknownPropertyException, beans::PropertyVetoException,
- lang::IllegalArgumentException, lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
OUString aValStr;
@@ -778,8 +756,6 @@ void SAL_CALL ScAreaLinkObj::setPropertyValue(
}
uno::Any SAL_CALL ScAreaLinkObj::getPropertyValue( const OUString& aPropertyName )
- throw(beans::UnknownPropertyException, lang::WrappedTargetException,
- uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Any aRet;
@@ -866,7 +842,7 @@ void ScAreaLinkObj::setRefreshDelay(sal_Int32 nRefreshDelay)
// XAreaLink
-OUString SAL_CALL ScAreaLinkObj::getSourceArea() throw(uno::RuntimeException, std::exception)
+OUString SAL_CALL ScAreaLinkObj::getSourceArea()
{
SolarMutexGuard aGuard;
OUString aRet;
@@ -877,13 +853,12 @@ OUString SAL_CALL ScAreaLinkObj::getSourceArea() throw(uno::RuntimeException, st
}
void SAL_CALL ScAreaLinkObj::setSourceArea( const OUString& aSourceArea )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
Modify_Impl( nullptr, nullptr, nullptr, &aSourceArea, nullptr );
}
-table::CellRangeAddress SAL_CALL ScAreaLinkObj::getDestArea() throw(uno::RuntimeException, std::exception)
+table::CellRangeAddress SAL_CALL ScAreaLinkObj::getDestArea()
{
SolarMutexGuard aGuard;
table::CellRangeAddress aRet;
@@ -894,7 +869,6 @@ table::CellRangeAddress SAL_CALL ScAreaLinkObj::getDestArea() throw(uno::Runtime
}
void SAL_CALL ScAreaLinkObj::setDestArea( const table::CellRangeAddress& aDestArea )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
Modify_Impl( nullptr, nullptr, nullptr, nullptr, &aDestArea );
@@ -939,7 +913,6 @@ void SAL_CALL ScAreaLinksObj::insertAtPosition( const table::CellAddress& aDestP
const OUString& aSourceArea,
const OUString& aFilter,
const OUString& aFilterOptions )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if (pDocShell)
@@ -954,7 +927,7 @@ void SAL_CALL ScAreaLinksObj::insertAtPosition( const table::CellAddress& aDestP
}
}
-void SAL_CALL ScAreaLinksObj::removeByIndex( sal_Int32 nIndex ) throw(uno::RuntimeException, std::exception)
+void SAL_CALL ScAreaLinksObj::removeByIndex( sal_Int32 nIndex )
{
SolarMutexGuard aGuard;
ScAreaLink* pLink = lcl_GetAreaLink(pDocShell, (size_t)nIndex);
@@ -970,7 +943,6 @@ void SAL_CALL ScAreaLinksObj::removeByIndex( sal_Int32 nIndex ) throw(uno::Runti
// XEnumerationAccess
uno::Reference<container::XEnumeration> SAL_CALL ScAreaLinksObj::createEnumeration()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.CellAreaLinksEnumeration"));
@@ -978,7 +950,7 @@ uno::Reference<container::XEnumeration> SAL_CALL ScAreaLinksObj::createEnumerati
// XIndexAccess
-sal_Int32 SAL_CALL ScAreaLinksObj::getCount() throw(uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScAreaLinksObj::getCount()
{
SolarMutexGuard aGuard;
sal_Int32 nAreaCount = 0;
@@ -997,8 +969,6 @@ sal_Int32 SAL_CALL ScAreaLinksObj::getCount() throw(uno::RuntimeException, std::
}
uno::Any SAL_CALL ScAreaLinksObj::getByIndex( sal_Int32 nIndex )
- throw(lang::IndexOutOfBoundsException,
- lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<sheet::XAreaLink> xLink(GetObjectByIndex_Impl(nIndex));
@@ -1008,13 +978,13 @@ uno::Any SAL_CALL ScAreaLinksObj::getByIndex( sal_Int32 nIndex )
throw lang::IndexOutOfBoundsException();
}
-uno::Type SAL_CALL ScAreaLinksObj::getElementType() throw(uno::RuntimeException, std::exception)
+uno::Type SAL_CALL ScAreaLinksObj::getElementType()
{
SolarMutexGuard aGuard;
return cppu::UnoType<sheet::XAreaLink>::get();
}
-sal_Bool SAL_CALL ScAreaLinksObj::hasElements() throw(uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScAreaLinksObj::hasElements()
{
SolarMutexGuard aGuard;
return ( getCount() != 0 );
@@ -1068,13 +1038,13 @@ static OUString lcl_BuildDDEName( const OUString& rAppl, const OUString& rTopic,
return aRet;
}
-OUString SAL_CALL ScDDELinkObj::getName() throw(uno::RuntimeException, std::exception)
+OUString SAL_CALL ScDDELinkObj::getName()
{
SolarMutexGuard aGuard;
return lcl_BuildDDEName( aAppl, aTopic, aItem );
}
-void SAL_CALL ScDDELinkObj::setName( const OUString& /* aName */ ) throw(uno::RuntimeException, std::exception)
+void SAL_CALL ScDDELinkObj::setName( const OUString& /* aName */ )
{
// name can't be changed (formulas wouldn't find the link)
throw uno::RuntimeException();
@@ -1082,7 +1052,7 @@ void SAL_CALL ScDDELinkObj::setName( const OUString& /* aName */ ) throw(uno::Ru
// XDDELink
-OUString SAL_CALL ScDDELinkObj::getApplication() throw(uno::RuntimeException, std::exception)
+OUString SAL_CALL ScDDELinkObj::getApplication()
{
SolarMutexGuard aGuard;
//! Test, ob Link noch im Dokument enthalten?
@@ -1090,7 +1060,7 @@ OUString SAL_CALL ScDDELinkObj::getApplication() throw(uno::RuntimeException, st
return aAppl;
}
-OUString SAL_CALL ScDDELinkObj::getTopic() throw(uno::RuntimeException, std::exception)
+OUString SAL_CALL ScDDELinkObj::getTopic()
{
SolarMutexGuard aGuard;
//! Test, ob Link noch im Dokument enthalten?
@@ -1098,7 +1068,7 @@ OUString SAL_CALL ScDDELinkObj::getTopic() throw(uno::RuntimeException, std::exc
return aTopic;
}
-OUString SAL_CALL ScDDELinkObj::getItem() throw(uno::RuntimeException, std::exception)
+OUString SAL_CALL ScDDELinkObj::getItem()
{
SolarMutexGuard aGuard;
//! Test, ob Link noch im Dokument enthalten?
@@ -1108,7 +1078,7 @@ OUString SAL_CALL ScDDELinkObj::getItem() throw(uno::RuntimeException, std::exce
// XRefreshable
-void SAL_CALL ScDDELinkObj::refresh() throw(uno::RuntimeException, std::exception)
+void SAL_CALL ScDDELinkObj::refresh()
{
SolarMutexGuard aGuard;
if (pDocShell)
@@ -1120,7 +1090,6 @@ void SAL_CALL ScDDELinkObj::refresh() throw(uno::RuntimeException, std::exceptio
void SAL_CALL ScDDELinkObj::addRefreshListener(
const uno::Reference<util::XRefreshListener >& xListener )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
aRefreshListeners.push_back( xListener );
@@ -1132,7 +1101,6 @@ void SAL_CALL ScDDELinkObj::addRefreshListener(
void SAL_CALL ScDDELinkObj::removeRefreshListener(
const uno::Reference<util::XRefreshListener >& xListener )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
size_t nCount = aRefreshListeners.size();
@@ -1152,7 +1120,6 @@ void SAL_CALL ScDDELinkObj::removeRefreshListener(
// XDDELinkResults
uno::Sequence< uno::Sequence< uno::Any > > ScDDELinkObj::getResults( )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Sequence< uno::Sequence< uno::Any > > aReturn;
@@ -1187,7 +1154,6 @@ uno::Sequence< uno::Sequence< uno::Any > > ScDDELinkObj::getResults( )
}
void ScDDELinkObj::setResults( const uno::Sequence< uno::Sequence< uno::Any > >& aResults )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
bool bSuccess = false;
@@ -1276,7 +1242,6 @@ ScDDELinkObj* ScDDELinksObj::GetObjectByName_Impl(const OUString& aName)
// XEnumerationAccess
uno::Reference<container::XEnumeration> SAL_CALL ScDDELinksObj::createEnumeration()
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return new ScIndexEnumeration(this, OUString("com.sun.star.sheet.DDELinksEnumeration"));
@@ -1284,7 +1249,7 @@ uno::Reference<container::XEnumeration> SAL_CALL ScDDELinksObj::createEnumeratio
// XIndexAccess
-sal_Int32 SAL_CALL ScDDELinksObj::getCount() throw(uno::RuntimeException, std::exception)
+sal_Int32 SAL_CALL ScDDELinksObj::getCount()
{
SolarMutexGuard aGuard;
sal_Int32 nAreaCount = 0;
@@ -1294,8 +1259,6 @@ sal_Int32 SAL_CALL ScDDELinksObj::getCount() throw(uno::RuntimeException, std::e
}
uno::Any SAL_CALL ScDDELinksObj::getByIndex( sal_Int32 nIndex )
- throw(lang::IndexOutOfBoundsException,
- lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<sheet::XDDELink> xLink(GetObjectByIndex_Impl(nIndex));
@@ -1305,21 +1268,19 @@ uno::Any SAL_CALL ScDDELinksObj::getByIndex( sal_Int32 nIndex )
throw lang::IndexOutOfBoundsException();
}
-uno::Type SAL_CALL ScDDELinksObj::getElementType() throw(uno::RuntimeException, std::exception)
+uno::Type SAL_CALL ScDDELinksObj::getElementType()
{
SolarMutexGuard aGuard;
return cppu::UnoType<sheet::XDDELink>::get();
}
-sal_Bool SAL_CALL ScDDELinksObj::hasElements() throw(uno::RuntimeException, std::exception)
+sal_Bool SAL_CALL ScDDELinksObj::hasElements()
{
SolarMutexGuard aGuard;
return ( getCount() != 0 );
}
uno::Any SAL_CALL ScDDELinksObj::getByName( const OUString& aName )
- throw(container::NoSuchElementException,
- lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference<sheet::XDDELink> xLink(GetObjectByName_Impl(aName));
@@ -1329,7 +1290,7 @@ uno::Any SAL_CALL ScDDELinksObj::getByName( const OUString& aName )
throw container::NoSuchElementException();
}
-uno::Sequence<OUString> SAL_CALL ScDDELinksObj::getElementNames() throw(uno::RuntimeException, std::exception)
+uno::Sequence<OUString> SAL_CALL ScDDELinksObj::getElementNames()
{
SolarMutexGuard aGuard;
if (pDocShell)
@@ -1352,7 +1313,6 @@ uno::Sequence<OUString> SAL_CALL ScDDELinksObj::getElementNames() throw(uno::Run
}
sal_Bool SAL_CALL ScDDELinksObj::hasByName( const OUString& aName )
- throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if (pDocShell)
@@ -1376,7 +1336,6 @@ sal_Bool SAL_CALL ScDDELinksObj::hasByName( const OUString& aName )
uno::Reference< sheet::XDDELink > ScDDELinksObj::addDDELink(
const OUString& aApplication, const OUString& aTopic,
const OUString& aItem, css::sheet::DDELinkMode nMode )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference< sheet::XDDELink > xLink;
@@ -1436,7 +1395,6 @@ ScExternalSheetCacheObj::~ScExternalSheetCacheObj()
}
void SAL_CALL ScExternalSheetCacheObj::setCellValue(sal_Int32 nCol, sal_Int32 nRow, const Any& rValue)
- throw (IllegalArgumentException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if (nRow < 0 || nCol < 0)
@@ -1461,7 +1419,6 @@ void SAL_CALL ScExternalSheetCacheObj::setCellValue(sal_Int32 nCol, sal_Int32 nR
}
Any SAL_CALL ScExternalSheetCacheObj::getCellValue(sal_Int32 nCol, sal_Int32 nRow)
- throw (IllegalArgumentException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if (nRow < 0 || nCol < 0)
@@ -1493,7 +1450,6 @@ Any SAL_CALL ScExternalSheetCacheObj::getCellValue(sal_Int32 nCol, sal_Int32 nRo
}
Sequence< sal_Int32 > SAL_CALL ScExternalSheetCacheObj::getAllRows()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
vector<SCROW> aRows;
@@ -1507,7 +1463,6 @@ Sequence< sal_Int32 > SAL_CALL ScExternalSheetCacheObj::getAllRows()
}
Sequence< sal_Int32 > SAL_CALL ScExternalSheetCacheObj::getAllColumns(sal_Int32 nRow)
- throw (IllegalArgumentException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if (nRow < 0)
@@ -1524,7 +1479,6 @@ Sequence< sal_Int32 > SAL_CALL ScExternalSheetCacheObj::getAllColumns(sal_Int32
}
sal_Int32 SAL_CALL ScExternalSheetCacheObj::getTokenIndex()
- throw (RuntimeException, std::exception)
{
return static_cast< sal_Int32 >( mnIndex );
}
@@ -1540,7 +1494,6 @@ ScExternalDocLinkObj::~ScExternalDocLinkObj()
Reference< sheet::XExternalSheetCache > SAL_CALL ScExternalDocLinkObj::addSheetCache(
const OUString& aSheetName, sal_Bool bDynamicCache )
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
size_t nIndex = 0;
@@ -1554,7 +1507,6 @@ Reference< sheet::XExternalSheetCache > SAL_CALL ScExternalDocLinkObj::addSheetC
}
Any SAL_CALL ScExternalDocLinkObj::getByName(const OUString &aName)
- throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
size_t nIndex = 0;
@@ -1568,7 +1520,6 @@ Any SAL_CALL ScExternalDocLinkObj::getByName(const OUString &aName)
}
Sequence< OUString > SAL_CALL ScExternalDocLinkObj::getElementNames()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
vector<OUString> aTabNames;
@@ -1588,7 +1539,6 @@ Sequence< OUString > SAL_CALL ScExternalDocLinkObj::getElementNames()
}
sal_Bool SAL_CALL ScExternalDocLinkObj::hasByName(const OUString &aName)
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1598,7 +1548,6 @@ sal_Bool SAL_CALL ScExternalDocLinkObj::hasByName(const OUString &aName)
}
sal_Int32 SAL_CALL ScExternalDocLinkObj::getCount()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1607,7 +1556,6 @@ sal_Int32 SAL_CALL ScExternalDocLinkObj::getCount()
}
Any SAL_CALL ScExternalDocLinkObj::getByIndex(sal_Int32 nApiIndex)
- throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1628,7 +1576,6 @@ Any SAL_CALL ScExternalDocLinkObj::getByIndex(sal_Int32 nApiIndex)
}
Reference< container::XEnumeration > SAL_CALL ScExternalDocLinkObj::createEnumeration()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
Reference< container::XEnumeration > aRef(
@@ -1638,14 +1585,12 @@ Reference< container::XEnumeration > SAL_CALL ScExternalDocLinkObj::createEnumer
}
uno::Type SAL_CALL ScExternalDocLinkObj::getElementType()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return cppu::UnoType<sheet::XExternalDocLink>::get();
}
sal_Bool SAL_CALL ScExternalDocLinkObj::hasElements()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1654,7 +1599,6 @@ sal_Bool SAL_CALL ScExternalDocLinkObj::hasElements()
}
sal_Int32 SAL_CALL ScExternalDocLinkObj::getTokenIndex()
- throw (RuntimeException, std::exception)
{
return static_cast<sal_Int32>(mnFileId);
}
@@ -1671,7 +1615,6 @@ ScExternalDocLinksObj::~ScExternalDocLinksObj()
Reference< sheet::XExternalDocLink > SAL_CALL ScExternalDocLinksObj::addDocLink(
const OUString& aDocName )
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
OUString aDocUrl( ScGlobal::GetAbsDocName( aDocName, mpDocShell));
@@ -1681,7 +1624,6 @@ Reference< sheet::XExternalDocLink > SAL_CALL ScExternalDocLinksObj::addDocLink(
}
Any SAL_CALL ScExternalDocLinksObj::getByName(const OUString &aName)
- throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
OUString aDocUrl( ScGlobal::GetAbsDocName( aName, mpDocShell));
@@ -1695,7 +1637,6 @@ Any SAL_CALL ScExternalDocLinksObj::getByName(const OUString &aName)
}
Sequence< OUString > SAL_CALL ScExternalDocLinksObj::getElementNames()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
sal_uInt16 n = mpRefMgr->getExternalFileCount();
@@ -1710,21 +1651,18 @@ Sequence< OUString > SAL_CALL ScExternalDocLinksObj::getElementNames()
}
sal_Bool SAL_CALL ScExternalDocLinksObj::hasByName(const OUString &aName)
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return mpRefMgr->hasExternalFile(aName);
}
sal_Int32 SAL_CALL ScExternalDocLinksObj::getCount()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return mpRefMgr->getExternalFileCount();
}
Any SAL_CALL ScExternalDocLinksObj::getByIndex(sal_Int32 nIndex)
- throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
if (nIndex > ::std::numeric_limits<sal_uInt16>::max() || nIndex < ::std::numeric_limits<sal_uInt16>::min())
@@ -1740,7 +1678,6 @@ Any SAL_CALL ScExternalDocLinksObj::getByIndex(sal_Int32 nIndex)
}
Reference< container::XEnumeration > SAL_CALL ScExternalDocLinksObj::createEnumeration()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
Reference< container::XEnumeration > aRef(
@@ -1750,14 +1687,12 @@ Reference< container::XEnumeration > SAL_CALL ScExternalDocLinksObj::createEnume
}
uno::Type SAL_CALL ScExternalDocLinksObj::getElementType()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return cppu::UnoType<sheet::XExternalDocLinks>::get();
}
sal_Bool SAL_CALL ScExternalDocLinksObj::hasElements()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
return mpRefMgr->getExternalFileCount() > 0;