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 css::beans::XPropertySet,
89 public css::beans::XFastPropertySet,
90 public css::beans::XPropertyAccess
103 IMPLEMENTS_PROPERTY_SET = 1,
110 IMPLEMENTS_FAST_PROPERTY_SET = 2,
117 IMPLEMENTS_PROPERTY_ACCESS = 4
231 css::uno::Any
const & oldValue,
232 css::uno::Any
const & newValue,
268 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() SAL_OVERRIDE;
271 virtual
void SAL_CALL setPropertyValue(
272 rtl::OUString const & propertyName,
273 css::uno::Any const & value) SAL_OVERRIDE;
276 virtual
css::uno::Any SAL_CALL getPropertyValue(
277 rtl::OUString const & propertyName) SAL_OVERRIDE;
288 virtual
void SAL_CALL addPropertyChangeListener(
289 rtl::OUString const & propertyName,
291 css::beans::XPropertyChangeListener > const & listener) SAL_OVERRIDE;
294 virtual
void SAL_CALL removePropertyChangeListener(
295 rtl::OUString const & propertyName,
297 css::beans::XPropertyChangeListener > const & listener) SAL_OVERRIDE;
308 virtual
void SAL_CALL addVetoableChangeListener(
309 rtl::OUString const & propertyName,
311 css::beans::XVetoableChangeListener > const & listener) SAL_OVERRIDE;
314 virtual
void SAL_CALL removeVetoableChangeListener(
315 rtl::OUString const & propertyName,
317 css::beans::XVetoableChangeListener > const & listener) SAL_OVERRIDE;
320 virtual
void SAL_CALL setFastPropertyValue(
321 sal_Int32 handle,
css::uno::Any const & value) SAL_OVERRIDE;
324 virtual
css::uno::Any SAL_CALL getFastPropertyValue(
325 sal_Int32 handle) SAL_OVERRIDE;
328 virtual
css::uno::Sequence<
css::beans::PropertyValue > SAL_CALL getPropertyValues() SAL_OVERRIDE;
331 virtual
void SAL_CALL setPropertyValues(
332 css::uno::Sequence<
css::beans::PropertyValue > const & props) SAL_OVERRIDE;
339 css::uno::Reference<
css::uno::XComponentContext > const & context,
341 css::uno::Sequence<
rtl::OUString > const & absentOptional,
342 css::uno::Type const & type);
352 void checkUnknown(
rtl::OUString const & propertyName);
410 css::uno::Reference< css::uno::XComponentContext >
const & context,
412 css::uno::Sequence< rtl::OUString >
const & absentOptional):
413 PropertySetMixinImpl(
414 context, implements, absentOptional, T::static_type())
428 #if defined __GNUC__ && !defined __clang__ 429 #pragma GCC diagnostic pop css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:405
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
PropertySetMixin(css::uno::Reference< css::uno::XComponentContext > const &context, Implements implements, css::uno::Sequence< rtl::OUString > const &absentOptional)
The constructor.
Definition: propertysetmixin.hxx:409
Implements
Flags used by subclasses of cppu::PropertySetMixin to specify what UNO interface types shall be suppo...
Definition: propertysetmixin.hxx:98
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:392
A helper mixin to implement certain UNO interfaces related to property set handling on top of the att...
Definition: propertysetmixin.hxx:57
Definition: Enterable.hxx:26
A class used by subclasses of cppu::PropertySetMixin when implementing UNO interface type attribute s...
Definition: propertysetmixin.hxx:132
~PropertySetMixin()
The destructor.
Definition: propertysetmixin.hxx:422
A helper base class for cppu::PropertySetMixin.
Definition: propertysetmixin.hxx:87
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:120
Definition: bootstrap.hxx:29