24 #ifndef INCLUDED_CPPUHELPER_PROPSHLP_HXX
25 #define INCLUDED_CPPUHELPER_PROPSHLP_HXX
31 #include "com/sun/star/beans/XPropertySet.hpp"
32 #include "com/sun/star/beans/XPropertySetOption.hpp"
33 #include "com/sun/star/beans/XMultiPropertySet.hpp"
34 #include "com/sun/star/beans/XFastPropertySet.hpp"
54 static void * SAL_CALL
operator new(
size_t nSize )
56 static void SAL_CALL
operator delete(
void * pMem )
58 static void * SAL_CALL
operator new( size_t,
void * pMem )
60 static void SAL_CALL
operator delete(
void *,
void * )
79 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
80 ::
rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle ) = 0;
84 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() = 0;
90 virtual css::beans::Property SAL_CALL getPropertyByName(
91 const ::rtl::OUString& rPropertyName ) = 0;
96 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName) = 0;
102 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName ) = 0;
108 virtual sal_Int32 SAL_CALL fillHandles(
109 sal_Int32 * pHandles,
const css::uno::Sequence< ::rtl::OUString > & rPropNames ) = 0;
128 css::beans::Property *pProps,
129 sal_Int32 nElements ,
139 const css::uno::Sequence< css::beans::Property > & aProps,
145 sal_Int32 SAL_CALL getCount()
const;
158 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
163 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties()
SAL_OVERRIDE;
169 virtual css::beans::Property SAL_CALL getPropertyByName(
181 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName )
SAL_OVERRIDE;
187 virtual sal_Int32 SAL_CALL fillHandles(
188 sal_Int32 * pHandles,
const css::uno::Sequence< ::rtl::OUString > & rPropNames )
SAL_OVERRIDE;
199 css::uno::Sequence< css::beans::Property > aInfos;
213 bool operator()(
const sal_Int32 & i1 ,
const sal_Int32 & i2)
const
230 static void * SAL_CALL
operator new(
size_t nSize )
232 static void SAL_CALL
operator delete(
void * pMem )
234 static void * SAL_CALL
operator new( size_t,
void * pMem )
236 static void SAL_CALL
operator delete(
void *,
void * )
255 css::uno::Sequence< sal_Int32 > SAL_CALL getContainedTypes()
const;
271 sal_Int32 SAL_CALL addInterface(
272 const sal_Int32 & rKey,
273 const css::uno::Reference< css::uno::XInterface > & r );
282 sal_Int32 SAL_CALL removeInterface(
283 const sal_Int32 & rKey,
284 const css::uno::Reference< css::uno::XInterface > & rxIFace );
290 void SAL_CALL disposeAndClear(
const css::lang::EventObject & rEvt );
294 void SAL_CALL clear();
330 virtual void fireEvents(
331 sal_Int32 * pnHandles,
334 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
336 #if !defined _MSC_VER // public -> protected changes mangled names there
338 #elif defined __clang__
339 #pragma clang diagnostic push
340 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
344 #if defined _MSC_VER && defined __clang__
345 #pragma clang diagnostic pop
363 public css::beans::XMultiPropertySet,
364 public css::beans::XFastPropertySet,
365 public css::beans::XPropertySet
421 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
433 css::uno::Sequence< css::uno::Type > getTypes();
441 void SAL_CALL disposing();
448 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName,
const css::uno::Any& aValue )
SAL_OVERRIDE;
453 virtual css::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
SAL_OVERRIDE;
455 virtual void SAL_CALL addPropertyChangeListener(
456 const ::rtl::OUString& aPropertyName,
457 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener)
SAL_OVERRIDE;
460 virtual void SAL_CALL removePropertyChangeListener(
461 const ::rtl::OUString& aPropertyName,
462 const css::uno::Reference < css::beans::XPropertyChangeListener >& aListener)
SAL_OVERRIDE;
465 virtual void SAL_CALL addVetoableChangeListener(
466 const ::rtl::OUString& aPropertyName,
467 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener)
SAL_OVERRIDE;
470 virtual void SAL_CALL removeVetoableChangeListener(
471 const ::rtl::OUString& aPropertyName,
472 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener )
SAL_OVERRIDE;
481 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle,
const css::uno::Any& rValue )
SAL_OVERRIDE;
487 virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
SAL_OVERRIDE;
490 virtual void SAL_CALL setPropertyValues(
491 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
492 const css::uno::Sequence< css::uno::Any >& Values )
SAL_OVERRIDE;
494 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(
495 const css::uno::Sequence< ::rtl::OUString >& PropertyNames )
SAL_OVERRIDE;
497 virtual void SAL_CALL addPropertiesChangeListener(
498 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
499 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
SAL_OVERRIDE;
501 virtual void SAL_CALL removePropertiesChangeListener(
502 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
SAL_OVERRIDE;
504 virtual void SAL_CALL firePropertiesChangeEvent(
505 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
506 const css::uno::Reference< css::beans::XPropertiesChangeListener > & Listener )
SAL_OVERRIDE;
511 static css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
524 sal_Int32 * pnHandles,
525 const css::uno::Any * pNewValues,
526 const css::uno::Any * pOldValues,
539 void SAL_CALL setFastPropertyValues(
541 sal_Int32 * pHandles,
542 const css::uno::Any * pValues,
543 sal_Int32 nHitCount );
566 virtual sal_Bool SAL_CALL convertFastPropertyValue(
567 css::uno::Any & rConvertedValue,
568 css::uno::Any & rOldValue,
570 const css::uno::Any& rValue ) = 0;
591 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
593 const css::uno::Any& rValue ) = 0;
599 virtual void SAL_CALL getFastPropertyValue(
600 css::uno::Any& rValue,
601 sal_Int32 nHandle )
const = 0;
621 void setDependentFastPropertyValue(
623 const css::uno::Any& i_value
646 SAL_DELETED_FUNCTION;
652 sal_Int32* i_handles,
653 const css::uno::Any * i_newValues,
654 const css::uno::Any * i_oldValues,
658 #if defined _MSC_VER // public -> protected changes mangled names there
665 #if defined __clang__
666 #pragma clang diagnostic push
667 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
676 #if defined __clang__
677 #pragma clang diagnostic pop
689 public css::beans::XPropertySetOption
699 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
713 #if defined _MSC_VER // public -> protected changes mangled names there
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:688
Impl *const m_pReserved
reserved for future use.
Definition: propshlp.hxx:637
void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:193
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:627
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:203
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:226
Definition: propshlp.hxx:211
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XPropertyChangedListener.
Definition: propshlp.hxx:631
sal_Int32 keyType
Definition: propshlp.hxx:296
~IEventNotificationHook()
Definition: propshlp.hxx:342
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition: propshlp.hxx:362
Definition: propshlp.hxx:217
A container of interfaces.
Definition: interfacecontainer.h:132
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:43
unsigned char sal_Bool
Definition: types.h:38
This interface is used by the OPropertyHelper, to access the property description.
Definition: propshlp.hxx:50
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const
Definition: propshlp.hxx:213
You can use this helper class to map a XPropertySet-Interface to a XFast- or a XMultiPropertySet inte...
Definition: propshlp.hxx:116
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:635
A mutual exclusion synchronization object.
Definition: mutex.hxx:35
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:32
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:378
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:587
size_t operator()(const sal_Int32 &i) const
Definition: propshlp.hxx:219
An interface to extend event notification actions.
Definition: propshlp.hxx:308
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:440
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:391
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.