1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _XMLSECURITY_WARNINGS_HXX 25 #define _XMLSECURITY_WARNINGS_HXX 26 27 #include <vcl/dialog.hxx> 28 #include <svtools/stdctrl.hxx> 29 #include <vcl/button.hxx> 30 #include <svx/simptabl.hxx> 31 32 namespace com { 33 namespace sun { 34 namespace star { 35 namespace security { 36 class XCertificate; } 37 namespace xml { namespace crypto { 38 class XSecurityEnvironment; }} 39 }}} 40 41 #include <com/sun/star/uno/Sequence.hxx> 42 #include <xmlsecurity/sigstruct.hxx> 43 44 namespace css = com::sun::star; 45 namespace cssu = com::sun::star::uno; 46 namespace dcss = ::com::sun::star; 47 48 class HeaderBar; 49 50 class MacroWarning : public ModalDialog 51 { 52 private: 53 // XSecurityEnvironment is needed for building the certification path 54 cssu::Reference< dcss::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment; 55 56 // cssu::Sequence< cssu::Reference< dcss::security::XCertificate > > maCerts; 57 cssu::Reference< dcss::security::XCertificate > mxCert; 58 59 // FixedImage maQuestionMarkFI; 60 FixedInfo maDocNameFI; 61 FixedInfo maDescr1aFI; 62 FixedInfo maDescr1bFI; 63 FixedInfo maSignsFI; 64 PushButton maViewSignsBtn; 65 FixedInfo maDescr2FI; 66 CheckBox maAlwaysTrustCB; 67 FixedLine maBottomSepFL; 68 PushButton maEnableBtn; 69 CancelButton maDisableBtn; 70 HelpButton maHelpBtn; 71 72 const bool mbSignedMode; // modus of dialog (signed / unsigned macros) 73 74 DECL_LINK( ViewSignsBtnHdl, void* ); 75 DECL_LINK( EnableBtnHdl, void* ); 76 // DECL_LINK( DisableBtnHdl, void* ); 77 78 public: 79 MacroWarning( Window* pParent, cssu::Reference< dcss::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, cssu::Reference< dcss::security::XCertificate >& _rxCert ); 80 MacroWarning( Window* pParent ); 81 ~MacroWarning(); 82 }; 83 84 #endif 85 86