4 #ifndef INCLUDED_CPPUHELPER_PROPSHLP_HXX
5 #define INCLUDED_CPPUHELPER_PROPSHLP_HXX
11 #include "com/sun/star/beans/XPropertySet.hpp"
12 #include "com/sun/star/beans/XPropertySetOption.hpp"
13 #include "com/sun/star/beans/XMultiPropertySet.hpp"
14 #include "com/sun/star/beans/XFastPropertySet.hpp"
34 static void * SAL_CALL
operator new(
size_t nSize )
36 static void SAL_CALL
operator delete(
void * pMem )
38 static void * SAL_CALL
operator new( size_t,
void * pMem )
40 static void SAL_CALL
operator delete(
void *,
void * )
59 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
60 ::
rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle ) = 0;
64 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() = 0;
70 virtual css::beans::Property SAL_CALL getPropertyByName(
71 const ::rtl::OUString& rPropertyName ) = 0;
76 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName) = 0;
82 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName ) = 0;
88 virtual sal_Int32 SAL_CALL fillHandles(
89 sal_Int32 * pHandles,
const css::uno::Sequence< ::rtl::OUString > & rPropNames ) = 0;
108 css::beans::Property *pProps,
109 sal_Int32 nElements ,
119 const css::uno::Sequence< css::beans::Property > & aProps,
125 sal_Int32 SAL_CALL getCount()
const;
138 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
143 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties()
SAL_OVERRIDE;
149 virtual css::beans::Property SAL_CALL getPropertyByName(
161 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName )
SAL_OVERRIDE;
167 virtual sal_Int32 SAL_CALL fillHandles(
168 sal_Int32 * pHandles,
const css::uno::Sequence< ::rtl::OUString > & rPropNames )
SAL_OVERRIDE;
179 css::uno::Sequence< css::beans::Property > aInfos;
193 bool operator()(
const sal_Int32 & i1 ,
const sal_Int32 & i2)
const
210 static void * SAL_CALL
operator new(
size_t nSize )
212 static void SAL_CALL
operator delete(
void * pMem )
214 static void * SAL_CALL
operator new( size_t,
void * pMem )
216 static void SAL_CALL
operator delete(
void *,
void * )
235 css::uno::Sequence< sal_Int32 > SAL_CALL getContainedTypes()
const;
251 sal_Int32 SAL_CALL addInterface(
252 const sal_Int32 & rKey,
253 const css::uno::Reference< css::uno::XInterface > & r );
262 sal_Int32 SAL_CALL removeInterface(
263 const sal_Int32 & rKey,
264 const css::uno::Reference< css::uno::XInterface > & rxIFace );
270 void SAL_CALL disposeAndClear(
const css::lang::EventObject & rEvt );
274 void SAL_CALL clear();
310 virtual void fireEvents(
311 sal_Int32 * pnHandles,
314 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
316 #if !defined _MSC_VER // public -> protected changes mangled names there
337 public css::beans::XMultiPropertySet,
338 public css::beans::XFastPropertySet,
339 public css::beans::XPropertySet
395 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
407 css::uno::Sequence< css::uno::Type > getTypes();
415 void SAL_CALL disposing();
422 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName,
const css::uno::Any& aValue )
SAL_OVERRIDE;
427 virtual css::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
SAL_OVERRIDE;
429 virtual void SAL_CALL addPropertyChangeListener(
430 const ::rtl::OUString& aPropertyName,
431 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener)
SAL_OVERRIDE;
434 virtual void SAL_CALL removePropertyChangeListener(
435 const ::rtl::OUString& aPropertyName,
436 const css::uno::Reference < css::beans::XPropertyChangeListener >& aListener)
SAL_OVERRIDE;
439 virtual void SAL_CALL addVetoableChangeListener(
440 const ::rtl::OUString& aPropertyName,
441 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener)
SAL_OVERRIDE;
444 virtual void SAL_CALL removeVetoableChangeListener(
445 const ::rtl::OUString& aPropertyName,
446 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener )
SAL_OVERRIDE;
455 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle,
const css::uno::Any& rValue )
SAL_OVERRIDE;
461 virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
SAL_OVERRIDE;
464 virtual void SAL_CALL setPropertyValues(
465 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
466 const css::uno::Sequence< css::uno::Any >& Values )
SAL_OVERRIDE;
468 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(
469 const css::uno::Sequence< ::rtl::OUString >& PropertyNames )
SAL_OVERRIDE;
471 virtual void SAL_CALL addPropertiesChangeListener(
472 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
473 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
SAL_OVERRIDE;
475 virtual void SAL_CALL removePropertiesChangeListener(
476 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
SAL_OVERRIDE;
478 virtual void SAL_CALL firePropertiesChangeEvent(
479 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
480 const css::uno::Reference< css::beans::XPropertiesChangeListener > & Listener )
SAL_OVERRIDE;
485 static css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
498 sal_Int32 * pnHandles,
499 const css::uno::Any * pNewValues,
500 const css::uno::Any * pOldValues,
513 void SAL_CALL setFastPropertyValues(
515 sal_Int32 * pHandles,
516 const css::uno::Any * pValues,
517 sal_Int32 nHitCount );
540 virtual sal_Bool SAL_CALL convertFastPropertyValue(
541 css::uno::Any & rConvertedValue,
542 css::uno::Any & rOldValue,
544 const css::uno::Any& rValue ) = 0;
565 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
567 const css::uno::Any& rValue ) = 0;
573 virtual void SAL_CALL getFastPropertyValue(
574 css::uno::Any& rValue,
575 sal_Int32 nHandle )
const = 0;
595 void setDependentFastPropertyValue(
597 const css::uno::Any& i_value
620 SAL_DELETED_FUNCTION;
626 sal_Int32* i_handles,
627 const css::uno::Any * i_newValues,
628 const css::uno::Any * i_oldValues,
632 #if defined _MSC_VER // public -> protected changes mangled names there
651 public css::beans::XPropertySetOption
661 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
675 #if defined _MSC_VER // public -> protected changes mangled names there
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:650
Impl *const m_pReserved
reserved for future use.
Definition: propshlp.hxx:611
void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:173
unsigned char sal_Bool
Definition: types.h:18
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:601
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:182
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:206
Definition: propshlp.hxx:191
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XPropertyChangedListener.
Definition: propshlp.hxx:605
sal_Int32 keyType
Definition: propshlp.hxx:276
~IEventNotificationHook()
Definition: propshlp.hxx:319
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition: propshlp.hxx:336
Definition: propshlp.hxx:197
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:567
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:12
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
A container of interfaces.
Definition: interfacecontainer.h:111
This interface is used by the OPropertyHelper, to access the property description.
Definition: propshlp.hxx:30
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const
Definition: propshlp.hxx:193
You can use this helper class to map a XPropertySet-Interface to a XFast- or a XMultiPropertySet inte...
Definition: propshlp.hxx:96
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:609
A mutual exclusion synchronization object.
Definition: mutex.hxx:15
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
size_t operator()(const sal_Int32 &i) const
Definition: propshlp.hxx:199
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:371
An interface to extend event notification actions.
Definition: propshlp.hxx:288
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:419
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:358