22#include <config_options.h>
25#include <com/sun/star/ucb/XCommandEnvironment.hpp>
26#include <com/sun/star/task/XAbortChannel.hpp>
34 OUString
const & status,
35 css::uno::Reference<css::ucb::XCommandEnvironment>
const & xCmdEnv )
38 css::uno::Reference<css::ucb::XProgressHandler> xProgressHandler(
39 xCmdEnv->getProgressHandler() );
40 if (xProgressHandler.is()) {
41 xProgressHandler->update( css::uno::Any(status) );
54 css::uno::Reference<css::ucb::XCommandEnvironment>
const & xCmdEnv,
55 OUString
const & status );
57 inline void update( OUString
const & status )
const;
58 inline void update( css::uno::Any
const & status )
const;
63 css::uno::Reference< css::ucb::XCommandEnvironment >
const & xCmdEnv,
64 OUString
const & status )
98 css::uno::Any
const & request,
99 css::uno::Type
const & continuation,
100 css::uno::Reference<css::ucb::XCommandEnvironment>
const & xCmdEnv,
101 bool * pcont,
bool * pabort );
106class UNLESS_MERGELIBS(DESKTOP_DEPLOYMENTMISC_DLLPUBLIC) AbortChannel :
107 public ::cppu::WeakImplHelper<css::task::XAbortChannel>
110 css::uno::Reference<css::task::XAbortChannel> m_xNext;
113 AbortChannel() : m_aborted( false ) {}
114 static AbortChannel *
get(
115 css::uno::Reference<css::task::XAbortChannel>
const & xAbortChannel )
116 {
return static_cast<AbortChannel *
>(xAbortChannel.get()); }
118 bool isAborted()
const {
return m_aborted; }
121 virtual void SAL_CALL sendAbort()
override;
123 class SAL_DLLPRIVATE
Chain
125 const ::rtl::Reference<AbortChannel> m_abortChannel;
129 css::uno::Reference<css::task::XAbortChannel>
const & xNext )
130 : m_abortChannel(
std::move( abortChannel ))
131 {
if (m_abortChannel.is()) m_abortChannel->m_xNext = xNext; }
133 {
if (m_abortChannel.is()) m_abortChannel->m_xNext.clear(); }
css::uno::Reference< css::ucb::XProgressHandler > m_xProgressHandler
ProgressLevel(css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, OUString const &status)
void update(OUString const &status) const
#define DESKTOP_DEPLOYMENTMISC_DLLPUBLIC
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)
void progressUpdate(OUString const &status, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)