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;
211 bool operator()(
const sal_Int32 & i1 ,
const sal_Int32 & i2)
const 227 inline static void * SAL_CALL
operator new(
size_t nSize )
229 inline static void SAL_CALL
operator delete(
void * pMem )
231 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
233 inline static void SAL_CALL
operator delete(
void *,
void * )
252 css::uno::Sequence< sal_Int32 > SAL_CALL getContainedTypes()
const;
268 sal_Int32 SAL_CALL addInterface(
269 const sal_Int32 & rKey,
270 const css::uno::Reference< css::uno::XInterface > & r );
279 sal_Int32 SAL_CALL removeInterface(
280 const sal_Int32 & rKey,
281 const css::uno::Reference< css::uno::XInterface > & rxIFace );
287 void SAL_CALL disposeAndClear(
const css::lang::EventObject & rEvt );
291 void SAL_CALL clear();
330 virtual void fireEvents(
331 sal_Int32 * pnHandles,
334 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
336 #if !defined _MSC_VER // public -> protected changes mangled names there 338 #elif defined __clang__ 339 #pragma clang diagnostic push 340 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 344 #if defined _MSC_VER && defined __clang__ 345 #pragma clang diagnostic pop 363 public css::beans::XMultiPropertySet,
364 public css::beans::XFastPropertySet,
365 public css::beans::XPropertySet
421 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
427 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
428 throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
432 css::uno::Sequence< css::uno::Type > getTypes()
433 throw(css::uno::RuntimeException);
441 void SAL_CALL disposing();
448 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName,
const css::uno::Any& aValue )
449 throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
454 virtual css::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName)
455 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
457 virtual void SAL_CALL addPropertyChangeListener(
458 const ::rtl::OUString& aPropertyName,
459 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener)
460 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
463 virtual void SAL_CALL removePropertyChangeListener(
464 const ::rtl::OUString& aPropertyName,
465 const css::uno::Reference < css::beans::XPropertyChangeListener >& aListener)
466 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
469 virtual void SAL_CALL addVetoableChangeListener(
470 const ::rtl::OUString& aPropertyName,
471 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener)
472 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
475 virtual void SAL_CALL removeVetoableChangeListener(
476 const ::rtl::OUString& aPropertyName,
477 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener )
478 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
487 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle,
const css::uno::Any& rValue )
488 throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
494 virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
495 throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
498 virtual void SAL_CALL setPropertyValues(
499 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
500 const css::uno::Sequence< css::uno::Any >& Values )
501 throw(css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
503 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(
504 const css::uno::Sequence< ::rtl::OUString >& PropertyNames )
505 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
507 virtual void SAL_CALL addPropertiesChangeListener(
508 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
509 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
510 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
512 virtual void SAL_CALL removePropertiesChangeListener(
513 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener )
514 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
516 virtual void SAL_CALL firePropertiesChangeEvent(
517 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
518 const css::uno::Reference< css::beans::XPropertiesChangeListener > & Listener )
519 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
524 static css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
537 sal_Int32 * pnHandles,
538 const css::uno::Any * pNewValues,
539 const css::uno::Any * pOldValues,
552 void SAL_CALL setFastPropertyValues(
554 sal_Int32 * pHandles,
555 const css::uno::Any * pValues,
556 sal_Int32 nHitCount );
576 virtual sal_Bool SAL_CALL convertFastPropertyValue(
577 css::uno::Any & rConvertedValue,
578 css::uno::Any & rOldValue,
580 const css::uno::Any& rValue )
581 throw (css::lang::IllegalArgumentException,
582 css::beans::UnknownPropertyException,
583 css::uno::RuntimeException, std::exception) = 0;
603 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
605 const css::uno::Any& rValue )
606 throw (css::uno::Exception,
613 virtual void SAL_CALL getFastPropertyValue(
614 css::uno::Any& rValue,
615 sal_Int32 nHandle )
const = 0;
635 void setDependentFastPropertyValue(
637 const css::uno::Any& i_value
660 SAL_DELETED_FUNCTION;
666 sal_Int32* i_handles,
667 const
css::uno::Any * i_newValues,
668 const
css::uno::Any * i_oldValues,
672 #if defined _MSC_VER // public -> protected changes mangled names there 679 #pragma warning(push) 680 #pragma warning(disable: 4265) 681 #if defined __clang__ 682 #pragma clang diagnostic push 683 #pragma clang diagnostic ignored "-Wnon-virtual-dtor" 692 #if defined __clang__ 693 #pragma clang diagnostic pop 706 public css::beans::XPropertySetOption
716 bool bIgnoreRuntimeExceptionsWhileFiring =
false);
719 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
720 throw (css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
723 virtual void SAL_CALL enableChangeListenerNotification(
sal_Bool bEnable )
724 throw(css::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
732 #if defined _MSC_VER // public -> protected changes mangled names there
sal_Int32 keyType
Definition: propshlp.hxx:293
OPropertySetHelper plus XPropertySetOption.
Definition: propshlp.hxx:705
size_t operator()(const sal_Int32 &i) const
Definition: propshlp.hxx:217
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:410
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:651
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
Definition: propshlp.hxx:209
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition: propshlp.hxx:362
unsigned char sal_Bool
Definition: types.h:48
Definition: propshlp.hxx:215
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:211
#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:641
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition: propshlp.hxx:649
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:223
~IEventNotificationHook()
Definition: propshlp.hxx:342
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:305
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XProperyChangedListener.
Definition: propshlp.hxx:645