LibreOffice Module dbaccess (master) 1
|
#include <sqlmessage.hxx>
Public Member Functions | |
OSQLMessageBox (weld::Window *pParent, const dbtools::SQLExceptionInfo &_rException, MessBoxStyle _nStyle=MessBoxStyle::Ok|MessBoxStyle::DefaultOk, OUString _sHelpURL=OUString()) | |
display an SQLException with auto-recognizing a main and a detailed message More... | |
OSQLMessageBox (weld::Window *pParent, const OUString &rTitle, const OUString &rMessage, MessBoxStyle nStyle=MessBoxStyle::Ok|MessBoxStyle::DefaultOk, MessageType _eType=Info, const ::dbtools::SQLExceptionInfo *_pAdditionalErrorInfo=nullptr) | |
display a database related error message More... | |
void | set_title (const OUString &rTitle) |
void | add_button (const OUString &rText, int nResponse, const OUString &rHelpId={}) |
void | set_default_response (int nResponse) |
virtual | ~OSQLMessageBox () override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
virtual weld::Dialog * | getDialog () override |
void | Construct (weld::Window *pParent, MessBoxStyle nStyle, MessageType eImage) |
DECL_LINK (ButtonClickHdl, weld::Button &, void) | |
void | impl_fillMessages () |
void | impl_createStandardButtons (MessBoxStyle _nStyle) |
void | impl_addDetailsButton () |
Private Attributes | |
std::unique_ptr< weld::MessageDialog > | m_xDialog |
std::unique_ptr< weld::Button > | m_xMoreButton |
std::unique_ptr< SQLMessageBox_Impl > | m_pImpl |
OUString | m_sHelpURL |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Definition at line 74 of file sqlmessage.hxx.
dbaui::OSQLMessageBox::OSQLMessageBox | ( | weld::Window * | pParent, |
const dbtools::SQLExceptionInfo & | _rException, | ||
MessBoxStyle | _nStyle = MessBoxStyle::Ok | MessBoxStyle::DefaultOk , |
||
OUString | _sHelpURL = OUString() |
||
) |
display an SQLException with auto-recognizing a main and a detailed message
The first two messages from the exception chain are used as main and detailed message (recognizing the detailed field of an <type scope="css::sdb">SQLContext</type>).
Definition at line 559 of file sqlmessage.cxx.
References dbaui::AUTO, Construct(), and m_pImpl.
dbaui::OSQLMessageBox::OSQLMessageBox | ( | weld::Window * | pParent, |
const OUString & | rTitle, | ||
const OUString & | rMessage, | ||
MessBoxStyle | nStyle = MessBoxStyle::Ok | MessBoxStyle::DefaultOk , |
||
MessageType | _eType = Info , |
||
const ::dbtools::SQLExceptionInfo * | _pAdditionalErrorInfo = nullptr |
||
) |
display a database related error message
rTitle | the title to display |
rMessage | the detailed message to display |
_eType | determines the image to use. AUTO is disallowed in this constructor version |
Definition at line 566 of file sqlmessage.cxx.
References Construct(), eType, and m_pImpl.
|
overridevirtual |
Definition at line 579 of file sqlmessage.cxx.
|
inline |
Definition at line 109 of file sqlmessage.hxx.
Referenced by dbaui::askForUserAction(), and dbaui::ORelationTableView::lookForUiActivities().
|
private |
Definition at line 515 of file sqlmessage.cxx.
References dbaui::AUTO, Application::CreateMessageDialog(), dbaui::Error, eType, utl::ConfigManager::getProductName(), dbaui::Info, m_pImpl, m_xDialog, dbaui::Query, and dbaui::Warning.
Referenced by OSQLMessageBox().
|
private |
|
inlineoverrideprivatevirtual |
Implements weld::DialogController.
Definition at line 81 of file sqlmessage.hxx.
References m_xDialog.
|
private |
Definition at line 488 of file sqlmessage.cxx.
References GetStandardText(), LINK, m_pImpl, m_xDialog, and RET_MORE.
|
private |
Definition at line 445 of file sqlmessage.cxx.
References INetURLObject::GetProtocol(), INetURLObject::GetURLPath(), and m_xDialog.
|
private |
Definition at line 408 of file sqlmessage.cxx.
|
inline |
Definition at line 110 of file sqlmessage.hxx.
References m_xDialog.
Referenced by dbaui::ORelationTableView::lookForUiActivities().
|
inline |
Definition at line 108 of file sqlmessage.hxx.
References m_xDialog.
Referenced by dbaui::ORelationTableView::lookForUiActivities().
|
private |
Definition at line 78 of file sqlmessage.hxx.
Referenced by OSQLMessageBox().
|
private |
Definition at line 79 of file sqlmessage.hxx.
|
private |
Definition at line 76 of file sqlmessage.hxx.
Referenced by getDialog(), set_default_response(), and set_title().
|
private |
Definition at line 77 of file sqlmessage.hxx.