|
LibreOffice
LibreOffice 6.0 SDK 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 (css::uno::Reference< css::uno::XComponentContext > const &context, Implements implements, css::uno::Sequence< rtl::OUString > const &absentOptional) | |
| The constructor. More... | |
| ~PropertySetMixin () | |
| The destructor. 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.theCoreReflection and com.sun.star.reflection.theTypeDescriptionManager singletons |
| 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, 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. |
|
inlineprotected |
The destructor.
Does not throw.
1.8.17