A helper mixin to implement certain UNO interfaces related to property set handling on top of the attributes of a given UNO interface type. More...
#include <propertysetmixin.hxx>
 
  
| Protected Member Functions | |
| PropertySetMixin (css::uno::Reference< css::uno::XComponentContext > const &context, Implements implements, css::uno::Sequence< rtl::OUString > const &absentOptional) | |
| The constructor. | |
| ~PropertySetMixin () | |
| The destructor. | |
|  Protected Member Functions inherited from cppu::PropertySetMixinImpl | |
| void | prepareSet (rtl::OUString const &propertyName, css::uno::Any const &oldValue, css::uno::Any const &newValue, BoundListeners *boundListeners) | 
| A function used by subclasses of cppu::PropertySetMixinwhen implementing UNO interface type attribute setter functions. | |
| void | dispose () | 
| Mark this instance as being disposed. | |
| virtual css::uno::Any | queryInterface (css::uno::Type const &type) SAL_OVERRIDE | 
| A function used by subclasses of cppu::PropertySetMixinwhen implementingcss::uno::XInterface::queryInterface. | |
| virtual css::uno::Reference< css::beans::XPropertySetInfo > | getPropertySetInfo () SAL_OVERRIDE | 
| virtual void | setPropertyValue (rtl::OUString const &propertyName, css::uno::Any const &value) SAL_OVERRIDE | 
| virtual css::uno::Any | getPropertyValue (rtl::OUString const &propertyName) SAL_OVERRIDE | 
| virtual void | addPropertyChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &listener) SAL_OVERRIDE | 
| Adds a css::beans::XPropertyChangeListener. | |
| virtual void | removePropertyChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &listener) SAL_OVERRIDE | 
| virtual void | addVetoableChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &listener) SAL_OVERRIDE | 
| Adds a css::beans::XVetoableChangeListener. | |
| virtual void | removeVetoableChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &listener) SAL_OVERRIDE | 
| virtual void | setFastPropertyValue (sal_Int32 handle, css::uno::Any const &value) SAL_OVERRIDE | 
| virtual css::uno::Any | getFastPropertyValue (sal_Int32 handle) SAL_OVERRIDE | 
| virtual css::uno::Sequence< css::beans::PropertyValue > | getPropertyValues () SAL_OVERRIDE | 
| virtual void | setPropertyValues (css::uno::Sequence< css::beans::PropertyValue > const &props) SAL_OVERRIDE | 
| Additional Inherited Members | |
|  Protected Types inherited from cppu::PropertySetMixinImpl | |
| enum | Implements { IMPLEMENTS_PROPERTY_SET = 1 , IMPLEMENTS_FAST_PROPERTY_SET = 2 , IMPLEMENTS_PROPERTY_ACCESS = 4 } | 
| Flags used by subclasses of cppu::PropertySetMixinto specify what UNO interface types shall be supported.  More... | |
A helper mixin to implement certain UNO interfaces related to property set handling on top of the attributes of a given UNO interface type.
The UNO interface type is specified by the type parameter T (which must correspond to a UNO interface type).
No specializations of this class template should be added by client code.
| 
 | inlineprotected | 
The constructor.
May throw css::uno::RuntimeException and std::bad_alloc.
| context | the component context used by this class template; must not be null, and must supply the com.sun.star.reflection.theCoreReflectionandcom.sun.star.reflection.theTypeDescriptionManagersingletons | 
| implements | a combination of zero or more flags specifying what UNO interface types shall be supported | 
| absentOptional | a list of optional properties that are not present, and should thus not be visible via css::beans::XPropertySet::getPropertySetInfo,css::beans::XPropertySet::addPropertyChangeListener ,css::beans::XPropertySet:: removePropertyChangeListener,css::beans::XPropertySet::addVetoableChangeListener , andcss::beans::XPropertySet:: removeVetoableChangeListener. For consistency reasons, the givenabsentOptionalshould only contain the names of attributes that represent optional properties that are not present (that is, the attribute getters and setters always throw acss::beans::UnknownPropertyException), and should contain each such name only once. If an optional property is not present (that is, the corresponding attribute getter and setter always throw acss::beans::UnknownPropertyException) but is not contained in the givenabsentOptional, then it will be visible viacss::beans::XPropertySet::getPropertySetInfoas acss::beans::Propertywith a setcss::beans::PropertyAttribute::OPTIONAL. If the givenimplementsspecifies thatcss::beans::XPropertySetis not supported, then the givenabsentOptionalis effectively ignored and can be empty. | 
| 
 | inlineprotected | 
The destructor.
Does not throw.