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;
386 void operator=( const PropertySetMixinImpl&);
388 PropertySetMixinImpl(
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);
401 ~PropertySetMixinImpl();
403 void checkUnknown(rtl::OUString const & propertyName);
418 template< typename T > class PropertySetMixin: public PropertySetMixinImpl {
465 PropertySetMixinImpl(
466 context, implements, absentOptional, T::static_type())
477 PropertySetMixin(
const PropertySetMixin&);
478 void operator=(
const PropertySetMixin&);
480 #if defined __GNUC__ && !defined __clang__
481 #pragma GCC diagnostic pop
A class used by subclasses of cppu::PropertySetMixin when implementing UNO interface type attribute s...
Definition: propertysetmixin.hxx:132
PropertySetMixin(com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > const &context, Implements implements, com::sun::star::uno::Sequence< rtl::OUString > const &absentOptional)
The constructor.
Definition: propertysetmixin.hxx:460
Implements
Flags used by subclasses of cppu::PropertySetMixin to specify what UNO interface types shall be suppo...
Definition: propertysetmixin.hxx:98
~PropertySetMixin()
The destructor.
Definition: propertysetmixin.hxx:474
C++ class representing an IDL meta type.
Definition: Type.h:54
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
C++ class representing an IDL any.
Definition: Any.h:49
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:81
A helper base class for cppu::PropertySetMixin.
Definition: propertysetmixin.hxx:87
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:407
inline::com::sun::star::uno::Any queryInterface(const ::com::sun::star::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
Template reference class for interface type derived from BaseReference.
Definition: unotype.hxx:32
A helper mixin to implement certain UNO interfaces related to property set handling on top of the att...
Definition: propertysetmixin.hxx:57