29 #ifndef _CPPUHELPER_PROPSHLP_HXX
30 #define _CPPUHELPER_PROPSHLP_HXX
36 #include <com/sun/star/beans/XPropertySet.hpp>
37 #include <com/sun/star/beans/XPropertySetOption.hpp>
38 #include <com/sun/star/beans/XMultiPropertySet.hpp>
39 #include <com/sun/star/beans/XFastPropertySet.hpp>
60 inline static void * SAL_CALL
operator new(
size_t nSize )
SAL_THROW(())
62 inline static void SAL_CALL
operator delete(
void * pMem )
SAL_THROW(())
64 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
SAL_THROW(())
66 inline static void SAL_CALL
operator delete(
void *,
void * )
SAL_THROW(())
85 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
86 ::
rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle ) = 0;
90 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(
void) = 0;
96 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(
97 const ::rtl::OUString& rPropertyName )
98 throw (::com::sun::star::beans::UnknownPropertyException) = 0;
103 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName) = 0;
109 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName ) = 0;
115 virtual sal_Int32 SAL_CALL fillHandles(
116 sal_Int32 * pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames ) = 0;
135 ::com::sun::star::beans::Property *pProps,
136 sal_Int32 nElements ,
147 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > & aProps,
154 sal_Int32 SAL_CALL getCount()
const SAL_THROW(());
167 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
168 ::
rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle );
172 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(
void);
178 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(
179 const ::rtl::OUString& rPropertyName )
180 throw (::com::sun::star::beans::UnknownPropertyException);
185 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName);
191 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName );
197 virtual sal_Int32 SAL_CALL fillHandles(
198 sal_Int32 * pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames );
240 inline static void * SAL_CALL
operator new(
size_t nSize )
SAL_THROW(())
242 inline static void SAL_CALL
operator delete(
void * pMem )
SAL_THROW(())
244 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
SAL_THROW(())
246 inline static void SAL_CALL
operator delete(
void *,
void * )
SAL_THROW(())
265 ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL getContainedTypes() const SAL_THROW(());
281 sal_Int32 SAL_CALL addInterface(
282 const sal_Int32 & rKey,
283 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & r )
293 sal_Int32 SAL_CALL removeInterface(
294 const sal_Int32 & rKey,
295 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & rxIFace )
302 void SAL_CALL disposeAndClear( const ::com::sun::star::lang::EventObject & rEvt ) SAL_THROW(());
306 void SAL_CALL clear() SAL_THROW(());
311 ::osl::Mutex & rMutex;
332 virtual void fireEvents(
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);
430 throw(::com::sun::star::uno::RuntimeException);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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 )
554 SAL_THROW( (::com::sun::star::uno::Exception) );
573 virtual sal_Bool SAL_CALL convertFastPropertyValue(
577 const ::com::sun::star::uno::Any& rValue )
578 throw (::com::sun::star::lang::IllegalArgumentException) = 0;
598 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
600 const ::com::sun::star::uno::Any& rValue )
601 throw (::com::sun::star::uno::Exception) = 0;
607 virtual void SAL_CALL getFastPropertyValue(
609 sal_Int32 nHandle )
const = 0;
629 void setDependentFastPropertyValue(
631 const ::com::sun::star::uno::Any& i_value
659 sal_Int32* i_handles,
660 const ::com::sun::star::uno::Any * i_newValues,
661 const ::com::sun::star::uno::Any * i_oldValues,
665 #if defined _MSC_VER // public -> protected changes mangled names there
672 #pragma warning(push)
673 #pragma warning(disable: 4265)
688 public ::com::sun::star::beans::XPropertySetOption
698 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
701 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
702 throw (::com::sun::star::uno::RuntimeException);
705 virtual void SAL_CALL enableChangeListenerNotification(
sal_Bool bEnable )
706 throw(::com::sun::star::uno::RuntimeException);
714 #if defined _MSC_VER // public -> protected changes mangled names there