summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/DocumentMetadataAccess.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/DocumentMetadataAccess.cxx')
-rw-r--r--sfx2/source/doc/DocumentMetadataAccess.cxx30
1 files changed, 4 insertions, 26 deletions
diff --git a/sfx2/source/doc/DocumentMetadataAccess.cxx b/sfx2/source/doc/DocumentMetadataAccess.cxx
index 1c8f8f8c128a..9b805abb39be 100644
--- a/sfx2/source/doc/DocumentMetadataAccess.cxx
+++ b/sfx2/source/doc/DocumentMetadataAccess.cxx
@@ -797,7 +797,7 @@ DocumentMetadataAccess::~DocumentMetadataAccess()
// css::rdf::XRepositorySupplier:
uno::Reference< rdf::XRepository > SAL_CALL
-DocumentMetadataAccess::getRDFRepository() throw (uno::RuntimeException, std::exception)
+DocumentMetadataAccess::getRDFRepository()
{
OSL_ENSURE(m_pImpl->m_xRepository.is(), "repository not initialized");
return m_pImpl->m_xRepository;
@@ -805,20 +805,20 @@ DocumentMetadataAccess::getRDFRepository() throw (uno::RuntimeException, std::ex
// css::rdf::XNode:
OUString SAL_CALL
-DocumentMetadataAccess::getStringValue() throw (uno::RuntimeException, std::exception)
+DocumentMetadataAccess::getStringValue()
{
return m_pImpl->m_xBaseURI->getStringValue();
}
// css::rdf::XURI:
OUString SAL_CALL
-DocumentMetadataAccess::getNamespace() throw (uno::RuntimeException, std::exception)
+DocumentMetadataAccess::getNamespace()
{
return m_pImpl->m_xBaseURI->getNamespace();
}
OUString SAL_CALL
-DocumentMetadataAccess::getLocalName() throw (uno::RuntimeException, std::exception)
+DocumentMetadataAccess::getLocalName()
{
return m_pImpl->m_xBaseURI->getLocalName();
}
@@ -827,7 +827,6 @@ DocumentMetadataAccess::getLocalName() throw (uno::RuntimeException, std::except
uno::Reference< rdf::XMetadatable > SAL_CALL
DocumentMetadataAccess::getElementByMetadataReference(
const css::beans::StringPair & i_rReference)
-throw (uno::RuntimeException, std::exception)
{
const IXmlIdRegistry * pReg(
m_pImpl->m_rXmlIdRegistrySupplier.GetXmlIdRegistry() );
@@ -841,7 +840,6 @@ throw (uno::RuntimeException, std::exception)
uno::Reference< rdf::XMetadatable > SAL_CALL
DocumentMetadataAccess::getElementByURI(
const uno::Reference< rdf::XURI > & i_xURI )
-throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
{
if (!i_xURI.is()) {
throw lang::IllegalArgumentException(
@@ -867,7 +865,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
uno::Sequence< uno::Reference< rdf::XURI > > SAL_CALL
DocumentMetadataAccess::getMetadataGraphsWithType(
const uno::Reference<rdf::XURI> & i_xType)
-throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
{
if (!i_xType.is()) {
throw lang::IllegalArgumentException(
@@ -889,8 +886,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, std::exception)
uno::Reference<rdf::XURI> SAL_CALL
DocumentMetadataAccess::addMetadataFile(const OUString & i_rFileName,
const uno::Sequence < uno::Reference< rdf::XURI > > & i_rTypes)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- container::ElementExistException, std::exception)
{
if (!isFileNameValid(i_rFileName)) {
throw lang::IllegalArgumentException(
@@ -932,9 +927,6 @@ DocumentMetadataAccess::importMetadataFile(::sal_Int16 i_Format,
const OUString & i_rFileName,
const uno::Reference< rdf::XURI > & i_xBaseURI,
const uno::Sequence < uno::Reference< rdf::XURI > > & i_rTypes)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- datatransfer::UnsupportedFlavorException,
- container::ElementExistException, rdf::ParseException, io::IOException, std::exception)
{
if (!isFileNameValid(i_rFileName)) {
throw lang::IllegalArgumentException(
@@ -975,8 +967,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::removeMetadataFile(
const uno::Reference< rdf::XURI > & i_xGraphName)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- container::NoSuchElementException, std::exception)
{
try {
m_pImpl->m_xRepository->destroyGraph(i_xGraphName);
@@ -994,8 +984,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::addContentOrStylesFile(
const OUString & i_rFileName)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- container::ElementExistException, std::exception)
{
if (!isFileNameValid(i_rFileName)) {
throw lang::IllegalArgumentException(
@@ -1014,8 +1002,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::removeContentOrStylesFile(
const OUString & i_rFileName)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- container::NoSuchElementException, std::exception)
{
if (!isFileNameValid(i_rFileName)) {
throw lang::IllegalArgumentException(
@@ -1054,8 +1040,6 @@ void SAL_CALL DocumentMetadataAccess::loadMetadataFromStorage(
const uno::Reference< embed::XStorage > & i_xStorage,
const uno::Reference<rdf::XURI> & i_xBaseURI,
const uno::Reference<task::XInteractionHandler> & i_xHandler)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
if (!i_xStorage.is()) {
throw lang::IllegalArgumentException(
@@ -1157,8 +1141,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL DocumentMetadataAccess::storeMetadataToStorage(
const uno::Reference< embed::XStorage > & i_xStorage)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
if (!i_xStorage.is()) {
throw lang::IllegalArgumentException(
@@ -1225,8 +1207,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::loadMetadataFromMedium(
const uno::Sequence< beans::PropertyValue > & i_rMedium)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
uno::Reference<io::XInputStream> xIn;
utl::MediaDescriptor md(i_rMedium);
@@ -1284,8 +1264,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
void SAL_CALL
DocumentMetadataAccess::storeMetadataToMedium(
const uno::Sequence< beans::PropertyValue > & i_rMedium)
-throw (uno::RuntimeException, lang::IllegalArgumentException,
- lang::WrappedTargetException, std::exception)
{
utl::MediaDescriptor md(i_rMedium);
OUString URL;