25#include <com/sun/star/awt/XWindow.hpp>
26#include <com/sun/star/lang/XInitialization.hpp>
27#include <com/sun/star/lang/XServiceInfo.hpp>
28#include <com/sun/star/task/XInteractionHandler2.hpp>
29#include <com/sun/star/sdb/ParametersRequest.hpp>
30#include <com/sun/star/sdb/DocumentSaveRequest.hpp>
36 class SQLExceptionInfo;
43 typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo
44 , css::lang::XInitialization
45 , css::task::XInteractionHandler2
62 const css::uno::Reference< css::uno::XComponentContext >
68 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
69 const bool i_bFallbackToGeneric
73 virtual void SAL_CALL
initialize(
const css::uno::Sequence< css::uno::Any >& rArgs )
override;
79 virtual void SAL_CALL
handle(
const css::uno::Reference< css::task::XInteractionRequest >& Request )
override;
83 impl_handle_throw(
const css::uno::Reference< css::task::XInteractionRequest >& i_Request );
87 const ::dbtools::SQLExceptionInfo& _rSqlInfo,
88 const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > >& _rContinuations);
92 const css::sdb::ParametersRequest& _rParamRequest,
93 const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > >& _rContinuations);
97 const css::sdb::DocumentSaveRequest& _rParamRequest,
98 const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > >& _rContinuations);
102 const css::uno::Reference< css::task::XInteractionRequest >& _rxRequest );
120 const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > >& _rContinuations);
128 const css::uno::Reference< css::uno::XComponentContext >& rxContext
156 const css::uno::Reference< css::uno::XComponentContext >& rxContext
implements an <type scope="com.sun.star.task">XInteractionHandler</type> for database related interac...
void implHandle(const css::sdb::DocumentSaveRequest &_rParamRequest, const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &_rContinuations)
handle document save requests
const css::uno::Reference< css::uno::XComponentContext > m_xContext
void implHandle(const css::sdb::ParametersRequest &_rParamRequest, const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &_rContinuations)
handle parameter requests
static void implHandle(const ::dbtools::SQLExceptionInfo &_rSqlInfo, const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &_rContinuations)
handle SQLExceptions (and derived classes)
bool impl_handle_throw(const css::uno::Reference< css::task::XInteractionRequest > &i_Request)
css::uno::Reference< css::awt::XWindow > m_xParentWindow
virtual void SAL_CALL handle(const css::uno::Reference< css::task::XInteractionRequest > &Request) override
static sal_Int32 getContinuation(Continuation _eCont, const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &_rContinuations)
check if a given continuation sequence contains a given continuation type
bool implHandleUnknown(const css::uno::Reference< css::task::XInteractionRequest > &_rxRequest)
handles requests which are not SDB-specific
const bool m_bFallbackToGeneric
Continuation
known continuation types
virtual sal_Bool SAL_CALL handleInteractionRequest(const css::uno::Reference< css::task::XInteractionRequest > &Request) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArgs) override
BasicInteractionHandler(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const bool i_bFallbackToGeneric)
an implementation for the legacy css.sdb.InteractionHandler
LegacyInteractionHandler(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
SQLExceptionInteractionHandler(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::lang::XInitialization, css::task::XInteractionHandler2 > BasicInteractionHandler_Base