diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-02-26 12:48:10 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-02-26 12:48:10 +0000 |
commit | f8805c44cdd689ca3f9a178c529b0cc08407a09e (patch) | |
tree | 2ff56bb82f4177851801ef7d870595b0a4d5cdd8 /cppuhelper | |
parent | af762f56c412e80c61c0ff9369f3642f06764421 (diff) |
INTEGRATION: CWS custommeta (1.14.44); FILE MERGED
2008/02/04 15:23:30 mst 1.14.44.1: new interface: new OPropertySetHelper constructor
- cppuhelper/inc/cppuhelper/propshlp.hxx,cppuhelper/source/propshlp.cxx:
+ new interface IEventNotificationHook
+ new constructor for OPropertySetHelper, taking an IEventNotificationHook
+ OPropertySetHelper::fire calls given IEventNotificationHook
- cppuhelper/source/{cc5_solaris_sparc.map,gcc3.map}:
+ export new OPropertySetHelper constructor
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/inc/cppuhelper/propshlp.hxx | 64 |
1 files changed, 58 insertions, 6 deletions
diff --git a/cppuhelper/inc/cppuhelper/propshlp.hxx b/cppuhelper/inc/cppuhelper/propshlp.hxx index 7ec99f73918b..f957f9d82679 100644 --- a/cppuhelper/inc/cppuhelper/propshlp.hxx +++ b/cppuhelper/inc/cppuhelper/propshlp.hxx @@ -4,9 +4,9 @@ * * $RCSfile: propshlp.hxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: kz $ $Date: 2007-05-15 12:18:08 $ + * last change: $Author: obo $ $Date: 2008-02-26 13:48:10 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -44,6 +44,9 @@ #include <com/sun/star/beans/XMultiPropertySet.hpp> #include <com/sun/star/beans/XFastPropertySet.hpp> +#include <memory> + + namespace cppu { @@ -317,6 +320,28 @@ private: }; +/** An interface to extend event notification actions. + */ +class IEventNotificationHook +{ +public: + /** + Method to be called by OPropertySetHelper::fire. + + @param bIgnoreRuntimeExceptionsWhileFiring + indicates whether occuring RuntimeExceptions shall be + ignored when firing notifications + + @see OPropertySetHelper::fire + */ + virtual void fireEvents( + sal_Int32 * pnHandles, + sal_Int32 nCount, + sal_Bool bVetoable, + bool bIgnoreRuntimeExceptionsWhileFiring) = 0; +}; + + /** This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet @@ -336,7 +361,7 @@ class OPropertySetHelper : public ::com::sun::star::beans::XMultiPropertySet, { public: /** - @param rBHelper this structure containes the basic members of + @param rBHelper this structure contains the basic members of a broadcaster. The lifetime must be longer than the lifetime of this object. Stored in the variable rBHelper. @@ -346,7 +371,7 @@ public: /** Constructor. @param rBHelper - this structure containes the basic members of + this structure contains the basic members of a broadcaster. The lifetime must be longer than the lifetime of this object. Stored in the variable rBHelper. @@ -363,6 +388,31 @@ public: OPropertySetHelper( OBroadcastHelper & rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring ); + /** Constructor. + + @param rBHelper + this structure contains the basic members of + a broadcaster. + The lifetime must be longer than the lifetime + of this object. Stored in the variable rBHelper. + + @param i_pFireEvents + additional event notifier + + @param bIgnoreRuntimeExceptionsWhileFiring + indicates whether occuring RuntimeExceptions will be + ignored when firing notifications (vetoableChange((), + propertyChange()) to listeners. + PropertyVetoExceptions may still be thrown. + This flag is useful in a inter-process scenarios when + remote bridges may break down + (firing DisposedExceptions). + */ + OPropertySetHelper( + OBroadcastHelper & rBHelper, + IEventNotificationHook *i_pFireEvents, + bool bIgnoreRuntimeExceptionsWhileFiring = false); + /** Only returns a reference to XMultiPropertySet, XFastPropertySet, XPropertySet and XEventListener. @@ -564,9 +614,11 @@ protected: */ OMultiTypeInterfaceContainerHelperInt32 aVetoableLC; - /** reserved for future use. do not use. + class Impl; + + /** reserved for future use. finally, the future has arrived... */ - void * m_pReserved; + const std::auto_ptr<const Impl> m_pReserved; private: OPropertySetHelper( const OPropertySetHelper & ) SAL_THROW( () ); |