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_UNKNOWNAUTH_HXX
28 #define UUI_UNKNOWNAUTH_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>
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 //=====================================================================
49 //=====================================================================
50 class UnknownAuthDialog
: public ModalDialog
53 PushButton m_aCommandButtonOK
;
54 CancelButton m_aCommandButtonCancel
;
55 HelpButton m_aCommandButtonHelp
;
56 PushButton m_aView_Certificate
;
57 RadioButton m_aOptionButtonAccept
;
58 RadioButton m_aOptionButtonDontAccept
;
61 FixedImage m_aWarnImage
;
63 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
>& m_xServiceFactory
;
64 const cssu::Reference
< dcss::security::XCertificate
>& m_rXCert
;
68 DECL_LINK( OKHdl_Impl
, PushButton
* );
69 DECL_LINK( ViewCertHdl_Impl
, PushButton
* );
72 UnknownAuthDialog( Window
* pParent
,
73 const cssu::Reference
< dcss::security::XCertificate
>& rXCert
,
74 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
,
77 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
> getServiceFactory() { return m_xServiceFactory
; };
79 cssu::Reference
< dcss::security::XCertificate
> getCert() { return m_rXCert
; };
81 Window
* getParent() { return m_pParent
; };
83 void setDescriptionText( const rtl::OUString
&aText
) { m_aLabel1
.SetText( aText
); };
87 #endif // UUI_UNKNOWNAUTH_HXX