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 css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() = 0;
86 virtual css::beans::Property SAL_CALL getPropertyByName(
87 const ::rtl::OUString& rPropertyName )
88 throw (css::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 css::uno::Sequence< ::rtl::OUString > & rPropNames ) = 0;
125 css::beans::Property *pProps,
126 sal_Int32 nElements ,
136 const css::uno::Sequence< css::beans::Property > & aProps,
142 sal_Int32 SAL_CALL getCount()
const;
155 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
160 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties()
SAL_OVERRIDE;
166 virtual css::beans::Property SAL_CALL getPropertyByName(
167 const ::rtl::OUString& rPropertyName )
168 throw (css::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 css::uno::Sequence< ::rtl::OUString > & rPropNames )
SAL_OVERRIDE;
197 css::uno::Sequence< css::beans::Property > aInfos;
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 * )
253 css::uno::Sequence< sal_Int32 > SAL_CALL getContainedTypes()
const;
269 sal_Int32 SAL_CALL addInterface(
270 const sal_Int32 & rKey,
271 const css::uno::Reference< css::uno::XInterface > & r );
280 sal_Int32 SAL_CALL removeInterface(
281 const sal_Int32 & rKey,
282 const css::uno::Reference< css::uno::XInterface > & rxIFace );
288 void SAL_CALL disposeAndClear(
const css::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 css::beans::XMultiPropertySet,
360 public css::beans::XFastPropertySet,
361 public css::beans::XPropertySet
417 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
423 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
424 throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
428 css::uno::Sequence< css::uno::Type > getTypes()
429 throw(css::uno::RuntimeException);
437 void SAL_CALL disposing();
444 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName,
const css::uno::Any& aValue )
445 throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
450 virtual css::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
451 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
453 virtual void SAL_CALL addPropertyChangeListener(
454 const ::rtl::OUString& aPropertyName,
455 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener)
456 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
459 virtual void SAL_CALL removePropertyChangeListener(
460 const ::rtl::OUString& aPropertyName,
461 const css::uno::Reference < css::beans::XPropertyChangeListener >& aListener)
462 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
465 virtual void SAL_CALL addVetoableChangeListener(
466 const ::rtl::OUString& aPropertyName,
467 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener)
468 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
471 virtual void SAL_CALL removeVetoableChangeListener(
472 const ::rtl::OUString& aPropertyName,
473 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener )
474 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
483 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle,
const css::uno::Any& rValue )
484 throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
490 virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
491 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
494 virtual void SAL_CALL setPropertyValues(
495 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
496 const css::uno::Sequence< css::uno::Any >& Values )
497 throw(css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
499 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(
500 const css::uno::Sequence< ::rtl::OUString >& PropertyNames )
501 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
503 virtual void SAL_CALL addPropertiesChangeListener(
504 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
505 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
506 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
508 virtual void SAL_CALL removePropertiesChangeListener(
509 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
510 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
512 virtual void SAL_CALL firePropertiesChangeEvent(
513 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
514 const css::uno::Reference< css::beans::XPropertiesChangeListener > & Listener )
515 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
520 static css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
533 sal_Int32 * pnHandles,
534 const css::uno::Any * pNewValues,
535 const css::uno::Any * pOldValues,
548 void SAL_CALL setFastPropertyValues(
550 sal_Int32 * pHandles,
551 const css::uno::Any * pValues,
552 sal_Int32 nHitCount );
572 virtual sal_Bool SAL_CALL convertFastPropertyValue(
573 css::uno::Any & rConvertedValue,
574 css::uno::Any & rOldValue,
576 const css::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 css::uno::Any& rValue )
602 throw (css::uno::Exception,
609 virtual void SAL_CALL getFastPropertyValue(
610 css::uno::Any& rValue,
611 sal_Int32 nHandle )
const = 0;
631 void setDependentFastPropertyValue(
633 const css::uno::Any& i_value
656 SAL_DELETED_FUNCTION;
662 sal_Int32* i_handles,
663 const
css::uno::Any * i_newValues,
664 const
css::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 css::beans::XPropertySetOption
705 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
708 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
709 throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
712 virtual void SAL_CALL enableChangeListenerNotification(
sal_Bool bEnable )
713 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
722 #if defined _MSC_VER // public -> protected changes mangled names there
sal_Int32 keyType
Definition: propshlp.hxx:294
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:694
size_t operator()(const sal_Int32 &i) const
Definition: propshlp.hxx:218
You can use this helper class to map a XPropertySet-Interface to a XFast- or a XMultiPropertySet inte...
Definition: propshlp.hxx:113
Definition: Enterable.hxx:26
A mutual exclusion synchronization object.
Definition: mutex.hxx:30
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:408
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
Impl *const m_pReserved
reserved for future use.
Definition: propshlp.hxx:647
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
Definition: propshlp.hxx:210
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:421
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
#define sal_True
Definition: types.h:50
Definition: propshlp.hxx:216
void * m_pReserved
reserved for future use.
Definition: propshlp.hxx:191
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const
Definition: propshlp.hxx:212
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
A container of interfaces.
Definition: interfacecontainer.h:127
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition: propshlp.hxx:637
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:645
This interface is used by the OPropertyHelper, to access the property description.
Definition: propshlp.hxx:46
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:106
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition: propshlp.hxx:224
~IEventNotificationHook()
Definition: propshlp.hxx:340
This struct contains the standard variables of a broadcaster.
Definition: interfacecontainer.h:435
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
An interface to extend event notification actions.
Definition: propshlp.hxx:306
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XProperyChangedListener.
Definition: propshlp.hxx:641