summaryrefslogtreecommitdiff
path: root/uui/source/sslwarndlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-21 21:20:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-25 20:03:26 +0100
commitd75144cf44779a8f6cc9bccf9b0a6328b94a5b90 (patch)
tree25b9f3c677c50ad715e1a0bc6bef3d5bf79ef957 /uui/source/sslwarndlg.cxx
parent8d42909cd326cb26d8ba1fb383b5578f820c72ed (diff)
convert remaining InfoBox to weld::MessageDialog
Change-Id: I91d828e38d96264cf4a76f30940942556b8f78d8 Reviewed-on: https://gerrit.libreoffice.org/50205 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'uui/source/sslwarndlg.cxx')
-rw-r--r--uui/source/sslwarndlg.cxx22
1 files changed, 10 insertions, 12 deletions
diff --git a/uui/source/sslwarndlg.cxx b/uui/source/sslwarndlg.cxx
index f88284a70610..5db56f855a95 100644
--- a/uui/source/sslwarndlg.cxx
+++ b/uui/source/sslwarndlg.cxx
@@ -27,7 +27,7 @@
using namespace css;
-void SSLWarnDialog::ViewCert()
+IMPL_LINK_NOARG(SSLWarnDialog, ViewCertHdl, ::Button*, void)
{
uno::Reference< css::security::XDocumentDigitalSignatures > xDocumentDigitalSignatures;
@@ -36,27 +36,25 @@ void SSLWarnDialog::ViewCert()
xDocumentDigitalSignatures.get()->showCertificate(m_rXCert);
}
-
SSLWarnDialog::SSLWarnDialog(vcl::Window* pParent,
const css::uno::Reference< css::security::XCertificate >& rXCert,
const css::uno::Reference< css::uno::XComponentContext >& xContext)
: MessageDialog(pParent, "SSLWarnDialog", "uui/ui/sslwarndialog.ui")
+ , m_xView(get<PushButton>("view"))
, m_xContext(xContext)
, m_rXCert(rXCert)
{
}
-void SSLWarnDialog::response(short nResponseId)
+void SSLWarnDialog::dispose()
+{
+ m_xView.clear();
+ MessageDialog::dispose();
+}
+
+SSLWarnDialog::~SSLWarnDialog()
{
- switch (nResponseId)
- {
- case 101:
- ViewCert();
- break;
- default:
- MessageDialog::response(nResponseId);
- break;
- }
+ disposeOnce();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */