25#include <com/sun/star/task/XInteractionAbort.hpp>
26#include <osl/diagnose.h>
38 public task::XInteractionContinuation
44 InteractionContinuationImpl(
Type const & type,
bool * pselect )
51 virtual void SAL_CALL acquire() noexcept override;
52 virtual
void SAL_CALL release() noexcept override;
53 virtual Any SAL_CALL queryInterface(
Type const & type ) override;
56 virtual
void SAL_CALL select() override;
61void InteractionContinuationImpl::acquire() noexcept
63 OWeakObject::acquire();
67void InteractionContinuationImpl::release() noexcept
69 OWeakObject::release();
73Any InteractionContinuationImpl::queryInterface(
Type const & type )
76 Reference<task::XInteractionContinuation> xThis(
this);
77 return Any( &xThis, type );
80 return OWeakObject::queryInterface(type);
85void InteractionContinuationImpl::select()
94 Type const & continuation,
95 Reference<XCommandEnvironment>
const & xCmdEnv,
96 bool * pcont,
bool * pabort )
104 Reference<task::XInteractionHandler> xInteractionHandler(
105 xCmdEnv->getInteractionHandler() );
106 if (!xInteractionHandler)
111 std::vector< Reference<task::XInteractionContinuation> > conts {
112 new InteractionContinuationImpl(continuation, &cont ),
114 xInteractionHandler->handle(
115 new ::comphelper::OInteractionRequest( request, std::move(conts) ) );
117 if (pcont !=
nullptr)
119 if (pabort !=
nullptr)
128void AbortChannel::sendAbort()
132 m_xNext->sendAbort();
bool isAssignableFrom(const Type &_rAssignable, const Type &_rFrom)
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool interactContinuation(css::uno::Any const &request, css::uno::Type const &continuation, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool *pcont, bool *pabort)