20#ifndef INCLUDED_UCBHELPER_INTERCEPTEDINTERACTION_HXX
21#define INCLUDED_UCBHELPER_INTERCEPTEDINTERACTION_HXX
25#include <com/sun/star/task/XInteractionHandler.hpp>
58 static const sal_Int32 INVALID_HANDLE = -1;
91 : Request(
std::move(Request_)), Continuation(
std::move(Continuation_)),
Handle(Handle_)
155 void setInterceptedHandler(
const css::uno::Reference< css::task::XInteractionHandler >& xInterceptedHandler);
167 void setInterceptions(::std::vector< InterceptedRequest >&& lInterceptions);
182 static css::uno::Reference< css::task::XInteractionContinuation > extractContinuation(
183 const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > >& lContinuations,
184 const css::uno::Type& aType );
220 const css::uno::Reference< css::task::XInteractionRequest >& xOrgRequest);
244 virtual void SAL_CALL handle(
const css::uno::Reference< css::task::XInteractionRequest >& xRequest)
override;
254 UCBHELPER_DLLPRIVATE void impl_handleDefault(
const css::uno::Reference< css::task::XInteractionRequest >& xRequest);
css::uno::Reference< css::task::XInteractionHandler > m_xInterceptedHandler
reference to the intercepted interaction handler.
::std::vector< InterceptedRequest > m_lInterceptions
these list contains the requests, which should be intercepted.
EInterceptionState
represent the different states, which can occur as result of an interception.
@ E_NOT_INTERCEPTED
none of the specified interceptions match the incoming request
@ E_NO_CONTINUATION_FOUND
the request could be intercepted - but the specified continuation could not be located.
InterceptedRequest(css::uno::Any Request_, css::uno::Type Continuation_, sal_Int32 Handle_)
css::uno::Type Continuation
specify the fix continuation, which must be selected, if the interaction could be intercepted success...
InterceptedRequest()
default ctor.
css::uno::Any Request
contains the interaction request, which should be intercepted.
sal_Int32 Handle
it's a unique identifier, which must be managed by the outside code.
it wraps any other interaction handler and intercept its handle() requests.
#define UCBHELPER_DLLPUBLIC
#define UCBHELPER_DLLPRIVATE