20 #ifndef INCLUDED_CPPUHELPER_PROPSHLP_HXX 21 #define INCLUDED_CPPUHELPER_PROPSHLP_HXX 27 #include "com/sun/star/beans/XPropertySet.hpp" 28 #include "com/sun/star/beans/XPropertySetOption.hpp" 29 #include "com/sun/star/beans/XMultiPropertySet.hpp" 30 #include "com/sun/star/beans/XFastPropertySet.hpp" 50 static void * SAL_CALL
operator new(
size_t nSize )
52 static void SAL_CALL
operator delete(
void * pMem )
54 static void * SAL_CALL
operator new( size_t,
void * pMem )
56 static void SAL_CALL
operator delete(
void *,
void * )
75 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
76 ::
rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle ) = 0;
80 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() = 0;
86 virtual css::beans::Property SAL_CALL getPropertyByName(
87 const ::rtl::OUString& rPropertyName ) = 0;
92 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName) = 0;
98 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName ) = 0;
104 virtual sal_Int32 SAL_CALL fillHandles(
105 sal_Int32 * pHandles,
const css::uno::Sequence< ::rtl::OUString > & rPropNames ) = 0;
124 css::beans::Property *pProps,
125 sal_Int32 nElements ,
135 const css::uno::Sequence< css::beans::Property > & aProps,
141 sal_Int32 SAL_CALL getCount()
const;
154 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
159 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties()
SAL_OVERRIDE;
165 virtual css::beans::Property SAL_CALL getPropertyByName(
177 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName )
SAL_OVERRIDE;
183 virtual sal_Int32 SAL_CALL fillHandles(
184 sal_Int32 * pHandles,
const css::uno::Sequence< ::rtl::OUString > & rPropNames )
SAL_OVERRIDE;
195 css::uno::Sequence< css::beans::Property > aInfos;
209 bool operator()(
const sal_Int32 & i1 ,
const sal_Int32 & i2)
const 226 static void * SAL_CALL
operator new(
size_t nSize )
228 static void SAL_CALL
operator delete(
void * pMem )
230 static void * SAL_CALL
operator new( size_t,
void * pMem )
232 static void SAL_CALL
operator delete(
void *,
void * )
251 css::uno::Sequence< sal_Int32 > SAL_CALL getContainedTypes()
const;
267 sal_Int32 SAL_CALL addInterface(
268 const sal_Int32 & rKey,
269 const css::uno::Reference< css::uno::XInterface > & r );
278 sal_Int32 SAL_CALL removeInterface(
279 const sal_Int32 & rKey,
280 const css::uno::Reference< css::uno::XInterface > & rxIFace );
286 void SAL_CALL disposeAndClear(
const css::lang::EventObject & rEvt );
290 void SAL_CALL clear();
327 sal_Int32 * pnHandles,
330 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
332 #if !defined _MSC_VER // public -> protected changes mangled names there 334 #elif defined __clang__ 335 #pragma clang diagnostic push 336 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 340 #if defined _MSC_VER && defined __clang__ 341 #pragma clang diagnostic pop 359 public css::beans::XMultiPropertySet,
360 public css::beans::XFastPropertySet,
361 public css::beans::XPropertySet
417 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
429 css::uno::Sequence< css::uno::Type > getTypes();
437 void SAL_CALL disposing();
444 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName,
const css::uno::Any& aValue )
SAL_OVERRIDE;
449 virtual css::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
SAL_OVERRIDE;
451 virtual void SAL_CALL addPropertyChangeListener(
452 const ::rtl::OUString& aPropertyName,
453 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener)
SAL_OVERRIDE;
456 virtual void SAL_CALL removePropertyChangeListener(
457 const ::rtl::OUString& aPropertyName,
458 const css::uno::Reference < css::beans::XPropertyChangeListener >& aListener)
SAL_OVERRIDE;
461 virtual void SAL_CALL addVetoableChangeListener(
462 const ::rtl::OUString& aPropertyName,
463 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener)
SAL_OVERRIDE;
466 virtual void SAL_CALL removeVetoableChangeListener(
467 const ::rtl::OUString& aPropertyName,
468 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener )
SAL_OVERRIDE;
477 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle,
const css::uno::Any& rValue )
SAL_OVERRIDE;
483 virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
SAL_OVERRIDE;
486 virtual void SAL_CALL setPropertyValues(
487 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
488 const css::uno::Sequence< css::uno::Any >& Values )
SAL_OVERRIDE;
490 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(
491 const css::uno::Sequence< ::rtl::OUString >& PropertyNames )
SAL_OVERRIDE;
493 virtual void SAL_CALL addPropertiesChangeListener(
494 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
495 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
SAL_OVERRIDE;
497 virtual void SAL_CALL removePropertiesChangeListener(
498 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
SAL_OVERRIDE;
500 virtual void SAL_CALL firePropertiesChangeEvent(
501 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
502 const css::uno::Reference< css::beans::XPropertiesChangeListener > & Listener )
SAL_OVERRIDE;
507 static css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
520 sal_Int32 * pnHandles,
521 const css::uno::Any * pNewValues,
522 const css::uno::Any * pOldValues,
535 void SAL_CALL setFastPropertyValues(
537 sal_Int32 * pHandles,
538 const css::uno::Any * pValues,
539 sal_Int32 nHitCount );
562 virtual sal_Bool SAL_CALL convertFastPropertyValue(
563 css::uno::Any & rConvertedValue,
564 css::uno::Any & rOldValue,
566 const css::uno::Any& rValue ) = 0;
587 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
589 const css::uno::Any& rValue ) = 0;
595 virtual void SAL_CALL getFastPropertyValue(
596 css::uno::Any& rValue,
597 sal_Int32 nHandle )
const = 0;
617 void setDependentFastPropertyValue(
619 const css::uno::Any& i_value
648 sal_Int32* i_handles,
649 const css::uno::Any * i_newValues,
650 const css::uno::Any * i_oldValues,
654 #if defined _MSC_VER // public -> protected changes mangled names there 661 #if defined __clang__ 662 #pragma clang diagnostic push 663 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 672 #if defined __clang__ 673 #pragma clang diagnostic pop 685 public css::beans::XPropertySetOption
695 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
709 #if defined _MSC_VER // public -> protected changes mangled names there #define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:409
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:436
A container of interfaces.
Definition: interfacecontainer.h:128
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
sal_Int32 keyType
Definition: propshlp.hxx:292
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:396
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XProperyChangedListener.
Definition: propshlp.hxx:627
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:578
This interface is used by the OPropertyHelper, to access the property description.
Definition: propshlp.hxx:46
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:631
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
An interface to extend event notification actions.
Definition: propshlp.hxx:304
unsigned char sal_Bool
Definition: types.h:38
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const
Definition: propshlp.hxx:209
A mutual exclusion synchronization object.
Definition: mutex.hxx:31
Definition: propshlp.hxx:207
Impl *const m_pReserved
reserved for future use.
Definition: propshlp.hxx:633
~IEventNotificationHook()
Definition: propshlp.hxx:338
size_t operator()(const sal_Int32 &i) const
Definition: propshlp.hxx:215
Definition: Enterable.hxx:26
virtual void fireEvents(sal_Int32 *pnHandles, sal_Int32 nCount, sal_Bool bVetoable, bool bIgnoreRuntimeExceptionsWhileFiring)=0
Method to be called by OPropertySetHelper::fire.
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:684
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:222
You can use this helper class to map a XPropertySet-Interface to a XFast- or a XMultiPropertySet inte...
Definition: propshlp.hxx:112
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
This String class provides base functionality for C++ like Unicode character array handling.
Definition: ustring.hxx:126
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:623
void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:189
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition: propshlp.hxx:358
Definition: propshlp.hxx:213