20 #ifndef INCLUDED_CPPUHELPER_PROPERTYSETMIXIN_HXX
21 #define INCLUDED_CPPUHELPER_PROPERTYSETMIXIN_HXX
27 #include <com/sun/star/beans/PropertyVetoException.hpp>
28 #include <com/sun/star/beans/UnknownPropertyException.hpp>
29 #include <com/sun/star/beans/XFastPropertySet.hpp>
30 #include <com/sun/star/beans/XPropertyAccess.hpp>
31 #include <com/sun/star/beans/XPropertySet.hpp>
32 #include <com/sun/star/lang/IllegalArgumentException.hpp>
33 #include <com/sun/star/lang/WrappedTargetException.hpp>
35 #include <com/sun/star/uno/RuntimeException.hpp>
40 namespace com {
namespace sun {
namespace star {
42 class XPropertyChangeListener;
43 class XPropertySetInfo;
44 class XVetoableChangeListener;
50 class XComponentContext;
53 namespace rtl {
class OUString; }
62 #pragma warning(disable: 4265)
83 #if defined __GNUC__ && !defined __clang__
84 #pragma GCC diagnostic push
85 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
88 public com::sun::star::beans::XPropertySet,
89 public com::sun::star::beans::XFastPropertySet,
90 public com::sun::star::beans::XPropertyAccess
103 IMPLEMENTS_PROPERTY_SET = 1,
110 IMPLEMENTS_FAST_PROPERTY_SET = 2,
117 IMPLEMENTS_PROPERTY_ACCESS = 4
266 throw (com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
271 SAL_CALL getPropertySetInfo()
272 throw (com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
275 virtual
void SAL_CALL setPropertyValue(
276 rtl::OUString const & propertyName,
277 com::sun::star::uno::Any const & value)
279 com::sun::star::beans::UnknownPropertyException,
280 com::sun::star::beans::PropertyVetoException,
281 com::sun::star::lang::IllegalArgumentException,
282 com::sun::star::lang::WrappedTargetException,
283 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
286 virtual com::sun::star::uno::Any SAL_CALL getPropertyValue(
287 rtl::OUString const & propertyName)
289 com::sun::star::beans::UnknownPropertyException,
290 com::sun::star::lang::WrappedTargetException,
291 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
302 virtual
void SAL_CALL addPropertyChangeListener(
303 rtl::OUString const & propertyName,
304 com::sun::star::uno::Reference<
305 com::sun::star::beans::XPropertyChangeListener > const & listener)
307 com::sun::star::beans::UnknownPropertyException,
308 com::sun::star::lang::WrappedTargetException,
309 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
312 virtual
void SAL_CALL removePropertyChangeListener(
313 rtl::OUString const & propertyName,
314 com::sun::star::uno::Reference<
315 com::sun::star::beans::XPropertyChangeListener > const & listener)
317 com::sun::star::beans::UnknownPropertyException,
318 com::sun::star::lang::WrappedTargetException,
319 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
330 virtual
void SAL_CALL addVetoableChangeListener(
331 rtl::OUString const & propertyName,
332 com::sun::star::uno::Reference<
333 com::sun::star::beans::XVetoableChangeListener > const & listener)
335 com::sun::star::beans::UnknownPropertyException,
336 com::sun::star::lang::WrappedTargetException,
337 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
340 virtual
void SAL_CALL removeVetoableChangeListener(
341 rtl::OUString const & propertyName,
342 com::sun::star::uno::Reference<
343 com::sun::star::beans::XVetoableChangeListener > const & listener)
345 com::sun::star::beans::UnknownPropertyException,
346 com::sun::star::lang::WrappedTargetException,
347 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
350 virtual
void SAL_CALL setFastPropertyValue(
351 sal_Int32 handle, com::sun::star::uno::Any const & value)
353 com::sun::star::beans::UnknownPropertyException,
354 com::sun::star::beans::PropertyVetoException,
355 com::sun::star::lang::IllegalArgumentException,
356 com::sun::star::lang::WrappedTargetException,
357 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
360 virtual com::sun::star::uno::Any SAL_CALL getFastPropertyValue(
363 com::sun::star::beans::UnknownPropertyException,
364 com::sun::star::lang::WrappedTargetException,
365 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
369 com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >
370 SAL_CALL getPropertyValues()
371 throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
374 virtual
void SAL_CALL setPropertyValues(
375 com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >
378 com::sun::star::beans::UnknownPropertyException,
379 com::sun::star::beans::PropertyVetoException,
380 com::sun::star::lang::IllegalArgumentException,
381 com::sun::star::lang::WrappedTargetException,
382 com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
389 com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
392 com::sun::star::uno::Sequence< rtl::OUString > const & absentOptional,
393 com::sun::star::uno::Type const & type);
403 void checkUnknown(rtl::OUString const & propertyName);
465 PropertySetMixinImpl(
466 context, implements, absentOptional, T::static_type())
477 PropertySetMixin(
const PropertySetMixin&) SAL_DELETED_FUNCTION;
478 void operator=( const PropertySetMixin&) SAL_DELETED_FUNCTION;
480 #if defined __GNUC__ && !defined __clang__
481 #pragma GCC diagnostic pop