Tag: cws_dev300_odbmacros3 User: fs Date: 2008-05-08 13:46:17+0000 Modified: dba/dbaccess/source/ext/macromigration/docerrorhandling.cxx
Log: add interaction approval, else the handle will show nothing File Changes: Directory: /dba/dbaccess/source/ext/macromigration/ =================================================== File [changed]: docerrorhandling.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ext/macromigration/docerrorhandling.cxx?r1=1.3&r2=1.3.2.1 Delta lines: +8 -5 ------------------- --- docerrorhandling.cxx 2008-04-10 13:11:16+0000 1.3 +++ docerrorhandling.cxx 2008-05-08 13:46:14+0000 1.3.2.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: docerrorhandling.cxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.3.2.1 $ * * This file is part of OpenOffice.org. * @@ -41,6 +41,7 @@ #include <comphelper/componentcontext.hxx> #include <comphelper/namedvaluecollection.hxx> #include <comphelper/interaction.hxx> +#include <rtl/ref.hxx> #include <tools/diagnose_ex.h> //........................................................................ @@ -76,9 +77,11 @@ Reference< XModel > xDocModel( _rxDocument, UNO_QUERY_THROW ); ::comphelper::NamedValueCollection aDocArgs( xDocModel->getArgs() ); xHandler = aDocArgs.getOrDefault( "InteractionHandler", xHandler ); - xHandler->handle( - new ::comphelper::OInteractionRequest( _rError ) - ); + + ::rtl::Reference< ::comphelper::OInteractionRequest > pRequest( new ::comphelper::OInteractionRequest( _rError ) ); + ::rtl::Reference< ::comphelper::OInteractionApprove > pApprove( new ::comphelper::OInteractionApprove ); + pRequest->addContinuation( pApprove.get() ); + xHandler->handle( pRequest.get() ); } catch( const Exception& ) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
