tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / include / oox / crypto / DocumentEncryption.hxx
blobc2a3bd4ed5c246d02a66dc604b1898d0729bf7d7
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 */
11 #ifndef INCLUDED_OOX_CRYPTO_DOCUMENTENCRYPTION_HXX
12 #define INCLUDED_OOX_CRYPTO_DOCUMENTENCRYPTION_HXX
14 #include <com/sun/star/uno/Reference.hxx>
15 #include <com/sun/star/uno/Sequence.hxx>
17 namespace com::sun::star {
18 namespace io { class XStream; }
19 namespace packages { class XPackageEncryption; }
20 namespace beans { struct NamedValue; }
21 namespace uno { class XComponentContext; }
24 namespace oox::ole { class OleStorage; }
26 namespace oox::crypto {
28 class DocumentEncryption
30 private:
31 css::uno::Reference< css::uno::XComponentContext > mxContext;
32 css::uno::Reference< css::io::XStream > mxDocumentStream;
33 oox::ole::OleStorage& mrOleStorage;
35 css::uno::Reference< css::packages::XPackageEncryption > mxPackageEncryption;
36 const css::uno::Sequence< css::beans::NamedValue >& mMediaEncData;
38 public:
39 DocumentEncryption(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
40 css::uno::Reference< css::io::XStream > const & xDocumentStream,
41 oox::ole::OleStorage& rOleStorage,
42 const css::uno::Sequence< css::beans::NamedValue >& rMediaEncData);
44 bool encrypt();
48 } // namespace oox::crypto
50 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */