summaryrefslogtreecommitdiff
path: root/uui/source/sslwarndlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-23 09:35:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-26 15:27:09 +0000
commit942f05996bc287923cdbcae12c64e57adf8ec975 (patch)
tree7005380763a9ecb93f5f27c28174633b9774abb7 /uui/source/sslwarndlg.cxx
parentc410a3dcfeb68ba2247c0d879727afe4ca8ed3da (diff)
convert remaining ErrorBox to weld::MessageDialog
and convert remaining QueryBox to weld::MessageDialog Change-Id: Ifb4c316dee8eabf57c4940c44e29c65a2781aa6c
Diffstat (limited to 'uui/source/sslwarndlg.cxx')
-rw-r--r--uui/source/sslwarndlg.cxx23
1 files changed, 7 insertions, 16 deletions
diff --git a/uui/source/sslwarndlg.cxx b/uui/source/sslwarndlg.cxx
index 5db56f855a95..df20f8f71715 100644
--- a/uui/source/sslwarndlg.cxx
+++ b/uui/source/sslwarndlg.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <vcl/msgbox.hxx>
+#include <vcl/svapp.hxx>
#include <ids.hxx>
#include "sslwarndlg.hxx"
@@ -27,7 +27,7 @@
using namespace css;
-IMPL_LINK_NOARG(SSLWarnDialog, ViewCertHdl, ::Button*, void)
+IMPL_LINK_NOARG(SSLWarnDialog, ViewCertHdl, weld::Button&, void)
{
uno::Reference< css::security::XDocumentDigitalSignatures > xDocumentDigitalSignatures;
@@ -36,25 +36,16 @@ IMPL_LINK_NOARG(SSLWarnDialog, ViewCertHdl, ::Button*, void)
xDocumentDigitalSignatures.get()->showCertificate(m_rXCert);
}
-SSLWarnDialog::SSLWarnDialog(vcl::Window* pParent,
+SSLWarnDialog::SSLWarnDialog(weld::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_xBuilder(Application::CreateBuilder(pParent, "uui/ui/sslwarndialog.ui"))
+ , m_xDialog(m_xBuilder->weld_message_dialog("SSLWarnDialog"))
+ , m_xView(m_xBuilder->weld_button("view"))
, m_xContext(xContext)
, m_rXCert(rXCert)
{
-}
-
-void SSLWarnDialog::dispose()
-{
- m_xView.clear();
- MessageDialog::dispose();
-}
-
-SSLWarnDialog::~SSLWarnDialog()
-{
- disposeOnce();
+ m_xView->connect_clicked(LINK(this, SSLWarnDialog, ViewCertHdl));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */