merged tag ooo/DEV300_m102
[LibreOffice.git] / uui / source / sslwarndlg.hxx
blobcf8aa0a5511c6bd9287fa78e32c4f25812d3802d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef UUI_SSLWARN_HXX
28 #define UUI_SSLWARN_HXX
31 #include <vcl/dialog.hxx>
33 #include <vcl/fixed.hxx>
34 #include <vcl/button.hxx>
35 #include <com/sun/star/security/XCertificate.hpp>
36 #ifndef _COM_SUN_STAR_XML_CRYPTO_XXSECURITYENVIRONMENT_HPP_
37 #include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
38 #endif
39 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
41 namespace cssu = com::sun::star::uno;
42 namespace dcss = ::com::sun::star;
45 using namespace com::sun::star;
47 //=====================================================================
48 //= Https_WarnDialog
49 //=====================================================================
50 class SSLWarnDialog : public ModalDialog
52 private:
53 FixedText m_aLabel1;
54 PushButton m_aOkButton;
55 CancelButton m_aCancelButton;
56 PushButton m_aCommandButtonViewCert;
57 FixedLine m_aLine;
58 FixedImage m_aWarnImage;
61 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& m_xServiceFactory;
62 const cssu::Reference< dcss::security::XCertificate >& m_rXCert;
63 Window* m_pParent;
64 ResMgr* pResourceMgr;
66 DECL_LINK( OKHdl_Impl, PushButton * );
67 DECL_LINK( ViewCertHdl_Impl, PushButton * );
69 public:
70 SSLWarnDialog( Window* pParent,
71 const cssu::Reference< dcss::security::XCertificate >& rXCert,
72 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
73 ResMgr * pResMgr );
75 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > getServiceFactory() { return m_xServiceFactory; };
77 cssu::Reference< dcss::security::XCertificate > getCert() { return m_rXCert; };
79 Window* getParent() { return m_pParent; };
81 void setDescription1Text( const rtl::OUString &aText ) { m_aLabel1.SetText( aText ); };
84 #endif // UUI_SSLWARN_HXX