1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef UUI_SSLWARN_HXX
29 #define UUI_SSLWARN_HXX
32 #include <vcl/dialog.hxx>
34 #include <vcl/fixed.hxx>
35 #include <vcl/button.hxx>
36 #include <com/sun/star/security/XCertificate.hpp>
37 #include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
38 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
40 namespace cssu
= com::sun::star::uno
;
41 namespace dcss
= ::com::sun::star
;
44 using namespace com::sun::star
;
46 //=====================================================================
48 //=====================================================================
49 class SSLWarnDialog
: public ModalDialog
53 PushButton m_aOkButton
;
54 CancelButton m_aCancelButton
;
55 PushButton m_aCommandButtonViewCert
;
57 FixedImage m_aWarnImage
;
60 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
>& m_xServiceFactory
;
61 const cssu::Reference
< dcss::security::XCertificate
>& m_rXCert
;
65 DECL_LINK(OKHdl_Impl
, void *);
66 DECL_LINK(ViewCertHdl_Impl
, void *);
69 SSLWarnDialog( Window
* pParent
,
70 const cssu::Reference
< dcss::security::XCertificate
>& rXCert
,
71 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
,
74 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
> getServiceFactory() { return m_xServiceFactory
; };
76 cssu::Reference
< dcss::security::XCertificate
> getCert() { return m_rXCert
; };
78 Window
* getParent() { return m_pParent
; };
80 void setDescription1Text( const rtl::OUString
&aText
) { m_aLabel1
.SetText( aText
); };
83 #endif // UUI_SSLWARN_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */