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_UNKNOWNAUTH_HXX
29 #define UUI_UNKNOWNAUTH_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 UnknownAuthDialog
: public ModalDialog
52 PushButton m_aCommandButtonOK
;
53 CancelButton m_aCommandButtonCancel
;
54 HelpButton m_aCommandButtonHelp
;
55 PushButton m_aView_Certificate
;
56 RadioButton m_aOptionButtonAccept
;
57 RadioButton m_aOptionButtonDontAccept
;
60 FixedImage m_aWarnImage
;
62 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
>& m_xServiceFactory
;
63 const cssu::Reference
< dcss::security::XCertificate
>& m_rXCert
;
67 DECL_LINK(OKHdl_Impl
, void *);
68 DECL_LINK(ViewCertHdl_Impl
, void *);
71 UnknownAuthDialog( Window
* pParent
,
72 const cssu::Reference
< dcss::security::XCertificate
>& rXCert
,
73 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
,
76 const com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
> getServiceFactory() { return m_xServiceFactory
; };
78 cssu::Reference
< dcss::security::XCertificate
> getCert() { return m_rXCert
; };
80 Window
* getParent() { return m_pParent
; };
82 void setDescriptionText( const rtl::OUString
&aText
) { m_aLabel1
.SetText( aText
); };
86 #endif // UUI_UNKNOWNAUTH_HXX
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */