LibreOffice Module vcl (master) 1
|
#include <errinf.hxx>
Public Member Functions | |
ErrorHandler () | |
virtual | ~ErrorHandler () |
Static Public Member Functions | |
static DialogMask | HandleError (ErrCode nId, weld::Window *pParent=nullptr, DialogMask nMask=DialogMask::MAX) |
Handles an error. More... | |
static bool | GetErrorString (ErrCode nId, OUString &rStr) |
Protected Member Functions | |
virtual bool | CreateString (const ErrorInfo *, OUString &) const =0 |
Friends | |
class | ErrorStringFactory |
Definition at line 115 of file errinf.hxx.
ErrorHandler::ErrorHandler | ( | ) |
Definition at line 99 of file errinf.cxx.
References aDspFunc(), rData, and ErrorRegistry::RegisterDisplay().
|
virtual |
Definition at line 108 of file errinf.cxx.
|
protectedpure virtual |
|
static |
Definition at line 115 of file errinf.cxx.
References ErrorStringFactory::CreateString(), ERRCODE_ABORT, and ErrorInfo::GetErrorInfo().
|
static |
Handles an error.
If nFlags is not set, the DynamicErrorInfo flags or the resource flags will be used. Thus the order is:
nErrCodeId | error id |
pParent | parent window the error dialog will be modal for. nullptr for unrecommended "pick default" |
nFlags | error flags. |
Definition at line 133 of file errinf.cxx.
References ButtonDefaultsOk, ButtonsOk, ErrorStringFactory::CreateString(), ERRCODE_ABORT, ERRCODE_NONE, DynamicErrorInfo::GetDialogMask(), ErrorInfo::GetErrorInfo(), ErrorContext::GetParent(), HandleError(), ErrCode::IsWarning(), MAX, MessageError, MessageWarning, NONE, rData, and SAL_WARN.
Referenced by HandleError().
|
friend |
Definition at line 117 of file errinf.hxx.