LibreOffice Module sdext (master) 1
|
#include <pdfparse.hxx>
Public Member Functions | |
PDFObject (unsigned int nNr, unsigned int nGen) | |
virtual | ~PDFObject () override |
virtual bool | emit (EmitContext &rWriteContext) const override |
virtual PDFEntry * | clone () const override |
void | writeStream (EmitContext &rContext, const PDFFile *pPDFFile) 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 |
PDFObject * | findObject (unsigned int nNumber, unsigned int nGeneration) const |
PDFObject * | findObject (PDFObjectRef const *pRef) const |
Public Member Functions inherited from pdfparse::PDFEntry | |
PDFEntry () | |
virtual | ~PDFEntry () |
virtual bool | emit (EmitContext &rWriteContext) const =0 |
virtual PDFEntry * | clone () const =0 |
Public Attributes | |
PDFEntry * | m_pObject |
PDFStream * | m_pStream |
unsigned int | m_nNumber |
unsigned int | m_nGeneration |
Public Attributes inherited from pdfparse::PDFContainer | |
sal_Int32 | m_nOffset |
std::vector< std::unique_ptr< PDFEntry > > | m_aSubElements |
Private Member Functions | |
bool | getDeflatedStream (std::unique_ptr< char[]> &rpStream, unsigned int *pBytes, const PDFContainer *pObjectContainer, EmitContext &rContext) const |
Additional Inherited Members | |
Static Protected Member Functions inherited from pdfparse::PDFEntry | |
static EmitImplData * | getEmitData (EmitContext const &rContext) |
static void | setEmitData (EmitContext &rContext, EmitImplData *pNewEmitData) |
Definition at line 259 of file pdfparse.hxx.
Definition at line 266 of file pdfparse.hxx.
Referenced by clone().
|
overridevirtual |
Definition at line 654 of file pdfentries.cxx.
|
overridevirtual |
Implements pdfparse::PDFEntry.
Definition at line 903 of file pdfentries.cxx.
References pdfparse::PDFContainer::cloneSubElements(), get(), i, pdfparse::PDFContainer::m_aSubElements, m_nGeneration, m_nNumber, pdfparse::PDFStream::m_pDict, m_pObject, m_pStream, and PDFObject().
Referenced by emit().
|
overridevirtual |
Implements pdfparse::PDFEntry.
Definition at line 801 of file pdfentries.cxx.
References aBuf, clone(), pdfparse::PDFContainer::emitSubElements(), pdfparse::EmitContext::getCurPos(), getDeflatedStream(), pdfparse::PDFEntry::getEmitData(), i, pdfparse::EmitImplData::insertXref(), pdfparse::PDFName::m_aName, pdfparse::PDFContainer::m_aSubElements, pdfparse::EmitContext::m_bDecrypt, pdfparse::EmitContext::m_bDeflate, m_nGeneration, m_nNumber, pdfparse::EmitImplData::m_pObjectContainer, pStream, pdfparse::EmitImplData::setDecryptObject(), unzipToBuffer(), and pdfparse::EmitContext::write().
|
private |
Definition at line 658 of file pdfentries.cxx.
References pdfparse::EmitImplData::decrypt(), pdfparse::PDFStream::getDictLength(), pdfparse::PDFEntry::getEmitData(), pdfparse::PDFDict::m_aMap, pdfparse::PDFName::m_aName, pdfparse::PDFContainer::m_aSubElements, pdfparse::EmitContext::m_bDecrypt, pdfparse::PDFStream::m_nBeginOffset, pdfparse::PDFStream::m_nEndOffset, m_nGeneration, m_nNumber, pdfparse::PDFStream::m_pDict, m_pStream, pStream, and pdfparse::EmitContext::readOrigBytes().
Referenced by emit(), and writeStream().
void PDFObject::writeStream | ( | EmitContext & | rContext, |
const PDFFile * | pPDFFile | ||
) | const |
Definition at line 782 of file pdfentries.cxx.
References getDeflatedStream(), pdfparse::EmitContext::m_bDeflate, m_pStream, pStream, unzipToBuffer(), and pdfparse::EmitContext::write().
unsigned int pdfparse::PDFObject::m_nGeneration |
Definition at line 264 of file pdfparse.hxx.
Referenced by clone(), emit(), getDeflatedStream(), pdfparse::PDFStream::getDictLength(), and pdfparse::PDFReader::read().
unsigned int pdfparse::PDFObject::m_nNumber |
Definition at line 263 of file pdfparse.hxx.
Referenced by clone(), emit(), getDeflatedStream(), pdfparse::PDFStream::getDictLength(), and pdfparse::PDFReader::read().
PDFEntry* pdfparse::PDFObject::m_pObject |
Definition at line 261 of file pdfparse.hxx.
Referenced by clone(), pdfparse::PDFStream::getDictLength(), pdfparse::PDFFile::impl_getData(), and write_fonts().
PDFStream* pdfparse::PDFObject::m_pStream |
Definition at line 262 of file pdfparse.hxx.
Referenced by clone(), getDeflatedStream(), and writeStream().