22#include <osl/conditn.hxx>
26#include <com/sun/star/lang/XInitialization.hpp>
27#include <com/sun/star/lang/XServiceInfo.hpp>
28#include <com/sun/star/task/InteractionClassification.hpp>
29#include <com/sun/star/task/XInteractionHandler2.hpp>
32 struct LibLibreOffice_Impl;
33 struct LibLODocument_Impl;
45 com::sun::star::lang::XInitialization,
46 com::sun::star::task::XInteractionHandler2>
72 void postError(css::task::InteractionClassification classif,
const char* kind,
ErrCode code,
const OUString &message);
74 bool handleIOException(
const css::uno::Sequence<css::uno::Reference<css::task::XInteractionContinuation>> &rContinuations,
const css::uno::Any& rRequest);
75 bool handleNetworkException(
const css::uno::Sequence<css::uno::Reference<css::task::XInteractionContinuation>> &rContinuations,
const css::uno::Any& rRequest);
76 bool handlePasswordRequest(
const css::uno::Sequence<css::uno::Reference<css::task::XInteractionContinuation>> &rContinuations,
const css::uno::Any& rRequest);
79 static bool handleFilterOptionsRequest(const ::com::sun::star::uno::Reference<::com::sun::star::task::XInteractionRequest>& Request);
InteractionHandler is an interface that provides the user with various dialogs / error messages.
bool handleIOException(const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &rContinuations, const css::uno::Any &rRequest)
desktop::LibLODocument_Impl * m_pLOKDocument
desktop::LibLibreOffice_Impl * m_pLOKit
void postError(css::task::InteractionClassification classif, const char *kind, ErrCode code, const OUString &message)
Call the LOK_CALLBACK_ERROR on the LOK document (if available) or LOK lib.
virtual ~LOKInteractionHandler() override
LOKInteractionHandler(const LOKInteractionHandler &)=delete
virtual OUString SAL_CALL getImplementationName() override
virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void SetPassword(char const *pPassword)
bool handleNetworkException(const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &rContinuations, const css::uno::Any &rRequest)
virtual sal_Bool SAL_CALL supportsService(OUString const &rServiceName) override
osl::Condition m_havePassword
LOKInteractionHandler & operator=(const LOKInteractionHandler &)=delete
bool handlePasswordRequest(const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &rContinuations, const css::uno::Any &rRequest)
static bool handleFilterOptionsRequest(const ::com::sun::star::uno::Reference<::com::sun::star::task::XInteractionRequest > &Request)
virtual sal_Bool SAL_CALL handleInteractionRequest(const ::com::sun::star::uno::Reference<::com::sun::star::task::XInteractionRequest > &Request) override
OString m_command
Command for which we use this interaction handler (like "load", "save", "saveas", ....
virtual void SAL_CALL initialize(com::sun::star::uno::Sequence< com::sun::star::uno::Any > const &rArguments) override
static bool handleMacroConfirmationRequest(const css::uno::Reference< css::task::XInteractionRequest > &xRequest)
virtual void SAL_CALL handle(com::sun::star::uno::Reference< com::sun::star::task::XInteractionRequest > const &rRequest) override