LibreOffice Module sdext (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
pdfparse::PDFFile Struct Referencefinal

#include <pdfparse.hxx>

Inheritance diagram for pdfparse::PDFFile:
[legend]
Collaboration diagram for pdfparse::PDFFile:
[legend]

Public Member Functions

 PDFFile ()
 
virtual ~PDFFile () override
 
virtual bool emit (EmitContext &rWriteContext) const override
 
virtual PDFEntryclone () const override
 
bool isEncrypted () const
 
bool usesSupportedEncryptionFormat () const
 
bool setupDecryptionData (const OString &rPwd) const
 
bool decrypt (const sal_uInt8 *pInBuffer, sal_uInt32 nLen, sal_uInt8 *pOutBuffer, unsigned int nObject, unsigned int nGeneration) const
 
- Public Member Functions inherited from pdfparse::PDFContainer
 PDFContainer ()
 
virtual ~PDFContainer () override
 
bool emitSubElements (EmitContext &rWriteContext) const
 
void cloneSubElements (std::vector< std::unique_ptr< PDFEntry > > &rNewSubElements) const
 
PDFObjectfindObject (unsigned int nNumber, unsigned int nGeneration) const
 
PDFObjectfindObject (PDFObjectRef const *pRef) const
 
- Public Member Functions inherited from pdfparse::PDFEntry
 PDFEntry ()
 
virtual ~PDFEntry ()
 
virtual bool emit (EmitContext &rWriteContext) const =0
 
virtual PDFEntryclone () const =0
 

Public Attributes

unsigned int m_nMajor
 
unsigned int m_nMinor
 
- Public Attributes inherited from pdfparse::PDFContainer
sal_Int32 m_nOffset
 
std::vector< std::unique_ptr< PDFEntry > > m_aSubElements
 

Private Member Functions

PDFFileImplDataimpl_getData () const
 

Private Attributes

std::unique_ptr< PDFFileImplDatam_pData
 

Additional Inherited Members

- Static Protected Member Functions inherited from pdfparse::PDFEntry
static EmitImplDatagetEmitData (EmitContext const &rContext)
 
static void setEmitData (EmitContext &rContext, EmitImplData *pNewEmitData)
 

Detailed Description

Definition at line 230 of file pdfparse.hxx.

Constructor & Destructor Documentation

◆ PDFFile()

PDFFile::PDFFile ( )

Definition at line 1047 of file pdfentries.cxx.

Referenced by clone().

◆ ~PDFFile()

PDFFile::~PDFFile ( )
overridevirtual

Definition at line 1052 of file pdfentries.cxx.

Member Function Documentation

◆ clone()

PDFEntry * PDFFile::clone ( ) const
overridevirtual

◆ decrypt()

bool PDFFile::decrypt ( const sal_uInt8 pInBuffer,
sal_uInt32  nLen,
sal_uInt8 pOutBuffer,
unsigned int  nObject,
unsigned int  nGeneration 
) const

Definition at line 1061 of file pdfentries.cxx.

References comphelper::Hash::calculateHash(), i, isEncrypted(), and m_pData.

Referenced by pdfparse::EmitImplData::decrypt().

◆ emit()

bool PDFFile::emit ( EmitContext rWriteContext) const
overridevirtual

◆ impl_getData()

PDFFileImplData * PDFFile::impl_getData ( ) const
private

◆ isEncrypted()

bool PDFFile::isEncrypted ( ) const

◆ setupDecryptionData()

bool PDFFile::setupDecryptionData ( const OString &  rPwd) const

◆ usesSupportedEncryptionFormat()

bool PDFFile::usesSupportedEncryptionFormat ( ) const

Definition at line 1210 of file pdfentries.cxx.

References m_pData.

Referenced by pdfi::checkEncryption(), and setupDecryptionData().

Member Data Documentation

◆ m_nMajor

unsigned int pdfparse::PDFFile::m_nMajor

Definition at line 236 of file pdfparse.hxx.

Referenced by clone(), and emit().

◆ m_nMinor

unsigned int pdfparse::PDFFile::m_nMinor

Definition at line 237 of file pdfparse.hxx.

Referenced by clone(), and emit().

◆ m_pData

std::unique_ptr<PDFFileImplData> pdfparse::PDFFile::m_pData
mutableprivate

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