20#include <osl/diagnose.h>
23#include <com/sun/star/ucb/CommandFailedException.hpp>
24#include <com/sun/star/ucb/InteractiveAugmentedIOException.hpp>
25#include <com/sun/star/ucb/XCommandEnvironment.hpp>
26#include <com/sun/star/ucb/XCommandProcessor.hpp>
39 ucb::XCommandEnvironment > & xEnv )
44 task::XInteractionHandler > xIH = xEnv->getInteractionHandler();
52 xIH->handle( xRequest );
55 = xRequest->getSelection();
57 if ( xSelection.is() )
58 throw ucb::CommandFailedException(
60 uno::Reference< uno::XInterface >(),
66 OSL_FAIL(
"Return from cppu::throwException call!!!" );
67 throw uno::RuntimeException();
72 const uno::Sequence< uno::Any > & rArgs,
74 ucb::XCommandEnvironment > & xEnv,
75 const OUString & rMessage,
77 ucb::XCommandProcessor > & xContext )
83 ucb::InteractiveAugmentedIOException aRequest;
84 aRequest.Message = rMessage;
85 aRequest.Context = xContext;
86 aRequest.Classification = task::InteractionClassification_ERROR;
87 aRequest.Code = eError;
88 aRequest.Arguments = rArgs;
95 eError, rArgs, rMessage, xContext );
97 task::XInteractionHandler > xIH = xEnv->getInteractionHandler();
100 xIH->handle( xRequest );
103 = xRequest->getSelection();
105 if ( xSelection.is() )
106 throw ucb::CommandFailedException( OUString(),
108 xRequest->getRequest() );
113 OSL_FAIL(
"Return from cppu::throwException call!!!" );
114 throw uno::RuntimeException();
This class implements a standard interaction continuation, namely the interface XInteractionAbort.
This class implements the interface XInteractionRequest.
This class implements a simple IO error interaction request.
void SAL_CALL throwException(Any const &exc)
void cancelCommandExecution(const uno::Any &rException, const uno::Reference< ucb::XCommandEnvironment > &xEnv)