11#ifndef INCLUDED_OOX_CRYPTO_DOCUMENTDECRYPTION_HXX
12#define INCLUDED_OOX_CRYPTO_DOCUMENTDECRYPTION_HXX
14#include <com/sun/star/beans/NamedValue.hpp>
15#include <com/sun/star/uno/Reference.hxx>
16#include <com/sun/star/uno/Sequence.hxx>
17#include <rtl/ustring.hxx>
20 namespace beans {
struct NamedValue; }
21 namespace io {
class XInputStream; }
22 namespace io {
class XStream; }
23 namespace uno {
class XComponentContext; }
24 namespace packages {
class XPackageEncryption; }
27namespace oox::ole {
class OleStorage; }
34 css::uno::Reference< css::uno::XComponentContext >
mxContext;
42 bool decrypt(
const css::uno::Reference< css::io::XStream >& xDocumentStream);
bool readEncryptionInfo()
bool decrypt(const css::uno::Reference< css::io::XStream > &xDocumentStream)
DocumentDecryption(css::uno::Reference< css::uno::XComponentContext > xContext, oox::ole::OleStorage &rOleStorage)
css::uno::Reference< css::packages::XPackageEncryption > mxPackageEncryption
oox::ole::OleStorage & mrOleStorage
css::uno::Sequence< css::beans::NamedValue > createEncryptionData(const OUString &rPassword)
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::Sequence< css::beans::NamedValue > maStreamsSequence
bool generateEncryptionKey(const OUString &rPassword)
Implements stream access for binary OLE storages.