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(
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;
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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) = 0;
612 virtual void SAL_CALL getFastPropertyValue(
614 sal_Int32 nHandle )
const = 0;
634 void setDependentFastPropertyValue(
636 const ::com::sun::star::uno::Any& i_value
664 sal_Int32* i_handles,
665 const ::com::sun::star::uno::Any * i_newValues,
666 const ::com::sun::star::uno::Any * i_oldValues,
670 #if defined _MSC_VER // public -> protected changes mangled names there
677 #pragma warning(push)
678 #pragma warning(disable: 4265)
693 public ::com::sun::star::beans::XPropertySetOption
703 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
706 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type & rType )
707 throw (::com::sun::star::uno::RuntimeException);
710 virtual void SAL_CALL enableChangeListenerNotification(
sal_Bool bEnable )
711 throw(::com::sun::star::uno::RuntimeException);
719 #if defined _MSC_VER // public -> protected changes mangled names there
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:640
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
This interface is used by the OPropertyHelper, to access the property description.
Definition: propshlp.hxx:47
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:227
#define sal_True
Definition: types.h:48
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition: propshlp.hxx:363
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
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:648
size_t operator()(const sal_Int32 &i) const
Definition: propshlp.hxx:221
A container of interfaces.
Definition: interfacecontainer.h:114
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
An interface to extend event notification actions.
Definition: propshlp.hxx:311
~IEventNotificationHook()
Definition: propshlp.hxx:345
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:32
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XProperyChangedListener.
Definition: propshlp.hxx:644
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:423
C++ class representing an IDL any.
Definition: Any.h:46
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const
Definition: propshlp.hxx:215
unsigned char sal_Bool
Definition: types.h:46
Definition: propshlp.hxx:213
sal_Int32 keyType
Definition: propshlp.hxx:299
const std::auto_ptr< Impl > m_pReserved
reserved for future use.
Definition: propshlp.hxx:650
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
Definition: propshlp.hxx:219
void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:194
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:692
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358