23#include <osl/diagnose.h>
30SimpleInteractionRequest::SimpleInteractionRequest(
37 "SimpleInteractionRequest - No continuation!" );
39 std::vector< uno::Reference< task::XInteractionContinuation > > aContinuations;
63 if ( xSelection.is() )
67 uno::Reference< task::XInteractionAbort > xAbort(
68 pSelection, uno::UNO_QUERY );
72 uno::Reference< task::XInteractionRetry > xRetry(
73 pSelection, uno::UNO_QUERY );
77 uno::Reference< task::XInteractionApprove > xApprove(
78 pSelection, uno::UNO_QUERY );
82 uno::Reference< task::XInteractionDisapprove > xDisapprove(
83 pSelection, uno::UNO_QUERY );
84 if ( xDisapprove.is() )
87 OSL_FAIL(
"SimpleInteractionRequest::getResponse - Unknown continuation!" );
This class implements a standard interaction continuation, namely the interface XInteractionAbort.
This class implements a standard interaction continuation, namely the interface XInteractionApprove.
This class is the base for implementations of the interface XInteractionContinuation.
This class implements a standard interaction continuation, namely the interface XInteractionDisapprov...
rtl::Reference< InteractionContinuation > const & getSelection() const
After passing this request to XInteractionHandler::handle, this method returns the continuation that ...
void setContinuations(const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &rContinuations)
This method sets the continuations for the request.
This class implements a standard interaction continuation, namely the interface XInteractionRetry.
ContinuationFlags getResponse() const
After passing this request to XInteractionHandler::handle, this method returns the continuation that ...
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
ContinuationFlags
These are the constants that can be passed to the constructor of class SimpleInteractionRequest and t...
@ Disapprove
The interaction handler selected XInteractionDisapprove.
@ Retry
The interaction handler selected XInteractionRetry.
@ Approve
The interaction handler selected XInteractionApprove.
@ Abort
The interaction handler selected XInteractionAbort.
@ NONE
The request was not (yet) handled by the interaction handler.