1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27 #ifndef UUI_UNKNOWNAUTH_HXX 28 #define UUI_UNKNOWNAUTH_HXX 29 30 31 #include <vcl/dialog.hxx> 32 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> 40 41 namespace cssu = com::sun::star::uno; 42 namespace dcss = ::com::sun::star; 43 44 45 using namespace com::sun::star; 46 47 //===================================================================== 48 //= Https_UADialog 49 //===================================================================== 50 class UnknownAuthDialog : public ModalDialog 51 { 52 private: 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; 59 FixedLine m_aLine; 60 FixedText m_aLabel1; 61 FixedImage m_aWarnImage; 62 63 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& m_xServiceFactory; 64 const cssu::Reference< dcss::security::XCertificate >& m_rXCert; 65 Window* m_pParent; 66 ResMgr* pResourceMgr; 67 68 DECL_LINK( OKHdl_Impl, PushButton * ); 69 DECL_LINK( ViewCertHdl_Impl, PushButton * ); 70 71 public: 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, 75 ResMgr * pResMgr ); 76 77 const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > getServiceFactory() { return m_xServiceFactory; }; 78 79 cssu::Reference< dcss::security::XCertificate > getCert() { return m_rXCert; }; 80 81 Window* getParent() { return m_pParent; }; 82 83 void setDescriptionText( const rtl::OUString &aText ) { m_aLabel1.SetText( aText ); }; 84 85 }; 86 87 #endif // UUI_UNKNOWNAUTH_HXX 88