My Project
UDK 3.2.7 C/C++ API 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>
Protected Member Functions | |
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. | |
~PropertySetMixin () | |
The destructor. | |
![]() | |
void | prepareSet (rtl::OUString const &propertyName, com::sun::star::uno::Any const &oldValue, com::sun::star::uno::Any const &newValue, BoundListeners *boundListeners) |
A function used by subclasses of cppu::PropertySetMixin when implementing UNO interface type attribute setter functions. | |
void | dispose () |
Mark this instance as being disposed. | |
virtual com::sun::star::uno::Any | queryInterface (com::sun::star::uno::Type const &type) throw (com::sun::star::uno::RuntimeException) |
A function used by subclasses of cppu::PropertySetMixin when implementing com::sun::star::uno::XInterface::queryInterface . | |
virtual com::sun::star::uno::Reference < com::sun::star::beans::XPropertySetInfo > | getPropertySetInfo () throw (com::sun::star::uno::RuntimeException) |
virtual void | setPropertyValue (rtl::OUString const &propertyName, com::sun::star::uno::Any const &value) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
virtual com::sun::star::uno::Any | getPropertyValue (rtl::OUString const &propertyName) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
virtual void | addPropertyChangeListener (rtl::OUString const &propertyName, com::sun::star::uno::Reference< com::sun::star::beans::XPropertyChangeListener > const &listener) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
Adds a com::sun::star::beans::XPropertyChangeListener . | |
virtual void | removePropertyChangeListener (rtl::OUString const &propertyName, com::sun::star::uno::Reference< com::sun::star::beans::XPropertyChangeListener > const &listener) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
virtual void | addVetoableChangeListener (rtl::OUString const &propertyName, com::sun::star::uno::Reference< com::sun::star::beans::XVetoableChangeListener > const &listener) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
Adds a com::sun::star::beans::XVetoableChangeListener . | |
virtual void | removeVetoableChangeListener (rtl::OUString const &propertyName, com::sun::star::uno::Reference< com::sun::star::beans::XVetoableChangeListener > const &listener) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
virtual void | setFastPropertyValue (sal_Int32 handle, com::sun::star::uno::Any const &value) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
virtual com::sun::star::uno::Any | getFastPropertyValue (sal_Int32 handle) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
virtual com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue > | getPropertyValues () throw (com::sun::star::uno::RuntimeException) |
virtual void | setPropertyValues (com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > const &props) throw ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException) |
Additional Inherited Members | |
![]() | |
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... |
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 com::sun::star::uno::RuntimeException
and std::bad_alloc
.
context | the component context used by this class template; must not be null, and must supply the service com.sun.star.reflection.CoreReflection and the singleton com.sun.star.reflection.theTypeDescriptionManager |
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 com::sun::star::beans::XPropertySet::getPropertySetInfo , com::sun::star::beans::XPropertySet::addPropertyChangeListener , com::sun::star::beans::XPropertySet::removePropertyChangeListener , com::sun::star::beans::XPropertySet::addVetoableChangeListener , and com::sun::star::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 com::sun::star::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 com::sun::star::beans::UnknownPropertyException ) but is not contained in the given absentOptional , then it will be visible via com::sun::star::beans::XPropertySet::getPropertySetInfo as a com::sun::star::beans::Property with a set com::sun::star::beans::PropertyAttribute::OPTIONAL . If the given implements specifies that com::sun::star::beans::XPropertySet is not supported, then the given absentOptional is effectively ignored and can be empty. |
|
inlineprotected |
The destructor.
Does not throw.