xref: /AOO41X/main/uui/source/sslwarndlg.hxx (revision b16fc3498419feb37efe0fd01e69061f1560d17c)
1*b16fc349SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*b16fc349SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*b16fc349SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*b16fc349SAndrew Rist  * distributed with this work for additional information
6*b16fc349SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*b16fc349SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*b16fc349SAndrew Rist  * "License"); you may not use this file except in compliance
9*b16fc349SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*b16fc349SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*b16fc349SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*b16fc349SAndrew Rist  * software distributed under the License is distributed on an
15*b16fc349SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b16fc349SAndrew Rist  * KIND, either express or implied.  See the License for the
17*b16fc349SAndrew Rist  * specific language governing permissions and limitations
18*b16fc349SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*b16fc349SAndrew Rist  *************************************************************/
21*b16fc349SAndrew Rist 
22*b16fc349SAndrew Rist 
23cdf0e10cSrcweir #ifndef UUI_SSLWARN_HXX
24cdf0e10cSrcweir #define UUI_SSLWARN_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <vcl/dialog.hxx>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <vcl/fixed.hxx>
30cdf0e10cSrcweir #include <vcl/button.hxx>
31cdf0e10cSrcweir #include <com/sun/star/security/XCertificate.hpp>
32cdf0e10cSrcweir #ifndef _COM_SUN_STAR_XML_CRYPTO_XXSECURITYENVIRONMENT_HPP_
33cdf0e10cSrcweir #include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
34cdf0e10cSrcweir #endif
35cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp>
36cdf0e10cSrcweir 
37cdf0e10cSrcweir namespace cssu = com::sun::star::uno;
38cdf0e10cSrcweir namespace dcss = ::com::sun::star;
39cdf0e10cSrcweir 
40cdf0e10cSrcweir 
41cdf0e10cSrcweir using namespace com::sun::star;
42cdf0e10cSrcweir 
43cdf0e10cSrcweir //=====================================================================
44cdf0e10cSrcweir //= Https_WarnDialog
45cdf0e10cSrcweir //=====================================================================
46cdf0e10cSrcweir class SSLWarnDialog : public ModalDialog
47cdf0e10cSrcweir {
48cdf0e10cSrcweir private:
49cdf0e10cSrcweir     FixedText       m_aLabel1;
50cdf0e10cSrcweir     PushButton      m_aOkButton;
51cdf0e10cSrcweir 	CancelButton    m_aCancelButton;
52cdf0e10cSrcweir 	PushButton      m_aCommandButtonViewCert;
53cdf0e10cSrcweir 	FixedLine       m_aLine;
54cdf0e10cSrcweir 	FixedImage      m_aWarnImage;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 
57cdf0e10cSrcweir 	const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& m_xServiceFactory;
58cdf0e10cSrcweir 	const cssu::Reference< dcss::security::XCertificate >& m_rXCert;
59cdf0e10cSrcweir 	Window* m_pParent;
60cdf0e10cSrcweir 	ResMgr*		pResourceMgr;
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 	DECL_LINK( OKHdl_Impl, PushButton * );
63cdf0e10cSrcweir 	DECL_LINK( ViewCertHdl_Impl, PushButton * );
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	public:
66cdf0e10cSrcweir 	SSLWarnDialog( Window* pParent,
67cdf0e10cSrcweir 					   const cssu::Reference< dcss::security::XCertificate >& rXCert,
68cdf0e10cSrcweir 					   const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
69cdf0e10cSrcweir 					   ResMgr * pResMgr );
70cdf0e10cSrcweir 
getServiceFactory()71cdf0e10cSrcweir 	const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > getServiceFactory() { return m_xServiceFactory; };
72cdf0e10cSrcweir 
getCert()73cdf0e10cSrcweir 	cssu::Reference< dcss::security::XCertificate > getCert() { return m_rXCert; };
74cdf0e10cSrcweir 
getParent()75cdf0e10cSrcweir 	Window* getParent() { return m_pParent; };
76cdf0e10cSrcweir 
setDescription1Text(const rtl::OUString & aText)77cdf0e10cSrcweir 	void setDescription1Text( const rtl::OUString &aText ) { m_aLabel1.SetText( aText ); };
78cdf0e10cSrcweir };
79cdf0e10cSrcweir 
80cdf0e10cSrcweir #endif // UUI_SSLWARN_HXX
81cdf0e10cSrcweir 
82