LibreOffice Module uui (master) 1
|
#include <iahndl.hxx>
Public Member Functions | |
UUIInteractionHelper (css::uno::Reference< css::uno::XComponentContext > xContext) | |
const css::uno::Reference< css::awt::XWindow > & | GetParentWindow () const |
void | SetParentWindow (const css::uno::Reference< css::awt::XWindow > &rWindow) |
void | setContext (OUString const &context) |
~UUIInteractionHelper () | |
bool | handleRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
css::beans::Optional< OUString > | getStringFromRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
Static Public Member Functions | |
static OUString | replaceMessageWithArguments (const OUString &aMessage, std::vector< OUString > const &rArguments) |
Private Member Functions | |
UUIInteractionHelper (UUIInteractionHelper const &)=delete | |
UUIInteractionHelper & | operator= (UUIInteractionHelper const &)=delete |
bool | handleRequest_impl (css::uno::Reference< css::task::XInteractionRequest > const &rRequest, bool bObtainErrorStringOnly, bool &bHasErrorString, OUString &rErrorString) |
css::beans::Optional< OUString > | getStringFromRequest_impl (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
const css::uno::Reference< css::awt::XWindow > & | getParentXWindow () const |
css::uno::Reference< css::task::XInteractionHandler2 > | getInteractionHandler () const |
bool | handleTypedHandlerImplementations (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | tryOtherInteractionHandler (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
void | getInteractionHandlerList (InteractionHandlerDataList &rdataList) |
bool | handleInteractiveIOException (css::uno::Reference< css::task::XInteractionRequest > const &rRequest, bool bObtainErrorStringOnly, bool &bHasErrorString, OUString &rErrorString) |
bool | handleAuthenticationRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | handleCertificateValidationRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
void | handleNameClashResolveRequest (css::ucb::NameClashResolveRequest const &rRequest, css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const &rContinuations) |
bool | handleMasterPasswordRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | handlePasswordRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | handleNoSuchFilterRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | handleFilterOptionsRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
void | handleErrorHandlerRequest (css::task::InteractionClassification eClassification, ErrCode nErrorCode, std::vector< OUString > const &rArguments, css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const &rContinuations, bool bObtainErrorStringOnly, bool &bHasErrorString, OUString &rErrorString) |
void | handleGenericErrorRequest (ErrCode nErrorCode, css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const &rContinuations, bool bObtainErrorStringOnly, bool &bHasErrorString, OUString &rErrorString) |
void | handleMacroConfirmRequest (const OUString &aDocumentURL, const css::uno::Reference< css::embed::XStorage > &xZipStorage, const OUString &aDocumentVersion, const css::uno::Sequence< css::security::DocumentSignatureInformation > &aSignInfo, css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const &rContinuations) |
void | handleBrokenPackageRequest (std::vector< OUString > const &rArguments, css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const &rContinuations, bool bObtainErrorStringOnly, bool &bHasErrorString, OUString &rErrorString) |
bool | handleLockedDocumentRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | handleChangedByOthersRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | handleLockFileProblemRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | handleReloadEditableRequest (css::uno::Reference< css::task::XInteractionRequest > const &rRequest) |
bool | handleCustomRequest (const css::uno::Reference< css::task::XInteractionRequest > &i_rRequest, const OUString &i_rServiceName) const |
void | handleAuthFallbackRequest (const OUString &instructions, const OUString &url, css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const &rContinuations) |
Static Private Member Functions | |
static void | handlerequest (void *pHandleData, void *pInteractionHandler) |
static void | getstringfromrequest (void *pHandleData, void *pInteractionHandler) |
static bool | isInformationalErrorMessageRequest (css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const &rContinuations) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::awt::XWindow > | m_xWindowParam |
OUString | m_aContextParam |
StringHashMap | m_aTypedCustomHandlers |
Definition at line 71 of file iahndl.hxx.
|
privatedelete |
|
explicit |
UUIInteractionHelper::~UUIInteractionHelper | ( | ) |
Definition at line 131 of file iahndl.cxx.
|
private |
Definition at line 913 of file iahndl.cxx.
References m_aContextParam, m_xContext, and m_xWindowParam.
Referenced by handleAuthenticationRequest().
|
private |
Definition at line 833 of file iahndl.cxx.
References aArguments, comphelper::InitAnyPropertySequence(), m_xContext, InteractionHandlerData::ServiceName, and TOOLS_WARN_EXCEPTION.
Referenced by tryOtherInteractionHandler().
|
inline |
Definition at line 85 of file iahndl.hxx.
References m_xWindowParam.
|
private |
Definition at line 907 of file iahndl.cxx.
References m_xWindowParam.
Referenced by handleAuthenticationRequest(), handleAuthFallbackRequest(), handleBrokenPackageRequest(), handleCertificateValidationRequest(), handleChangedByOthersRequest(), handleCustomRequest(), handleErrorHandlerRequest(), handleFilterOptionsRequest(), handleGenericErrorRequest(), handleLockedDocumentRequest(), handleLockFileProblemRequest(), handleMacroConfirmRequest(), handleMasterPasswordRequest(), handleNameClashResolveRequest(), handleNoSuchFilterRequest(), handlePasswordRequest(), and handleReloadEditableRequest().
beans::Optional< OUString > UUIInteractionHelper::getStringFromRequest | ( | css::uno::Reference< css::task::XInteractionRequest > const & | rRequest | ) |
Definition at line 201 of file iahndl.cxx.
References comphelper::SolarMutex::acquire(), GetpApp(), Application::GetSolarMutex(), getstringfromrequest(), getStringFromRequest_impl(), comphelper::SolarMutex::IsCurrentThread(), Application::IsMainThread(), Application::PostUserEvent(), and comphelper::SolarMutex::release().
Referenced by UUIInteractionRequestStringResolver::getStringFromInformationalRequest().
|
staticprivate |
Definition at line 174 of file iahndl.cxx.
References getStringFromRequest_impl().
Referenced by getStringFromRequest().
|
private |
Definition at line 184 of file iahndl.cxx.
References handleRequest_impl(), and isInformationalErrorMessageRequest().
Referenced by getStringFromRequest(), and getstringfromrequest().
|
private |
Definition at line 591 of file iahndl-authentication.cxx.
References Application::GetFrameWeld(), getInteractionHandler(), getParentXWindow(), and m_xContext.
Referenced by handleRequest_impl().
|
private |
Definition at line 730 of file iahndl-authentication.cxx.
References AuthFallbackDlg::GetCode(), getContinuations(), Application::GetFrameWeld(), getParentXWindow(), RET_OK, and weld::DialogController::run().
Referenced by handleRequest_impl().
|
private |
Definition at line 1130 of file iahndl.cxx.
References Translate::Create(), ERRCODE_UUI_IO_BROKENPACKAGE, ERRCODE_UUI_IO_BROKENPACKAGE_CANTREPAIR, getContinuations(), Application::GetFrameWeld(), getParentXWindow(), utl::ConfigManager::getProductName(), utl::ConfigManager::getProductVersion(), ErrorResource::getString(), isInformationalErrorMessageRequest(), and replaceMessageWithArguments().
Referenced by handleRequest_impl().
|
private |
Definition at line 346 of file iahndl-ssl.cxx.
References Application::GetFrameWeld(), getParentXWindow(), and m_xContext.
Referenced by handleRequest_impl().
|
private |
Definition at line 281 of file iahndl-locking.cxx.
References Application::GetFrameWeld(), and getParentXWindow().
Referenced by handleRequest_impl().
|
private |
Definition at line 294 of file iahndl.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, getParentXWindow(), comphelper::NamedValueCollection::getWrappedPropertyValues(), m_xContext, and comphelper::NamedValueCollection::put().
Referenced by handleTypedHandlerImplementations().
|
private |
Definition at line 129 of file iahndl-errorhandler.cxx.
References Translate::Create(), ERRCODE_NONE, ErrCode::GetArea(), ErrorContext::GetContext(), getContinuations(), Application::GetFrameWeld(), getParentXWindow(), ErrorContext::GetString(), ErrorResource::getString(), isInformationalErrorMessageRequest(), m_aContextParam, replaceMessageWithArguments(), RID_ERRHDL, RID_SVXERRCODE, and Source.
Referenced by handleInteractiveIOException(), and handleRequest_impl().
|
private |
Definition at line 297 of file iahndl-filter.cxx.
References getParentXWindow(), and m_xContext.
Referenced by handleRequest_impl().
|
private |
Definition at line 1031 of file iahndl.cxx.
References Translate::Create(), ERRCODE_SFX_INCOMPLETE_ENCRYPTION, Translate::get(), getContinuations(), ErrorHandler::GetErrorString(), Application::GetFrameWeld(), getParentXWindow(), utl::ConfigManager::getProductName(), ErrorHandler::HandleError(), ErrCode::IgnoreWarning(), and isInformationalErrorMessageRequest().
Referenced by handleRequest_impl().
|
private |
Definition at line 71 of file iahndl-ioexceptions.cxx.
References aArguments, ERRCODE_IO_ABORT, ERRCODE_IO_ACCESSDENIED, ERRCODE_IO_ALREADYEXISTS, ERRCODE_IO_BADCRC, ERRCODE_IO_CANTCREATE, ERRCODE_IO_CANTREAD, ERRCODE_IO_CANTSEEK, ERRCODE_IO_CANTTELL, ERRCODE_IO_CANTWRITE, ERRCODE_IO_CURRENTDIR, ERRCODE_IO_DEVICENOTREADY, ERRCODE_IO_GENERAL, ERRCODE_IO_INVALIDACCESS, ERRCODE_IO_INVALIDCHAR, ERRCODE_IO_INVALIDDEVICE, ERRCODE_IO_INVALIDLENGTH, ERRCODE_IO_INVALIDPARAMETER, ERRCODE_IO_ISWILDCARD, ERRCODE_IO_LOCKVIOLATION, ERRCODE_IO_MISPLACEDCHAR, ERRCODE_IO_NAMETOOLONG, ERRCODE_IO_NOTADIRECTORY, ERRCODE_IO_NOTAFILE, ERRCODE_IO_NOTEXISTS, ERRCODE_IO_NOTEXISTSPATH, ERRCODE_IO_NOTSAMEDEVICE, ERRCODE_IO_NOTSUPPORTED, ERRCODE_IO_OUTOFMEMORY, ERRCODE_IO_OUTOFSPACE, ERRCODE_IO_PENDING, ERRCODE_IO_RECURSIVE, ERRCODE_IO_TOOMANYOPENFILES, ERRCODE_IO_UNKNOWN, ERRCODE_IO_WRITEPROTECTED, ERRCODE_IO_WRONGFORMAT, ERRCODE_IO_WRONGVERSION, ERRCODE_UUI_IO_ABORT, ERRCODE_UUI_IO_ACCESSDENIED, ERRCODE_UUI_IO_ALREADYEXISTS, ERRCODE_UUI_IO_BADCRC, ERRCODE_UUI_IO_CANTCREATE, ERRCODE_UUI_IO_CANTCREATE_NONAME, ERRCODE_UUI_IO_CANTREAD, ERRCODE_UUI_IO_CANTSEEK, ERRCODE_UUI_IO_CANTTELL, ERRCODE_UUI_IO_CANTWRITE, ERRCODE_UUI_IO_CURRENTDIR, ERRCODE_UUI_IO_GENERAL, ERRCODE_UUI_IO_INVALIDACCESS, ERRCODE_UUI_IO_INVALIDCHAR, ERRCODE_UUI_IO_INVALIDDEVICE, ERRCODE_UUI_IO_INVALIDLENGTH, ERRCODE_UUI_IO_INVALIDPARAMETER, ERRCODE_UUI_IO_ISWILDCARD, ERRCODE_UUI_IO_LOCKVIOLATION, ERRCODE_UUI_IO_MISPLACEDCHAR, ERRCODE_UUI_IO_NAMETOOLONG, ERRCODE_UUI_IO_NOTADIRECTORY, ERRCODE_UUI_IO_NOTAFILE, ERRCODE_UUI_IO_NOTEXISTS, ERRCODE_UUI_IO_NOTEXISTS_FOLDER, ERRCODE_UUI_IO_NOTEXISTS_VOLUME, ERRCODE_UUI_IO_NOTEXISTSPATH, ERRCODE_UUI_IO_NOTREADY, ERRCODE_UUI_IO_NOTREADY_REMOVABLE, ERRCODE_UUI_IO_NOTREADY_VOLUME, ERRCODE_UUI_IO_NOTREADY_VOLUME_REMOVABLE, ERRCODE_UUI_IO_NOTSAMEDEVICE, ERRCODE_UUI_IO_NOTSUPPORTED, ERRCODE_UUI_IO_OUTOFMEMORY, ERRCODE_UUI_IO_OUTOFSPACE, ERRCODE_UUI_IO_PENDING, ERRCODE_UUI_IO_RECURSIVE, ERRCODE_UUI_IO_TOOMANYOPENFILES, ERRCODE_UUI_IO_UNKNOWN, ERRCODE_UUI_IO_WRITEPROTECTED, ERRCODE_UUI_IO_WRONGFORMAT, ERRCODE_UUI_IO_WRONGVERSION, handleErrorHandlerRequest(), and u.
Referenced by handleRequest_impl().
|
private |
Definition at line 235 of file iahndl-locking.cxx.
References Application::GetFrameWeld(), getParentXWindow(), UUI_DOC_LOAD_LOCK, UUI_DOC_OWN_LOAD_LOCK, UUI_DOC_OWN_SAVE_LOCK, and UUI_DOC_SAVE_LOCK.
Referenced by handleRequest_impl().
|
private |
Definition at line 299 of file iahndl-locking.cxx.
References Application::GetFrameWeld(), and getParentXWindow().
Referenced by handleRequest_impl().
|
private |
Definition at line 1093 of file iahndl.cxx.
References getContinuations(), Application::GetFrameWeld(), getParentXWindow(), RET_OK, weld::DialogController::run(), MacroWarning::SetCertificate(), MacroWarning::SetDocumentURL(), and MacroWarning::SetStorage().
Referenced by handleRequest_impl().
|
private |
Definition at line 624 of file iahndl-authentication.cxx.
References Application::GetFrameWeld(), and getParentXWindow().
Referenced by handleRequest_impl().
|
private |
Definition at line 976 of file iahndl.cxx.
References ABORT, getContinuations(), Application::GetFrameWeld(), getParentXWindow(), OVERWRITE, and RENAME.
Referenced by handleRequest_impl().
|
private |
Definition at line 278 of file iahndl-filter.cxx.
References Application::GetFrameWeld(), getParentXWindow(), and m_xContext.
Referenced by handleRequest_impl().
|
private |
Definition at line 643 of file iahndl-authentication.cxx.
References Application::GetFrameWeld(), and getParentXWindow().
Referenced by handleRequest_impl().
|
private |
Definition at line 325 of file iahndl-locking.cxx.
References Application::GetFrameWeld(), and getParentXWindow().
Referenced by handleRequest_impl().
bool UUIInteractionHelper::handleRequest | ( | css::uno::Reference< css::task::XInteractionRequest > const & | rRequest | ) |
Definition at line 150 of file iahndl.cxx.
References comphelper::SolarMutex::acquire(), GetpApp(), Application::GetSolarMutex(), handlerequest(), handleRequest_impl(), comphelper::SolarMutex::IsCurrentThread(), Application::IsMainThread(), Application::PostUserEvent(), and comphelper::SolarMutex::release().
|
staticprivate |
Definition at line 135 of file iahndl.cxx.
References handleRequest_impl().
Referenced by handleRequest().
|
private |
Definition at line 369 of file iahndl.cxx.
References aArguments, comphelper::string::convertCommaSeparated(), DBG_UNHANDLED_EXCEPTION, ERRCODE_INET_CONNECT, ERRCODE_INET_GENERAL, ERRCODE_INET_NAME_RESOLVE, ERRCODE_INET_OFFLINE, ERRCODE_INET_READ, ERRCODE_INET_WRITE, ERRCODE_UUI_CANNOT_ACTIVATE_FACTORY, ERRCODE_UUI_CONFIGURATION_BACKENDMISSING, ERRCODE_UUI_CONFIGURATION_BROKENDATA_NOREMOVE, ERRCODE_UUI_CONFIGURATION_BROKENDATA_WITHREMOVE, ERRCODE_UUI_INVALID_XFORMS_SUBMISSION_DATA, ERRCODE_UUI_IO_ALREADYEXISTS, ERRCODE_UUI_IO_EXOTICFILEFORMAT, ERRCODE_UUI_IO_MODULESIZEEXCEEDED, ERRCODE_UUI_IO_TARGETALREADYEXISTS, ERRCODE_UUI_IO_UNSUPPORTEDOVERWRITE, ERRCODE_UUI_LOCKING_LOCK_EXPIRED, ERRCODE_UUI_LOCKING_LOCKED, ERRCODE_UUI_LOCKING_LOCKED_SELF, ERRCODE_UUI_LOCKING_NOT_LOCKED, ERRCODE_UUI_WRONGJAVA, ERRCODE_UUI_WRONGJAVA_MIN, ERRCODE_UUI_WRONGJAVA_VERSION, ERRCODE_UUI_WRONGJAVA_VERSION_MIN, ERRCODE_UUI_WRONGMEDIUM, getContinuations(), handleAuthenticationRequest(), handleAuthFallbackRequest(), handleBrokenPackageRequest(), handleCertificateValidationRequest(), handleChangedByOthersRequest(), handleErrorHandlerRequest(), handleFilterOptionsRequest(), handleGenericErrorRequest(), handleInteractiveIOException(), handleLockedDocumentRequest(), handleLockFileProblemRequest(), handleMacroConfirmRequest(), handleMasterPasswordRequest(), handleNameClashResolveRequest(), handleNoSuchFilterRequest(), handlePasswordRequest(), handleReloadEditableRequest(), handleTypedHandlerImplementations(), ODFVER_013_TEXT, and tryOtherInteractionHandler().
Referenced by getStringFromRequest_impl(), handleRequest(), and handlerequest().
|
private |
Definition at line 319 of file iahndl.cxx.
References Any, utl::OConfigurationTreeRoot::CM_READONLY, utl::OConfigurationTreeRoot::createWithComponentContext(), utl::OConfigurationNode::getNodeValue(), handleCustomRequest(), m_aTypedCustomHandlers, m_xContext, sServiceName, and type.
Referenced by handleRequest_impl().
|
staticprivate |
Definition at line 239 of file iahndl.cxx.
Referenced by getStringFromRequest_impl(), handleBrokenPackageRequest(), handleErrorHandlerRequest(), and handleGenericErrorRequest().
|
privatedelete |
|
static |
Definition at line 222 of file iahndl.cxx.
References i, and SAL_WARN_IF.
Referenced by handleBrokenPackageRequest(), and handleErrorHandlerRequest().
|
inline |
Definition at line 88 of file iahndl.hxx.
References m_aContextParam.
|
inline |
Definition at line 86 of file iahndl.hxx.
References m_xWindowParam.
|
private |
Definition at line 261 of file iahndl.cxx.
References getInteractionHandlerList().
Referenced by handleRequest_impl().
|
private |
Definition at line 76 of file iahndl.hxx.
Referenced by getInteractionHandler(), handleErrorHandlerRequest(), and setContext().
|
private |
Definition at line 77 of file iahndl.hxx.
Referenced by handleTypedHandlerImplementations().
|
private |
Definition at line 74 of file iahndl.hxx.
Referenced by getInteractionHandler(), getInteractionHandlerList(), handleAuthenticationRequest(), handleCertificateValidationRequest(), handleCustomRequest(), handleFilterOptionsRequest(), handleNoSuchFilterRequest(), and handleTypedHandlerImplementations().
|
private |
Definition at line 75 of file iahndl.hxx.
Referenced by getInteractionHandler(), GetParentWindow(), getParentXWindow(), and SetParentWindow().