Tag: cws_src680_qiq User: fs Date: 06/05/31 04:05:11 Modified: /dba/dbaccess/source/core/misc/ ContainerListener.cxx
Log: #i51143# XContainerApproveListener return XVeto now, instead of throwing File Changes: Directory: /dba/dbaccess/source/core/misc/ ========================================== File [changed]: ContainerListener.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/misc/ContainerListener.cxx?r1=1.1.2.1&r2=1.1.2.2 Delta lines: +14 -12 --------------------- --- ContainerListener.cxx 24 May 2006 14:55:43 -0000 1.1.2.1 +++ ContainerListener.cxx 31 May 2006 11:05:08 -0000 1.1.2.2 @@ -4,9 +4,9 @@ * * $RCSfile: ContainerListener.cxx,v $ * - * $Revision: 1.1.2.1 $ + * $Revision: 1.1.2.2 $ * - * last change: $Author: fs $ $Date: 2006/05/24 14:55:43 $ + * last change: $Author: fs $ $Date: 2006/05/31 11:05:08 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -49,6 +49,8 @@ using ::com::sun::star::container::XContainerApproveListener; using ::com::sun::star::container::XContainerListener; using ::com::sun::star::lang::EventObject; + using ::com::sun::star::util::XVeto; + using ::com::sun::star::uno::Reference; /** === end UNO using === **/ //==================================================================== @@ -60,33 +62,33 @@ } //-------------------------------------------------------------------- - void SAL_CALL OContainerListener::approveInsertElement( const ContainerEvent& _Event ) throw (WrappedTargetException, RuntimeException) + Reference< XVeto > SAL_CALL OContainerListener::approveInsertElement( const ContainerEvent& _Event ) throw (WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_rMutex ); if ( m_bDisposed ) - return; + return NULL; - dynamic_cast< XContainerApproveListener& >( m_rDestination ).approveInsertElement( _Event ); + return dynamic_cast< XContainerApproveListener& >( m_rDestination ).approveInsertElement( _Event ); } //-------------------------------------------------------------------- - void SAL_CALL OContainerListener::approveReplaceElement( const ContainerEvent& _Event ) throw (WrappedTargetException, RuntimeException) + Reference< XVeto > SAL_CALL OContainerListener::approveReplaceElement( const ContainerEvent& _Event ) throw (WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_rMutex ); if ( m_bDisposed ) - return; + return NULL; - dynamic_cast< XContainerApproveListener& >( m_rDestination ).approveReplaceElement( _Event ); + return dynamic_cast< XContainerApproveListener& >( m_rDestination ).approveReplaceElement( _Event ); } //-------------------------------------------------------------------- - void SAL_CALL OContainerListener::approveRemoveElement( const ContainerEvent& _Event ) throw (WrappedTargetException, RuntimeException) + Reference< XVeto > SAL_CALL OContainerListener::approveRemoveElement( const ContainerEvent& _Event ) throw (WrappedTargetException, RuntimeException) { ::osl::MutexGuard aGuard( m_rMutex ); if ( m_bDisposed ) - return; + return NULL; - dynamic_cast< XContainerApproveListener& >( m_rDestination ).approveRemoveElement( _Event ); + return dynamic_cast< XContainerApproveListener& >( m_rDestination ).approveRemoveElement( _Event ); } //-------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
