22#include <com/sun/star/task/XInteractionAbort.hpp>
23#include <com/sun/star/task/XInteractionApprove.hpp>
24#include <com/sun/star/document/XInteractionFilterSelect.hpp>
25#include <com/sun/star/document/XInteractionFilterOptions.hpp>
26#include <com/sun/star/document/FilterOptionsRequest.hpp>
27#include <com/sun/star/task/ErrorCodeRequest.hpp>
29#include <com/sun/star/document/LockedDocumentRequest.hpp>
43 css::uno::Any aRequest = xRequest->getRequest();
52 css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > lContinuations = xRequest->getContinuations();
53 css::uno::Reference< css::task::XInteractionAbort > xAbort;
54 css::uno::Reference< css::task::XInteractionApprove > xApprove;
55 css::uno::Reference< css::document::XInteractionFilterSelect > xFilter;
56 css::uno::Reference< css::document::XInteractionFilterOptions > xFOptions;
58 sal_Int32
nCount=lContinuations.getLength();
62 xAbort.set( lContinuations[
i], css::uno::UNO_QUERY );
65 xApprove.set( lContinuations[
i], css::uno::UNO_QUERY );
68 xFilter.set( lContinuations[
i], css::uno::UNO_QUERY );
70 if ( ! xFOptions.is() )
71 xFOptions.set( lContinuations[
i], css::uno::UNO_QUERY );
76 css::task::ErrorCodeRequest aErrorCodeRequest;
77 css::document::LockedDocumentRequest aLockedDocumentRequest;
78 css::document::FilterOptionsRequest aFilterOptionsRequest;
80 if( aRequest >>= aErrorCodeRequest )
85 if (xApprove.is() && bWarning)
92 if( aRequest >>= aLockedDocumentRequest )
102 if (aRequest>>=aFilterOptionsRequest)
css::uno::Any m_aRequest
in case an unknown interaction was aborted - we save it for our external user!
QuietInteraction()
ctor to guarantee right initialized instances of this class @threadsafe not necessary
virtual void SAL_CALL handle(const css::uno::Reference< css::task::XInteractionRequest > &xRequest) override
bool wasUsed() const
returns information if interaction was used @descr It can be useful to know the reason for a failed o...
css::uno::Any getRequest() const
return the handled interaction request @descr We saved any obtained interaction request internally.