LibreOffice Module uui (master) 1
sslwarndlg.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include "sslwarndlg.hxx"
21
22#include <com/sun/star/security/DocumentDigitalSignatures.hpp>
23
24using namespace css;
25
27{
28 uno::Reference< css::security::XDocumentDigitalSignatures > xDocumentDigitalSignatures
29 = css::security::DocumentDigitalSignatures::createDefault( m_xContext );
30 xDocumentDigitalSignatures->setParentWindow(m_xDialog->GetXWindow());
31 xDocumentDigitalSignatures->showCertificate(m_rXCert);
32}
33
35 const css::uno::Reference< css::security::XCertificate >& rXCert,
36 const css::uno::Reference< css::uno::XComponentContext >& xContext)
37 : MessageDialogController(pParent, "uui/ui/sslwarndialog.ui", "SSLWarnDialog")
38 , m_xView(m_xBuilder->weld_button("view"))
39 , m_xContext(xContext)
40 , m_rXCert(rXCert)
41{
42 m_xView->connect_clicked(LINK(this, SSLWarnDialog, ViewCertHdl));
43}
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Reference< XComponentContext > m_xContext
Reference< XExecutableDialog > m_xDialog
std::unique_ptr< weld::Button > m_xView
Definition: sslwarndlg.hxx:30
SSLWarnDialog(weld::Window *pParent, const css::uno::Reference< css::security::XCertificate > &rXCert, const css::uno::Reference< css::uno::XComponentContext > &xContext)
Definition: sslwarndlg.cxx:34
IMPL_LINK_NOARG(SSLWarnDialog, ViewCertHdl, weld::Button &, void)
Definition: sslwarndlg.cxx:26