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>
51 inline static void * SAL_CALL
operator new(
size_t nSize )
53 inline static void SAL_CALL
operator delete(
void * pMem )
55 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
57 inline static void SAL_CALL
operator delete(
void *,
void * )
76 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
77 ::
rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle ) = 0;
81 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(
void) = 0;
87 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(
88 const ::rtl::OUString& rPropertyName )
89 throw (::com::sun::star::beans::UnknownPropertyException) = 0;
94 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName) = 0;
100 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName ) = 0;
106 virtual sal_Int32 SAL_CALL fillHandles(
107 sal_Int32 * pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames ) = 0;
126 ::com::sun::star::beans::Property *pProps,
127 sal_Int32 nElements ,
137 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > & aProps,
143 sal_Int32 SAL_CALL getCount()
const;
156 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
161 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(
void)
SAL_OVERRIDE;
167 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(
168 const ::rtl::OUString& rPropertyName )
169 throw (::com::sun::star::beans::UnknownPropertyException)
SAL_OVERRIDE;
180 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName )
SAL_OVERRIDE;
186 virtual sal_Int32 SAL_CALL fillHandles(
187 sal_Int32 * pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames )
SAL_OVERRIDE;
213 bool operator()(
const sal_Int32 & i1 ,
const sal_Int32 & i2)
const
229 inline static void * SAL_CALL
operator new(
size_t nSize )
231 inline static void SAL_CALL
operator delete(
void * pMem )
233 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
235 inline static void SAL_CALL
operator delete(
void *,
void * )
270 sal_Int32 SAL_CALL addInterface(
271 const sal_Int32 & rKey,
272 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & r );
281 sal_Int32 SAL_CALL removeInterface(
282 const sal_Int32 & rKey,
283 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & rxIFace );
289 void SAL_CALL disposeAndClear( const ::com::sun::star::lang::EventObject & rEvt );
293 void SAL_CALL clear();
333 sal_Int32 * pnHandles,
336 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
338 #if !defined _MSC_VER // public -> protected changes mangled names there
360 public ::com::sun::star::beans::XMultiPropertySet,
361 public ::com::sun::star::beans::XFastPropertySet,
362 public ::com::sun::star::beans::XPropertySet
418 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
424 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
425 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
430 throw(::com::sun::star::uno::RuntimeException);
438 void SAL_CALL disposing();
445 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName, const ::com::sun::star::uno::Any& aValue )
446 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
451 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
452 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
454 virtual void SAL_CALL addPropertyChangeListener(
455 const ::rtl::OUString& aPropertyName,
456 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener)
457 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
460 virtual void SAL_CALL removePropertyChangeListener(
461 const ::rtl::OUString& aPropertyName,
462 const ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertyChangeListener >& aListener)
463 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
466 virtual void SAL_CALL addVetoableChangeListener(
467 const ::rtl::OUString& aPropertyName,
468 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener)
469 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
472 virtual void SAL_CALL removeVetoableChangeListener(
473 const ::rtl::OUString& aPropertyName,
474 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & aListener )
475 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
484 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
485 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
491 virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
492 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
495 virtual void SAL_CALL setPropertyValues(
496 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
497 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values )
498 throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
500 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues(
501 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames )
502 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
504 virtual void SAL_CALL addPropertiesChangeListener(
505 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
506 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& Listener )
507 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
509 virtual void SAL_CALL removePropertiesChangeListener(
510 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& Listener )
511 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
513 virtual void SAL_CALL firePropertiesChangeEvent(
514 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
515 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener > & Listener )
516 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
521 static ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
534 sal_Int32 * pnHandles,
535 const ::com::sun::star::uno::Any * pNewValues,
536 const ::com::sun::star::uno::Any * pOldValues,
549 void SAL_CALL setFastPropertyValues(
551 sal_Int32 * pHandles,
552 const ::com::sun::star::uno::Any * pValues,
553 sal_Int32 nHitCount );
573 virtual sal_Bool SAL_CALL convertFastPropertyValue(
577 const ::com::sun::star::uno::Any& rValue )
578 throw (css::lang::IllegalArgumentException,
579 css::beans::UnknownPropertyException,
580 css::uno::RuntimeException, std::exception) = 0;
600 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
602 const ::com::sun::star::uno::Any& rValue )
603 throw (::com::sun::star::uno::Exception,
610 virtual void SAL_CALL getFastPropertyValue(
612 sal_Int32 nHandle )
const = 0;
632 void setDependentFastPropertyValue(
634 const ::com::sun::star::uno::Any& i_value
662 sal_Int32* i_handles,
663 const ::com::sun::star::uno::Any * i_newValues,
664 const ::com::sun::star::uno::Any * i_oldValues,
668 #if defined _MSC_VER // public -> protected changes mangled names there
675 #pragma warning(push)
676 #pragma warning(disable: 4265)
691 public ::com::sun::star::beans::XPropertySetOption
701 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
704 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
705 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
708 virtual void SAL_CALL enableChangeListenerNotification(
sal_Bool bEnable )
709 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
717 #if defined _MSC_VER // public -> protected changes mangled names there
This interface is used by the OPropertyHelper, to access the property description.
Definition: propshlp.hxx:47
unsigned char sal_Bool
Definition: types.h:48
sal_Int32 keyType
Definition: propshlp.hxx:295
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:690
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:114
A mutual exclusion synchronization object.
Definition: mutex.hxx:30
const std::auto_ptr< Impl > m_pReserved
reserved for future use.
Definition: propshlp.hxx:648
An interface to extend event notification actions.
Definition: propshlp.hxx:307
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition: propshlp.hxx:359
#define sal_True
Definition: types.h:50
~IEventNotificationHook()
Definition: propshlp.hxx:341
Definition: propshlp.hxx:211
void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:192
C++ class representing an IDL any.
Definition: Any.h:49
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
A container of interfaces.
Definition: interfacecontainer.h:120
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:638
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:646
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:81
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:225
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:427
virtual void fireEvents(sal_Int32 *pnHandles, sal_Int32 nCount, sal_Bool bVetoable, bool bIgnoreRuntimeExceptionsWhileFiring)=0
Method to be called by OPropertySetHelper::fire.
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:407
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:219
inline::com::sun::star::uno::Any queryInterface(const ::com::sun::star::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
Definition: propshlp.hxx:217
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XProperyChangedListener.
Definition: propshlp.hxx:642