Kaydet (Commit) 615a69e3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean-up std::bad_alloc handling

...post 0bc89aac "cppumaker: Allow UNO interface functions to throw std::exception."

Change-Id: I232a1b266a45d39856d44a2f4e012b5df10fa880
üst b70df91a
...@@ -76,8 +76,8 @@ ...@@ -76,8 +76,8 @@
#include "salhelper/simplereferenceobject.hxx" #include "salhelper/simplereferenceobject.hxx"
#include <algorithm> #include <algorithm>
#include <exception>
#include <map> #include <map>
#include <new>
#include <set> #include <set>
#include <vector> #include <vector>
...@@ -320,7 +320,7 @@ public: ...@@ -320,7 +320,7 @@ public:
explicit Info(Data * data): m_data(data) {} explicit Info(Data * data): m_data(data) {}
virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException, std::exception);
virtual css::beans::Property SAL_CALL getPropertyByName( virtual css::beans::Property SAL_CALL getPropertyByName(
rtl::OUString const & name) rtl::OUString const & name)
...@@ -335,27 +335,21 @@ private: ...@@ -335,27 +335,21 @@ private:
}; };
css::uno::Sequence< css::beans::Property > Info::getProperties() css::uno::Sequence< css::beans::Property > Info::getProperties()
throw (css::uno::RuntimeException) throw (css::uno::RuntimeException, std::exception)
{ {
try { OSL_ASSERT(m_data->properties.size() <= SAL_MAX_INT32);
OSL_ASSERT(m_data->properties.size() <= SAL_MAX_INT32); css::uno::Sequence< css::beans::Property > s(
css::uno::Sequence< css::beans::Property > s( static_cast< sal_Int32 >(m_data->properties.size()));
static_cast< sal_Int32 >(m_data->properties.size())); sal_Int32 n = 0;
sal_Int32 n = 0; for (Data::PropertyMap::iterator i(m_data->properties.begin());
for (Data::PropertyMap::iterator i(m_data->properties.begin()); i != m_data->properties.end(); ++i)
i != m_data->properties.end(); ++i) {
{ if (i->second.present) {
if (i->second.present) { s[n++] = i->second.property;
s[n++] = i->second.property;
}
} }
s.realloc(n);
return s;
} catch (std::bad_alloc &) {
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< cppu::OWeakObject * >(this));
} }
s.realloc(n);
return s;
} }
css::beans::Property Info::getPropertyByName(rtl::OUString const & name) css::beans::Property Info::getPropertyByName(rtl::OUString const & name)
...@@ -1116,14 +1110,10 @@ css::uno::Any PropertySetMixinImpl::queryInterface(css::uno::Type const & type) ...@@ -1116,14 +1110,10 @@ css::uno::Any PropertySetMixinImpl::queryInterface(css::uno::Type const & type)
} }
css::uno::Reference< css::beans::XPropertySetInfo > css::uno::Reference< css::beans::XPropertySetInfo >
PropertySetMixinImpl::getPropertySetInfo() throw (css::uno::RuntimeException) { PropertySetMixinImpl::getPropertySetInfo()
try { throw (css::uno::RuntimeException, std::exception)
return new Info(m_impl); {
} catch (std::bad_alloc &) { return new Info(m_impl);
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this));
}
} }
void PropertySetMixinImpl::setPropertyValue( void PropertySetMixinImpl::setPropertyValue(
...@@ -1131,33 +1121,21 @@ void PropertySetMixinImpl::setPropertyValue( ...@@ -1131,33 +1121,21 @@ void PropertySetMixinImpl::setPropertyValue(
throw ( throw (
css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
try { m_impl->setProperty(
m_impl->setProperty( static_cast< css::beans::XPropertySet * >(this), propertyName, value,
static_cast< css::beans::XPropertySet * >(this), propertyName, false, false, 1);
value, false, false, 1);
} catch (std::bad_alloc &) {
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this));
}
} }
css::uno::Any PropertySetMixinImpl::getPropertyValue( css::uno::Any PropertySetMixinImpl::getPropertyValue(
rtl::OUString const & propertyName) rtl::OUString const & propertyName)
throw ( throw (
css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
try { return m_impl->getProperty(
return m_impl->getProperty( static_cast< css::beans::XPropertySet * >(this), propertyName, 0);
static_cast< css::beans::XPropertySet * >(this), propertyName, 0);
} catch (std::bad_alloc &) {
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this));
}
} }
void PropertySetMixinImpl::addPropertyChangeListener( void PropertySetMixinImpl::addPropertyChangeListener(
...@@ -1165,29 +1143,23 @@ void PropertySetMixinImpl::addPropertyChangeListener( ...@@ -1165,29 +1143,23 @@ void PropertySetMixinImpl::addPropertyChangeListener(
css::uno::Reference< css::beans::XPropertyChangeListener > const & listener) css::uno::Reference< css::beans::XPropertyChangeListener > const & listener)
throw ( throw (
css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
css::uno::Reference< css::beans::XPropertyChangeListener >( css::uno::Reference< css::beans::XPropertyChangeListener >(
listener, css::uno::UNO_QUERY_THROW); // reject NULL listener listener, css::uno::UNO_QUERY_THROW); // reject NULL listener
checkUnknown(propertyName); checkUnknown(propertyName);
try { bool disposed;
bool disposed; {
{ osl::MutexGuard g(m_impl->mutex);
osl::MutexGuard g(m_impl->mutex); disposed = m_impl->disposed;
disposed = m_impl->disposed; if (!disposed) {
if (!disposed) { m_impl->boundListeners[propertyName].insert(listener);
m_impl->boundListeners[propertyName].insert(listener);
}
}
if (disposed) {
listener->disposing(
css::lang::EventObject(
static_cast< css::beans::XPropertySet * >(this)));
} }
} catch (std::bad_alloc &) { }
//TODO OutOfMemoryException: if (disposed) {
throw css::uno::RuntimeException( listener->disposing(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this)); css::lang::EventObject(
static_cast< css::beans::XPropertySet * >(this)));
} }
} }
...@@ -1196,24 +1168,18 @@ void PropertySetMixinImpl::removePropertyChangeListener( ...@@ -1196,24 +1168,18 @@ void PropertySetMixinImpl::removePropertyChangeListener(
css::uno::Reference< css::beans::XPropertyChangeListener > const & listener) css::uno::Reference< css::beans::XPropertyChangeListener > const & listener)
throw ( throw (
css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
OSL_ASSERT(listener.is()); OSL_ASSERT(listener.is());
checkUnknown(propertyName); checkUnknown(propertyName);
try { osl::MutexGuard g(m_impl->mutex);
osl::MutexGuard g(m_impl->mutex); Impl::BoundListenerMap::iterator i(
Impl::BoundListenerMap::iterator i( m_impl->boundListeners.find(propertyName));
m_impl->boundListeners.find(propertyName)); if (i != m_impl->boundListeners.end()) {
if (i != m_impl->boundListeners.end()) { BoundListenerBag::iterator j(i->second.find(listener));
BoundListenerBag::iterator j(i->second.find(listener)); if (j != i->second.end()) {
if (j != i->second.end()) { i->second.erase(j);
i->second.erase(j);
}
} }
} catch (std::bad_alloc &) {
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this));
} }
} }
...@@ -1222,29 +1188,23 @@ void PropertySetMixinImpl::addVetoableChangeListener( ...@@ -1222,29 +1188,23 @@ void PropertySetMixinImpl::addVetoableChangeListener(
css::uno::Reference< css::beans::XVetoableChangeListener > const & listener) css::uno::Reference< css::beans::XVetoableChangeListener > const & listener)
throw ( throw (
css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
css::uno::Reference< css::beans::XVetoableChangeListener >( css::uno::Reference< css::beans::XVetoableChangeListener >(
listener, css::uno::UNO_QUERY_THROW); // reject NULL listener listener, css::uno::UNO_QUERY_THROW); // reject NULL listener
checkUnknown(propertyName); checkUnknown(propertyName);
try { bool disposed;
bool disposed; {
{ osl::MutexGuard g(m_impl->mutex);
osl::MutexGuard g(m_impl->mutex); disposed = m_impl->disposed;
disposed = m_impl->disposed; if (!disposed) {
if (!disposed) { m_impl->vetoListeners[propertyName].insert(listener);
m_impl->vetoListeners[propertyName].insert(listener);
}
}
if (disposed) {
listener->disposing(
css::lang::EventObject(
static_cast< css::beans::XPropertySet * >(this)));
} }
} catch (std::bad_alloc &) { }
//TODO OutOfMemoryException: if (disposed) {
throw css::uno::RuntimeException( listener->disposing(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this)); css::lang::EventObject(
static_cast< css::beans::XPropertySet * >(this)));
} }
} }
...@@ -1253,24 +1213,17 @@ void PropertySetMixinImpl::removeVetoableChangeListener( ...@@ -1253,24 +1213,17 @@ void PropertySetMixinImpl::removeVetoableChangeListener(
css::uno::Reference< css::beans::XVetoableChangeListener > const & listener) css::uno::Reference< css::beans::XVetoableChangeListener > const & listener)
throw ( throw (
css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
OSL_ASSERT(listener.is()); OSL_ASSERT(listener.is());
checkUnknown(propertyName); checkUnknown(propertyName);
try { osl::MutexGuard g(m_impl->mutex);
osl::MutexGuard g(m_impl->mutex); Impl::VetoListenerMap::iterator i(m_impl->vetoListeners.find(propertyName));
Impl::VetoListenerMap::iterator i( if (i != m_impl->vetoListeners.end()) {
m_impl->vetoListeners.find(propertyName)); Impl::VetoListenerBag::iterator j(i->second.find(listener));
if (i != m_impl->vetoListeners.end()) { if (j != i->second.end()) {
Impl::VetoListenerBag::iterator j(i->second.find(listener)); i->second.erase(j);
if (j != i->second.end()) {
i->second.erase(j);
}
} }
} catch (std::bad_alloc &) {
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this));
} }
} }
...@@ -1279,68 +1232,52 @@ void PropertySetMixinImpl::setFastPropertyValue( ...@@ -1279,68 +1232,52 @@ void PropertySetMixinImpl::setFastPropertyValue(
throw ( throw (
css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
try { m_impl->setProperty(
m_impl->setProperty( static_cast< css::beans::XPropertySet * >(this),
static_cast< css::beans::XPropertySet * >(this), m_impl->translateHandle(
m_impl->translateHandle( static_cast< css::beans::XPropertySet * >(this), handle),
static_cast< css::beans::XPropertySet * >(this), handle), value, false, false, 1);
value, false, false, 1);
} catch (std::bad_alloc &) {
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this));
}
} }
css::uno::Any PropertySetMixinImpl::getFastPropertyValue(sal_Int32 handle) css::uno::Any PropertySetMixinImpl::getFastPropertyValue(sal_Int32 handle)
throw ( throw (
css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
try { return m_impl->getProperty(
return m_impl->getProperty( static_cast< css::beans::XPropertySet * >(this),
static_cast< css::beans::XPropertySet * >(this), m_impl->translateHandle(
m_impl->translateHandle( static_cast< css::beans::XPropertySet * >(this), handle),
static_cast< css::beans::XPropertySet * >(this), handle), 0);
0);
} catch (std::bad_alloc &) {
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this));
}
} }
css::uno::Sequence< css::beans::PropertyValue > css::uno::Sequence< css::beans::PropertyValue >
PropertySetMixinImpl::getPropertyValues() throw (css::uno::RuntimeException) { PropertySetMixinImpl::getPropertyValues()
try { throw (css::uno::RuntimeException, std::exception)
css::uno::Sequence< css::beans::PropertyValue > s( {
m_impl->handleMap.getLength()); css::uno::Sequence< css::beans::PropertyValue > s(
sal_Int32 n = 0; m_impl->handleMap.getLength());
for (sal_Int32 i = 0; i < m_impl->handleMap.getLength(); ++i) { sal_Int32 n = 0;
try { for (sal_Int32 i = 0; i < m_impl->handleMap.getLength(); ++i) {
s[n].Value = m_impl->getProperty( try {
static_cast< css::beans::XPropertySet * >(this), s[n].Value = m_impl->getProperty(
m_impl->handleMap[i], &s[n].State); static_cast< css::beans::XPropertySet * >(this),
} catch (css::beans::UnknownPropertyException &) { m_impl->handleMap[i], &s[n].State);
continue; } catch (css::beans::UnknownPropertyException &) {
} catch (css::lang::WrappedTargetException & e) { continue;
throw css::lang::WrappedTargetRuntimeException( } catch (css::lang::WrappedTargetException & e) {
e.Message, static_cast< css::beans::XPropertySet * >(this), throw css::lang::WrappedTargetRuntimeException(
e.TargetException); e.Message, static_cast< css::beans::XPropertySet * >(this),
} e.TargetException);
s[n].Name = m_impl->handleMap[i];
s[n].Handle = i;
++n;
} }
s.realloc(n); s[n].Name = m_impl->handleMap[i];
return s; s[n].Handle = i;
} catch (std::bad_alloc &) { ++n;
//TODO OutOfMemoryException:
throw css::uno::RuntimeException(
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this));
} }
s.realloc(n);
return s;
} }
void PropertySetMixinImpl::setPropertyValues( void PropertySetMixinImpl::setPropertyValues(
...@@ -1348,33 +1285,26 @@ void PropertySetMixinImpl::setPropertyValues( ...@@ -1348,33 +1285,26 @@ void PropertySetMixinImpl::setPropertyValues(
throw ( throw (
css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
css::uno::RuntimeException) css::uno::RuntimeException, std::exception)
{ {
try { for (sal_Int32 i = 0; i < props.getLength(); ++i) {
for (sal_Int32 i = 0; i < props.getLength(); ++i) { if (props[i].Handle != -1
if (props[i].Handle != -1 && (props[i].Name
&& (props[i].Name != m_impl->translateHandle(
!= m_impl->translateHandle( static_cast< css::beans::XPropertySet * >(this),
static_cast< css::beans::XPropertySet * >(this), props[i].Handle)))
props[i].Handle))) {
{ throw css::beans::UnknownPropertyException(
throw css::beans::UnknownPropertyException( (rtl::OUString("name ") + props[i].Name
(rtl::OUString("name ") + rtl::OUString(" does not match handle ")
+ props[i].Name + rtl::OUString::number(props[i].Handle)),
+ rtl::OUString(" does not match handle ") static_cast< css::beans::XPropertySet * >(this));
+ rtl::OUString::number(props[i].Handle)),
static_cast< css::beans::XPropertySet * >(this));
}
m_impl->setProperty(
static_cast< css::beans::XPropertySet * >(this), props[i].Name,
props[i].Value,
props[i].State == css::beans::PropertyState_AMBIGUOUS_VALUE,
props[i].State == css::beans::PropertyState_DEFAULT_VALUE, 0);
} }
} catch (std::bad_alloc &) { m_impl->setProperty(
//TODO OutOfMemoryException: static_cast< css::beans::XPropertySet * >(this), props[i].Name,
throw css::uno::RuntimeException( props[i].Value,
rtl::OUString(), static_cast< css::beans::XPropertySet * >(this)); props[i].State == css::beans::PropertyState_AMBIGUOUS_VALUE,
props[i].State == css::beans::PropertyState_DEFAULT_VALUE, 0);
} }
} }
......
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
#define INCLUDED_CPPUHELPER_PROPERTYSETMIXIN_HXX #define INCLUDED_CPPUHELPER_PROPERTYSETMIXIN_HXX
#include "sal/config.h" #include "sal/config.h"
#include <exception>
#include "com/sun/star/beans/PropertyVetoException.hpp" #include "com/sun/star/beans/PropertyVetoException.hpp"
#include "com/sun/star/beans/UnknownPropertyException.hpp" #include "com/sun/star/beans/UnknownPropertyException.hpp"
#include "com/sun/star/beans/XFastPropertySet.hpp" #include "com/sun/star/beans/XFastPropertySet.hpp"
...@@ -266,7 +269,8 @@ protected: ...@@ -266,7 +269,8 @@ protected:
// @see com::sun::star::beans::XPropertySet::getPropertySetInfo // @see com::sun::star::beans::XPropertySet::getPropertySetInfo
virtual virtual
com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo > com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo >
SAL_CALL getPropertySetInfo() throw (com::sun::star::uno::RuntimeException); SAL_CALL getPropertySetInfo()
throw (com::sun::star::uno::RuntimeException, std::exception);
// @see com::sun::star::beans::XPropertySet::setPropertyValue // @see com::sun::star::beans::XPropertySet::setPropertyValue
virtual void SAL_CALL setPropertyValue( virtual void SAL_CALL setPropertyValue(
...@@ -277,7 +281,7 @@ protected: ...@@ -277,7 +281,7 @@ protected:
com::sun::star::beans::PropertyVetoException, com::sun::star::beans::PropertyVetoException,
com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
// @see com::sun::star::beans::XPropertySet::getPropertyValue // @see com::sun::star::beans::XPropertySet::getPropertyValue
virtual com::sun::star::uno::Any SAL_CALL getPropertyValue( virtual com::sun::star::uno::Any SAL_CALL getPropertyValue(
...@@ -285,7 +289,7 @@ protected: ...@@ -285,7 +289,7 @@ protected:
throw ( throw (
com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::UnknownPropertyException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
/** /**
@short Adds a @short Adds a
...@@ -303,7 +307,7 @@ protected: ...@@ -303,7 +307,7 @@ protected:
throw ( throw (
com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::UnknownPropertyException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
// @see com::sun::star::beans::XPropertySet::removePropertyChangeListener // @see com::sun::star::beans::XPropertySet::removePropertyChangeListener
virtual void SAL_CALL removePropertyChangeListener( virtual void SAL_CALL removePropertyChangeListener(
...@@ -313,7 +317,7 @@ protected: ...@@ -313,7 +317,7 @@ protected:
throw ( throw (
com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::UnknownPropertyException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
/** /**
@short Adds a @short Adds a
...@@ -331,7 +335,7 @@ protected: ...@@ -331,7 +335,7 @@ protected:
throw ( throw (
com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::UnknownPropertyException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
// @see com::sun::star::beans::XPropertySet::removeVetoableChangeListener // @see com::sun::star::beans::XPropertySet::removeVetoableChangeListener
virtual void SAL_CALL removeVetoableChangeListener( virtual void SAL_CALL removeVetoableChangeListener(
...@@ -341,7 +345,7 @@ protected: ...@@ -341,7 +345,7 @@ protected:
throw ( throw (
com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::UnknownPropertyException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
// @see com::sun::star::beans::XFastPropertySet::setFastPropertyValue // @see com::sun::star::beans::XFastPropertySet::setFastPropertyValue
virtual void SAL_CALL setFastPropertyValue( virtual void SAL_CALL setFastPropertyValue(
...@@ -351,7 +355,7 @@ protected: ...@@ -351,7 +355,7 @@ protected:
com::sun::star::beans::PropertyVetoException, com::sun::star::beans::PropertyVetoException,
com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
// @see com::sun::star::beans::XFastPropertySet::getFastPropertyValue // @see com::sun::star::beans::XFastPropertySet::getFastPropertyValue
virtual com::sun::star::uno::Any SAL_CALL getFastPropertyValue( virtual com::sun::star::uno::Any SAL_CALL getFastPropertyValue(
...@@ -359,12 +363,13 @@ protected: ...@@ -359,12 +363,13 @@ protected:
throw ( throw (
com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::UnknownPropertyException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
// @see com::sun::star::beans::XPropertyAccess::getPropertyValues // @see com::sun::star::beans::XPropertyAccess::getPropertyValues
virtual virtual
com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >
SAL_CALL getPropertyValues() throw (com::sun::star::uno::RuntimeException); SAL_CALL getPropertyValues()
throw (com::sun::star::uno::RuntimeException, std::exception);
// @see com::sun::star::beans::XPropertyAccess::setPropertyValues // @see com::sun::star::beans::XPropertyAccess::setPropertyValues
virtual void SAL_CALL setPropertyValues( virtual void SAL_CALL setPropertyValues(
...@@ -375,7 +380,7 @@ protected: ...@@ -375,7 +380,7 @@ protected:
com::sun::star::beans::PropertyVetoException, com::sun::star::beans::PropertyVetoException,
com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::WrappedTargetException, com::sun::star::lang::WrappedTargetException,
com::sun::star::uno::RuntimeException); com::sun::star::uno::RuntimeException, std::exception);
private: private:
PropertySetMixinImpl( const PropertySetMixinImpl&); // not defined PropertySetMixinImpl( const PropertySetMixinImpl&); // not defined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment