Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / oox / crypto / DocumentEncryption.hxx
blob287e7db9e4348f64fa4f12063442b4a82ce54e46
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 <oox/dllapi.h>
16 #include <com/sun/star/uno/Reference.hxx>
17 #include <oox/crypto/Standard2007Engine.hxx>
18 #include <rtl/ustring.hxx>
20 namespace com { namespace sun { namespace star {
21 namespace io { class XStream; }
22 } } }
24 namespace oox { namespace ole { class OleStorage; } }
26 namespace oox {
27 namespace core {
29 class OOX_DLLPUBLIC DocumentEncryption
31 private:
32 css::uno::Reference< css::io::XStream > mxDocumentStream;
33 oox::ole::OleStorage& mrOleStorage;
34 OUString maPassword;
36 Standard2007Engine mEngine;
38 public:
39 DocumentEncryption(
40 css::uno::Reference< css::io::XStream > const & xDocumentStream,
41 oox::ole::OleStorage& rOleStorage,
42 const OUString& aPassword);
44 bool encrypt();
48 } // namespace core
49 } // namespace oox
51 #endif
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */