nss: upgrade to release 3.73
[LibreOffice.git] / uui / source / secmacrowarnings.hxx
blob536f70e09fc21c6136051829be76c0e8aa769014
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_UUI_SOURCE_SECMACROWARNINGS_HXX
21 #define INCLUDED_UUI_SOURCE_SECMACROWARNINGS_HXX
23 #include <com/sun/star/embed/XStorage.hpp>
24 #include <com/sun/star/security/DocumentSignatureInformation.hpp>
25 #include <com/sun/star/uno/Sequence.hxx>
26 #include <vcl/weld.hxx>
28 namespace com::sun::star::security { class XCertificate; }
31 class MacroWarning : public weld::MessageDialogController
33 private:
34 std::unique_ptr<weld::Widget> mxGrid;
35 std::unique_ptr<weld::Label> mxSignsFI;
36 std::unique_ptr<weld::Button> mxViewSignsBtn;
37 std::unique_ptr<weld::CheckButton> mxAlwaysTrustCB;
38 std::unique_ptr<weld::Button> mxEnableBtn;
39 std::unique_ptr<weld::Button> mxDisableBtn;
41 css::uno::Reference< css::security::XCertificate > mxCert;
42 css::uno::Reference< css::embed::XStorage > mxStore;
43 OUString maODFVersion;
44 const css::uno::Sequence< css::security::DocumentSignatureInformation >* mpInfos;
46 const bool mbShowSignatures;
47 sal_Int32 mnActSecLevel;
49 DECL_LINK(ViewSignsBtnHdl, weld::Button&, void);
50 DECL_LINK(EnableBtnHdl, weld::Button&, void);
51 DECL_LINK(AlwaysTrustCheckHdl, weld::Button&, void);
53 void InitControls();
55 public:
56 MacroWarning(weld::Window* pParent, bool _bShowSignatures);
58 void SetDocumentURL( const OUString& rDocURL );
60 void SetStorage( const css::uno::Reference < css::embed::XStorage >& rxStore,
61 const OUString& aODFVersion,
62 const css::uno::Sequence< css::security::DocumentSignatureInformation >& _rInfos );
63 void SetCertificate( const css::uno::Reference< css::security::XCertificate >& _rxCert );
66 #endif
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */