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 )
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(
163 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties(
void)
SAL_OVERRIDE;
169 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(
170 const ::rtl::OUString& rPropertyName )
171 throw (::com::sun::star::beans::UnknownPropertyException)
SAL_OVERRIDE;
182 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName )
SAL_OVERRIDE;
188 virtual sal_Int32 SAL_CALL fillHandles(
189 sal_Int32 * pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames )
SAL_OVERRIDE;
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;
336 virtual void fireEvents(
337 sal_Int32 * pnHandles,
340 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
342 #if !defined _MSC_VER // public -> protected changes mangled names there
364 public ::com::sun::star::beans::XMultiPropertySet,
365 public ::com::sun::star::beans::XFastPropertySet,
366 public ::com::sun::star::beans::XPropertySet
422 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
428 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
429 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
434 throw(::com::sun::star::uno::RuntimeException);
449 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName, const ::com::sun::star::uno::Any& aValue )
450 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;
455 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
456 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
458 virtual void SAL_CALL addPropertyChangeListener(
459 const ::rtl::OUString& aPropertyName,
460 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener)
461 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
464 virtual void SAL_CALL removePropertyChangeListener(
465 const ::rtl::OUString& aPropertyName,
466 const ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertyChangeListener >& aListener)
467 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
470 virtual void SAL_CALL addVetoableChangeListener(
471 const ::rtl::OUString& aPropertyName,
472 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener)
473 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
476 virtual void SAL_CALL removeVetoableChangeListener(
477 const ::rtl::OUString& aPropertyName,
478 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & aListener )
479 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
488 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
489 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;
495 virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
496 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
499 virtual void SAL_CALL setPropertyValues(
500 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
501 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values )
502 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;
504 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues(
505 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames )
506 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
508 virtual void SAL_CALL addPropertiesChangeListener(
509 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
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 removePropertiesChangeListener(
514 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& Listener )
515 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
517 virtual void SAL_CALL firePropertiesChangeEvent(
518 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
519 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener > & Listener )
520 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
525 static ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
538 sal_Int32 * pnHandles,
539 const ::com::sun::star::uno::Any * pNewValues,
540 const ::com::sun::star::uno::Any * pOldValues,
553 void SAL_CALL setFastPropertyValues(
555 sal_Int32 * pHandles,
556 const ::com::sun::star::uno::Any * pValues,
557 sal_Int32 nHitCount )
558 SAL_THROW( (::com::sun::star::uno::Exception) );
578 virtual sal_Bool SAL_CALL convertFastPropertyValue(
582 const ::com::sun::star::uno::Any& rValue )
583 throw (::com::sun::star::lang::IllegalArgumentException) = 0;
603 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
605 const ::com::sun::star::uno::Any& rValue )
606 throw (::com::sun::star::uno::Exception,
613 virtual void SAL_CALL getFastPropertyValue(
615 sal_Int32 nHandle )
const = 0;
635 void setDependentFastPropertyValue(
637 const ::com::sun::star::uno::Any& i_value
665 sal_Int32* i_handles,
666 const ::
com::sun::star::uno::Any * i_newValues,
667 const ::
com::sun::star::uno::Any * i_oldValues,
671 #if defined _MSC_VER // public -> protected changes mangled names there
678 #pragma warning(push)
679 #pragma warning(disable: 4265)
694 public ::com::sun::star::beans::XPropertySetOption
704 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
707 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
708 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
711 virtual void SAL_CALL enableChangeListenerNotification(
sal_Bool bEnable )
712 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
720 #if defined _MSC_VER // public -> protected changes mangled names there
sal_Int32 keyType
Definition: propshlp.hxx:299
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const SAL_THROW(())
Definition: propshlp.hxx:215
This interface is used by the OPropertyHelper, to access the property description.
Definition: propshlp.hxx:47
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
void virtual setFastPropertyValues(sal_Int32 nSeqLen, sal_Int32 *pHandles, const ::com::sun::star::uno::Any *pValues, sal_Int32 nHitCount) SAL_THROW((IPropertyArrayHelper getInfoHelper)()=0
Set multiple properties with the handles.
Definition: propshlp.hxx:564
const std::auto_ptr< Impl > m_pReserved
reserved for future use.
Definition: propshlp.hxx:651
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition: propshlp.hxx:363
unsigned char sal_Bool
Definition: types.h:46
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
An interface to extend event notification actions.
Definition: propshlp.hxx:311
You can use this helper class to map a XPropertySet-Interface to a XFast- or a XMultiPropertySet inte...
Definition: propshlp.hxx:114
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:227
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:641
void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:194
A container of interfaces.
Definition: interfacecontainer.h:117
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
~IEventNotificationHook()
Definition: propshlp.hxx:345
Definition: propshlp.hxx:213
Definition: conditn.hxx:30
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:426
Definition: Enterable.hxx:26
C++ class representing an IDL any.
Definition: Any.h:46
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
#define sal_True
Definition: types.h:48
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XProperyChangedListener.
Definition: propshlp.hxx:645
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:693
A mutual exclusion synchronization object.
Definition: mutex.hxx:32
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
Definition: propshlp.hxx:219
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:649
size_t operator()(const sal_Int32 &i) const SAL_THROW(())
Definition: propshlp.hxx:221