LibreOffice Module dbaccess (master) 1
|
implements an <type scope="com.sun.star.task">XInteractionHandler</type> for database related interaction requests. More...
#include <dbinteraction.hxx>
Public Member Functions | |
BasicInteractionHandler (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const bool i_bFallbackToGeneric) | |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &rArgs) override |
virtual sal_Bool SAL_CALL | handleInteractionRequest (const css::uno::Reference< css::task::XInteractionRequest > &Request) override |
virtual void SAL_CALL | handle (const css::uno::Reference< css::task::XInteractionRequest > &Request) override |
Protected Types | |
enum | Continuation { APPROVE , DISAPPROVE , RETRY , ABORT , SUPPLY_PARAMETERS , SUPPLY_DOCUMENTSAVE } |
known continuation types More... | |
Protected Member Functions | |
bool | impl_handle_throw (const css::uno::Reference< css::task::XInteractionRequest > &i_Request) |
void | implHandle (const css::sdb::ParametersRequest &_rParamRequest, const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &_rContinuations) |
handle parameter requests More... | |
void | implHandle (const css::sdb::DocumentSaveRequest &_rParamRequest, const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &_rContinuations) |
handle document save requests More... | |
bool | implHandleUnknown (const css::uno::Reference< css::task::XInteractionRequest > &_rxRequest) |
handles requests which are not SDB-specific More... | |
Static Protected Member Functions | |
static void | implHandle (const ::dbtools::SQLExceptionInfo &_rSqlInfo, const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &_rContinuations) |
handle SQLExceptions (and derived classes) More... | |
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 More... | |
Private Attributes | |
css::uno::Reference< css::awt::XWindow > | m_xParentWindow |
const css::uno::Reference< css::uno::XComponentContext > | m_xContext |
const bool | m_bFallbackToGeneric |
implements an <type scope="com.sun.star.task">XInteractionHandler</type> for database related interaction requests.
Supported interaction requests by now (specified by an exception: The appropriate exception has to be returned by the getRequest method of the object implementing the <type scope="com.sun.star.task">XInteractionRequest</type> interface.
Definition at line 58 of file dbinteraction.hxx.
|
protected |
known continuation types
Enumerator | |
---|---|
APPROVE | |
DISAPPROVE | |
RETRY | |
ABORT | |
SUPPLY_PARAMETERS | |
SUPPLY_DOCUMENTSAVE |
Definition at line 105 of file dbinteraction.hxx.
dbaui::BasicInteractionHandler::BasicInteractionHandler | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
const bool | i_bFallbackToGeneric | ||
) |
Definition at line 63 of file dbinteraction.cxx.
References m_bFallbackToGeneric.
|
staticprotected |
check if a given continuation sequence contains a given continuation type
Definition at line 310 of file dbinteraction.cxx.
References ABORT, APPROVE, DISAPPROVE, i, RETRY, SUPPLY_DOCUMENTSAVE, and SUPPLY_PARAMETERS.
|
overridevirtual |
Definition at line 82 of file dbinteraction.cxx.
References impl_handle_throw().
|
overridevirtual |
Definition at line 77 of file dbinteraction.cxx.
References impl_handle_throw().
|
protected |
Definition at line 87 of file dbinteraction.cxx.
References Any, implHandle(), implHandleUnknown(), dbtools::SQLExceptionInfo::isValid(), and m_bFallbackToGeneric.
Referenced by handle(), and handleInteractionRequest().
|
staticprotected |
handle SQLExceptions (and derived classes)
Referenced by impl_handle_throw().
|
protected |
handle document save requests
|
protected |
handle parameter requests
|
protected |
handles requests which are not SDB-specific
Definition at line 298 of file dbinteraction.cxx.
References m_xContext.
Referenced by impl_handle_throw().
|
overridevirtual |
Definition at line 71 of file dbinteraction.cxx.
References aMap, and m_xParentWindow.
|
private |
Definition at line 64 of file dbinteraction.hxx.
Referenced by BasicInteractionHandler(), and impl_handle_throw().
|
private |
Definition at line 63 of file dbinteraction.hxx.
Referenced by implHandleUnknown().
|
private |
Definition at line 61 of file dbinteraction.hxx.
Referenced by initialize().