73struct SQLMessageBox_Impl;
78 std::unique_ptr<SQLMessageBox_Impl>
m_pImpl;
92 OUString _sHelpURL = OUString()
102 const OUString& rTitle,
103 const OUString& rMessage,
106 const ::dbtools::SQLExceptionInfo* _pAdditionalErrorInfo =
nullptr );
109 void add_button(
const OUString& rText,
int nResponse,
const OUString& rHelpId = {}) {
m_xDialog->add_button(rText, nResponse, rHelpId); }
130 const OUString& _rMessage,
132 const ::dbtools::SQLExceptionInfo* _pAdditionalErrorInfo =
nullptr );
140 const OUString& _rMessage );
OSQLErrorBox(weld::Window *pParent, const OUString &_rMessage)
virtual weld::Dialog * getDialog() override
std::unique_ptr< SQLMessageBox_Impl > m_pImpl
void Construct(weld::Window *pParent, MessBoxStyle nStyle, MessageType eImage)
std::unique_ptr< weld::Button > m_xMoreButton
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
virtual ~OSQLMessageBox() override
void set_default_response(int nResponse)
std::unique_ptr< weld::MessageDialog > m_xDialog
void add_button(const OUString &rText, int nResponse, const OUString &rHelpId={})
DECL_LINK(ButtonClickHdl, weld::Button &, void)
void impl_createStandardButtons(MessBoxStyle _nStyle)
void impl_addDetailsButton()
void set_title(const OUString &rTitle)
OSQLWarningBox(weld::Window *pParent, const OUString &_rMessage, MessBoxStyle _nStyle=MessBoxStyle::Ok|MessBoxStyle::DefaultOk, const ::dbtools::SQLExceptionInfo *_pAdditionalErrorInfo=nullptr)