bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / oox / crypto / DocumentEncryption.hxx
bloba59f1b118304751c1c1e745d3bccfeecaec9b05d
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 <oox/crypto/AgileEngine.hxx>
19 #include <rtl/ustring.hxx>
21 namespace com { namespace sun { namespace star {
22 namespace io { class XStream; }
23 } } }
25 namespace oox { namespace ole { class OleStorage; } }
27 namespace oox {
28 namespace core {
30 class OOX_DLLPUBLIC DocumentEncryption
32 private:
33 css::uno::Reference< css::io::XStream > mxDocumentStream;
34 oox::ole::OleStorage& mrOleStorage;
35 OUString const maPassword;
37 Standard2007Engine mEngine;
39 public:
40 DocumentEncryption(
41 css::uno::Reference< css::io::XStream > const & xDocumentStream,
42 oox::ole::OleStorage& rOleStorage,
43 const OUString& aPassword);
45 bool encrypt();
49 } // namespace core
50 } // namespace oox
52 #endif
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */