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 inline static void * SAL_CALL
operator new(
size_t nSize )
52 inline static void SAL_CALL
operator delete(
void * pMem )
54 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
56 inline 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 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties() = 0;
86 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(
87 const ::rtl::OUString& rPropertyName )
88 throw (::com::sun::star::beans::UnknownPropertyException) = 0;
93 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName) = 0;
99 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName ) = 0;
105 virtual sal_Int32 SAL_CALL fillHandles(
106 sal_Int32 * pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames ) = 0;
125 ::com::sun::star::beans::Property *pProps,
126 sal_Int32 nElements ,
136 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > & aProps,
142 sal_Int32 SAL_CALL getCount()
const;
155 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
160 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties()
SAL_OVERRIDE;
166 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName(
167 const ::rtl::OUString& rPropertyName )
168 throw (::com::sun::star::beans::UnknownPropertyException)
SAL_OVERRIDE;
179 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName )
SAL_OVERRIDE;
185 virtual sal_Int32 SAL_CALL fillHandles(
186 sal_Int32 * pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString > & rPropNames )
SAL_OVERRIDE;
212 bool operator()(
const sal_Int32 & i1 ,
const sal_Int32 & i2)
const
228 inline static void * SAL_CALL
operator new(
size_t nSize )
230 inline static void SAL_CALL
operator delete(
void * pMem )
232 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
234 inline static void SAL_CALL
operator delete(
void *,
void * )
269 sal_Int32 SAL_CALL addInterface(
270 const sal_Int32 & rKey,
271 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & r );
280 sal_Int32 SAL_CALL removeInterface(
281 const sal_Int32 & rKey,
282 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & rxIFace );
288 void SAL_CALL disposeAndClear( const ::com::sun::star::lang::EventObject & rEvt );
292 void SAL_CALL clear();
331 virtual void fireEvents(
332 sal_Int32 * pnHandles,
335 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
337 #if !defined _MSC_VER // public -> protected changes mangled names there
359 public ::com::sun::star::beans::XMultiPropertySet,
360 public ::com::sun::star::beans::XFastPropertySet,
361 public ::com::sun::star::beans::XPropertySet
417 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
423 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
424 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
429 throw(::com::sun::star::uno::RuntimeException);
437 void SAL_CALL disposing();
444 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName, const ::com::sun::star::uno::Any& aValue )
445 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;
450 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
451 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
453 virtual void SAL_CALL addPropertyChangeListener(
454 const ::rtl::OUString& aPropertyName,
455 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener)
456 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
459 virtual void SAL_CALL removePropertyChangeListener(
460 const ::rtl::OUString& aPropertyName,
461 const ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertyChangeListener >& aListener)
462 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
465 virtual void SAL_CALL addVetoableChangeListener(
466 const ::rtl::OUString& aPropertyName,
467 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener)
468 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
471 virtual void SAL_CALL removeVetoableChangeListener(
472 const ::rtl::OUString& aPropertyName,
473 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener > & aListener )
474 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
483 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
484 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;
490 virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
491 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
494 virtual void SAL_CALL setPropertyValues(
495 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
496 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values )
497 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;
499 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues(
500 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames )
501 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
503 virtual void SAL_CALL addPropertiesChangeListener(
504 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
505 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& Listener )
506 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
508 virtual void SAL_CALL removePropertiesChangeListener(
509 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& Listener )
510 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
512 virtual void SAL_CALL firePropertiesChangeEvent(
513 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames,
514 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener > & Listener )
515 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
520 static ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
533 sal_Int32 * pnHandles,
534 const ::com::sun::star::uno::Any * pNewValues,
535 const ::com::sun::star::uno::Any * pOldValues,
548 void SAL_CALL setFastPropertyValues(
550 sal_Int32 * pHandles,
551 const ::com::sun::star::uno::Any * pValues,
552 sal_Int32 nHitCount );
572 virtual sal_Bool SAL_CALL convertFastPropertyValue(
576 const ::com::sun::star::uno::Any& rValue )
577 throw (css::lang::IllegalArgumentException,
578 css::beans::UnknownPropertyException,
579 css::uno::RuntimeException, std::exception) = 0;
599 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
601 const ::com::sun::star::uno::Any& rValue )
602 throw (::com::sun::star::uno::Exception,
609 virtual void SAL_CALL getFastPropertyValue(
611 sal_Int32 nHandle )
const = 0;
631 void setDependentFastPropertyValue(
633 const ::com::sun::star::uno::Any& i_value
656 SAL_DELETED_FUNCTION;
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)
695 public ::com::sun::star::beans::XPropertySetOption
705 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
708 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
709 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
712 virtual void SAL_CALL enableChangeListenerNotification(
sal_Bool bEnable )
713 throw(::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
722 #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:46
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:224
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const
Definition: propshlp.hxx:212
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:404
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:358
unsigned char sal_Bool
Definition: types.h:48
An interface to extend event notification actions.
Definition: propshlp.hxx:306
Impl *const m_pReserved
reserved for future use.
Definition: propshlp.hxx:647
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:637
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:694
You can use this helper class to map a XPropertySet-Interface to a XFast- or a XMultiPropertySet inte...
Definition: propshlp.hxx:113
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
~IEventNotificationHook()
Definition: propshlp.hxx:340
Definition: propshlp.hxx:210
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:417
A mutual exclusion synchronization object.
Definition: mutex.hxx:30
#define sal_True
Definition: types.h:50
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:435
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:645
C++ class representing an IDL any.
Definition: Any.h:49
sal_Int32 keyType
Definition: propshlp.hxx:294
size_t operator()(const sal_Int32 &i) const
Definition: propshlp.hxx:218
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:191
Definition: propshlp.hxx:216
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
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:104
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XProperyChangedListener.
Definition: propshlp.hxx:641
Definition: Enterable.hxx:26
A container of interfaces.
Definition: interfacecontainer.h:126