LibreOffice Module oox (master) 1
Public Member Functions | Private Attributes | List of all members
oox::crypto::DocumentDecryption Class Reference

#include <DocumentDecryption.hxx>

Collaboration diagram for oox::crypto::DocumentDecryption:
[legend]

Public Member Functions

 DocumentDecryption (css::uno::Reference< css::uno::XComponentContext > xContext, oox::ole::OleStorage &rOleStorage)
 
bool decrypt (const css::uno::Reference< css::io::XStream > &xDocumentStream)
 
bool readEncryptionInfo ()
 
bool generateEncryptionKey (const OUString &rPassword)
 
css::uno::Sequence< css::beans::NamedValue > createEncryptionData (const OUString &rPassword)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > mxContext
 
oox::ole::OleStoragemrOleStorage
 
css::uno::Sequence< css::beans::NamedValue > maStreamsSequence
 
css::uno::Reference< css::packages::XPackageEncryption > mxPackageEncryption
 

Detailed Description

Definition at line 31 of file DocumentDecryption.hxx.

Constructor & Destructor Documentation

◆ DocumentDecryption()

oox::crypto::DocumentDecryption::DocumentDecryption ( css::uno::Reference< css::uno::XComponentContext >  xContext,
oox::ole::OleStorage rOleStorage 
)

Member Function Documentation

◆ createEncryptionData()

uno::Sequence< beans::NamedValue > oox::crypto::DocumentDecryption::createEncryptionData ( const OUString &  rPassword)

Definition at line 185 of file DocumentDecryption.cxx.

References mxPackageEncryption.

◆ decrypt()

bool oox::crypto::DocumentDecryption::decrypt ( const css::uno::Reference< css::io::XStream > &  xDocumentStream)

◆ generateEncryptionKey()

bool oox::crypto::DocumentDecryption::generateEncryptionKey ( const OUString &  rPassword)

Definition at line 88 of file DocumentDecryption.cxx.

References mxPackageEncryption.

◆ readEncryptionInfo()

bool oox::crypto::DocumentDecryption::readEncryptionInfo ( )

Member Data Documentation

◆ maStreamsSequence

css::uno::Sequence<css::beans::NamedValue> oox::crypto::DocumentDecryption::maStreamsSequence
private

Definition at line 36 of file DocumentDecryption.hxx.

Referenced by DocumentDecryption(), and readEncryptionInfo().

◆ mrOleStorage

oox::ole::OleStorage& oox::crypto::DocumentDecryption::mrOleStorage
private

Definition at line 35 of file DocumentDecryption.hxx.

Referenced by decrypt(), DocumentDecryption(), and readEncryptionInfo().

◆ mxContext

css::uno::Reference< css::uno::XComponentContext > oox::crypto::DocumentDecryption::mxContext
private

Definition at line 34 of file DocumentDecryption.hxx.

Referenced by readEncryptionInfo().

◆ mxPackageEncryption

css::uno::Reference< css::packages::XPackageEncryption > oox::crypto::DocumentDecryption::mxPackageEncryption
private

The documentation for this class was generated from the following files: