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();
330 sal_Int32 * pnHandles,
333 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
335 #if !defined _MSC_VER // public -> protected changes mangled names there 337 #elif defined __clang__ 338 #pragma clang diagnostic push 339 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 343 #if defined _MSC_VER && defined __clang__ 344 #pragma clang diagnostic pop 362 public css::beans::XMultiPropertySet,
363 public css::beans::XFastPropertySet,
364 public css::beans::XPropertySet
420 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
432 css::uno::Sequence< css::uno::Type > getTypes();
440 void SAL_CALL disposing();
447 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName,
const css::uno::Any& aValue )
SAL_OVERRIDE;
452 virtual css::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
SAL_OVERRIDE;
454 virtual void SAL_CALL addPropertyChangeListener(
455 const ::rtl::OUString& aPropertyName,
456 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener)
SAL_OVERRIDE;
459 virtual void SAL_CALL removePropertyChangeListener(
460 const ::rtl::OUString& aPropertyName,
461 const css::uno::Reference < css::beans::XPropertyChangeListener >& aListener)
SAL_OVERRIDE;
464 virtual void SAL_CALL addVetoableChangeListener(
465 const ::rtl::OUString& aPropertyName,
466 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener)
SAL_OVERRIDE;
469 virtual void SAL_CALL removeVetoableChangeListener(
470 const ::rtl::OUString& aPropertyName,
471 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener )
SAL_OVERRIDE;
480 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle,
const css::uno::Any& rValue )
SAL_OVERRIDE;
486 virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
SAL_OVERRIDE;
489 virtual void SAL_CALL setPropertyValues(
490 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
491 const css::uno::Sequence< css::uno::Any >& Values )
SAL_OVERRIDE;
493 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(
494 const css::uno::Sequence< ::rtl::OUString >& PropertyNames )
SAL_OVERRIDE;
496 virtual void SAL_CALL addPropertiesChangeListener(
497 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
498 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
SAL_OVERRIDE;
500 virtual void SAL_CALL removePropertiesChangeListener(
501 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
SAL_OVERRIDE;
503 virtual void SAL_CALL firePropertiesChangeEvent(
504 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
505 const css::uno::Reference< css::beans::XPropertiesChangeListener > & Listener )
SAL_OVERRIDE;
510 static css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
523 sal_Int32 * pnHandles,
524 const css::uno::Any * pNewValues,
525 const css::uno::Any * pOldValues,
538 void SAL_CALL setFastPropertyValues(
540 sal_Int32 * pHandles,
541 const css::uno::Any * pValues,
542 sal_Int32 nHitCount );
565 virtual sal_Bool SAL_CALL convertFastPropertyValue(
566 css::uno::Any & rConvertedValue,
567 css::uno::Any & rOldValue,
569 const css::uno::Any& rValue ) = 0;
590 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
592 const css::uno::Any& rValue ) = 0;
598 virtual void SAL_CALL getFastPropertyValue(
599 css::uno::Any& rValue,
600 sal_Int32 nHandle )
const = 0;
620 void setDependentFastPropertyValue(
622 const css::uno::Any& i_value
651 sal_Int32* i_handles,
652 const css::uno::Any * i_newValues,
653 const css::uno::Any * i_oldValues,
657 #if defined _MSC_VER // public -> protected changes mangled names there 664 #pragma warning(push) 665 #pragma warning(disable: 4265) 666 #if defined __clang__ 667 #pragma clang diagnostic push 668 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 677 #if defined __clang__ 678 #pragma clang diagnostic pop 691 public css::beans::XPropertySetOption
701 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
715 #if defined _MSC_VER // public -> protected changes mangled names there void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:189
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:415
This interface is used by the OPropertyHelper, to access the property description.
Definition: propshlp.hxx:46
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
A mutual exclusion synchronization object.
Definition: mutex.hxx:30
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:634
An interface to extend event notification actions.
Definition: propshlp.hxx:304
Definition: propshlp.hxx:207
virtual void fireEvents(sal_Int32 *pnHandles, sal_Int32 nCount, sal_Bool bVetoable, bool bIgnoreRuntimeExceptionsWhileFiring)=0
Method to be called by OPropertySetHelper::fire.
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:402
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:690
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:606
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:222
~IEventNotificationHook()
Definition: propshlp.hxx:341
You can use this helper class to map a XPropertySet-Interface to a XFast- or a XMultiPropertySet inte...
Definition: propshlp.hxx:112
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:121
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition: propshlp.hxx:361
unsigned char sal_Bool
Definition: types.h:39
Impl *const m_pReserved
reserved for future use.
Definition: propshlp.hxx:636
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XProperyChangedListener.
Definition: propshlp.hxx:630
size_t operator()(const sal_Int32 &i) const
Definition: propshlp.hxx:215
sal_Int32 keyType
Definition: propshlp.hxx:292
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:435
A container of interfaces.
Definition: interfacecontainer.h:127
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:626
Definition: Enterable.hxx:26
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const
Definition: propshlp.hxx:209
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
Definition: propshlp.hxx:213