20 #ifndef _CPPUHELPER_PROPSHLP_HXX
21 #define _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 )
SAL_THROW(())
53 inline static void SAL_CALL
operator delete(
void * pMem )
SAL_THROW(())
55 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
SAL_THROW(())
57 inline static void SAL_CALL
operator delete(
void *,
void * )
SAL_THROW(())
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 ,
138 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > & aProps,
145 sal_Int32 SAL_CALL getCount()
const SAL_THROW(());
158 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
159 ::
rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle );
163 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(
void);
169 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(
170 const ::rtl::OUString& rPropertyName )
171 throw (::com::sun::star::beans::UnknownPropertyException);
176 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName);
182 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName );
188 virtual sal_Int32 SAL_CALL fillHandles(
189 sal_Int32 * pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames );
231 inline static void * SAL_CALL
operator new(
size_t nSize )
SAL_THROW(())
233 inline static void SAL_CALL
operator delete(
void * pMem )
SAL_THROW(())
235 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
SAL_THROW(())
237 inline static void SAL_CALL
operator delete(
void *,
void * )
SAL_THROW(())
256 ::com::sun::star::uno::
Sequence< sal_Int32 > SAL_CALL getContainedTypes() const SAL_THROW(());
272 sal_Int32 SAL_CALL addInterface(
273 const sal_Int32 & rKey,
274 const ::com::sun::star::uno::
Reference< ::com::sun::star::uno::XInterface > & r )
284 sal_Int32 SAL_CALL removeInterface(
285 const sal_Int32 & rKey,
286 const ::com::sun::star::uno::
Reference< ::com::sun::star::uno::XInterface > & rxIFace )
293 void SAL_CALL disposeAndClear( const ::com::sun::star::lang::EventObject & rEvt ) SAL_THROW(());
297 void SAL_CALL clear() SAL_THROW(());
302 ::osl::Mutex & rMutex;
323 virtual void fireEvents(
324 sal_Int32 * pnHandles,
327 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
329 #if !defined _MSC_VER // public -> protected changes mangled names there
351 public ::com::sun::star::beans::XMultiPropertySet,
352 public ::com::sun::star::beans::XFastPropertySet,
353 public ::com::sun::star::beans::XPropertySet
409 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
415 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
416 throw (::com::sun::star::uno::RuntimeException);
421 throw(::com::sun::star::uno::RuntimeException);
436 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName, const ::com::sun::star::uno::Any& aValue )
437 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);
442 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
443 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
445 virtual void SAL_CALL addPropertyChangeListener(
446 const ::rtl::OUString& aPropertyName,
447 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener)
448 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
451 virtual void SAL_CALL removePropertyChangeListener(
452 const ::rtl::OUString& aPropertyName,
453 const ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertyChangeListener >& aListener)
454 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
457 virtual void SAL_CALL addVetoableChangeListener(
458 const ::rtl::OUString& aPropertyName,
459 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener)
460 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
463 virtual void SAL_CALL removeVetoableChangeListener(
464 const ::rtl::OUString& aPropertyName,
465 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & aListener )
466 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
475 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
476 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);
482 virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
483 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
486 virtual void SAL_CALL setPropertyValues(
487 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
488 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values )
489 throw(::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::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues(
492 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames )
493 throw(::com::sun::star::uno::RuntimeException);
495 virtual void SAL_CALL addPropertiesChangeListener(
496 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
497 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& Listener )
498 throw(::com::sun::star::uno::RuntimeException);
500 virtual void SAL_CALL removePropertiesChangeListener(
501 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& Listener )
502 throw(::com::sun::star::uno::RuntimeException);
504 virtual void SAL_CALL firePropertiesChangeEvent(
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);
512 static ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
525 sal_Int32 * pnHandles,
526 const ::com::sun::star::uno::Any * pNewValues,
527 const ::com::sun::star::uno::Any * pOldValues,
540 void SAL_CALL setFastPropertyValues(
542 sal_Int32 * pHandles,
543 const ::com::sun::star::uno::Any * pValues,
544 sal_Int32 nHitCount )
545 SAL_THROW( (::com::sun::star::uno::Exception) );
564 virtual sal_Bool SAL_CALL convertFastPropertyValue(
568 const ::com::sun::star::uno::Any& rValue )
569 throw (::com::sun::star::lang::IllegalArgumentException) = 0;
589 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
591 const ::com::sun::star::uno::Any& rValue )
592 throw (::com::sun::star::uno::Exception) = 0;
598 virtual void SAL_CALL getFastPropertyValue(
600 sal_Int32 nHandle )
const = 0;
620 void setDependentFastPropertyValue(
622 const ::com::sun::star::uno::Any& i_value
650 sal_Int32* i_handles,
651 const ::com::sun::star::uno::Any * i_newValues,
652 const ::com::sun::star::uno::Any * i_oldValues,
656 #if defined _MSC_VER // public -> protected changes mangled names there
663 #pragma warning(push)
664 #pragma warning(disable: 4265)
679 public ::com::sun::star::beans::XPropertySetOption
689 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
692 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
693 throw (::com::sun::star::uno::RuntimeException);
696 virtual void SAL_CALL enableChangeListenerNotification(
sal_Bool bEnable )
697 throw(::com::sun::star::uno::RuntimeException);
705 #if defined _MSC_VER // public -> protected changes mangled names there