LibreOffice Module cppuhelper (master) 1
Protected Member Functions | Private Member Functions | List of all members
cppu::PropertySetMixin< T > Class Template Reference

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>

Inheritance diagram for cppu::PropertySetMixin< T >:
[legend]
Collaboration diagram for cppu::PropertySetMixin< T >:
[legend]

Protected Member Functions

 PropertySetMixin (css::uno::Reference< css::uno::XComponentContext > const &context, Implements implements, css::uno::Sequence< rtl::OUString > const &absentOptional)
 The constructor. More...
 
 ~PropertySetMixin ()
 The destructor. More...
 
- 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::PropertySetMixin when implementing UNO interface type attribute setter functions. More...
 
void dispose ()
 Mark this instance as being disposed. More...
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &type) SAL_OVERRIDE
 A function used by subclasses of cppu::PropertySetMixin when implementing css::uno::XInterface::queryInterface. More...
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValue (rtl::OUString const &propertyName, css::uno::Any const &value) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getPropertyValue (rtl::OUString const &propertyName) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertyChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &listener) SAL_OVERRIDE
 Adds a css::beans::XPropertyChangeListener. More...
 
virtual void SAL_CALL removePropertyChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL addVetoableChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &listener) SAL_OVERRIDE
 Adds a css::beans::XVetoableChangeListener. More...
 
virtual void SAL_CALL removeVetoableChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 handle, css::uno::Any const &value) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 handle) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues () SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValues (css::uno::Sequence< css::beans::PropertyValue > const &props) SAL_OVERRIDE
 

Private Member Functions

 PropertySetMixin (const PropertySetMixin &) SAL_DELETED_FUNCTION
 
void operator= (const PropertySetMixin &) SAL_DELETED_FUNCTION
 

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::PropertySetMixin to specify what UNO interface types shall be supported. More...
 

Detailed Description

template<typename T>
class cppu::PropertySetMixin< T >

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.

Available since: \n UDK 3.2.1

Definition at line 350 of file propertysetmixin.hxx.

Constructor & Destructor Documentation

◆ PropertySetMixin() [1/2]

template<typename T >
cppu::PropertySetMixin< T >::PropertySetMixin ( css::uno::Reference< css::uno::XComponentContext > const &  context,
Implements  implements,
css::uno::Sequence< rtl::OUString > const &  absentOptional 
)
inlineprotected

The constructor.

May throw css::uno::RuntimeException and std::bad_alloc.

Parameters
contextthe component context used by this class template; must not be null, and must supply the com.sun.star.reflection.theCoreReflection and com.sun.star.reflection.theTypeDescriptionManager singletons
implementsa combination of zero or more flags specifying what UNO interface types shall be supported
absentOptionala 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 , and css::beans::XPropertySet:: removeVetoableChangeListener. For consistency reasons, the given absentOptional should only contain the names of attributes that represent optional properties that are not present (that is, the attribute getters and setters always throw a css::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 a css::beans::UnknownPropertyException) but is not contained in the given absentOptional, then it will be visible via css::beans::XPropertySet::getPropertySetInfo as a css::beans::Property with a set css::beans::PropertyAttribute::OPTIONAL. If the given implements specifies that css::beans::XPropertySet is not supported, then the given absentOptional is effectively ignored and can be empty.

Definition at line 392 of file propertysetmixin.hxx.

◆ ~PropertySetMixin()

template<typename T >
cppu::PropertySetMixin< T >::~PropertySetMixin ( )
inlineprotected

The destructor.

Does not throw.

Definition at line 405 of file propertysetmixin.hxx.

◆ PropertySetMixin() [2/2]

template<typename T >
cppu::PropertySetMixin< T >::PropertySetMixin ( const PropertySetMixin< T > &  )
private

Member Function Documentation

◆ operator=()

template<typename T >
void cppu::PropertySetMixin< T >::operator= ( const PropertySetMixin< T > &  )
private

The documentation for this class was generated from the following file: