Ipelib
Classes | Public Member Functions | List of all members
ipe::PdfDict Class Reference

#include <ipepdfparser.h>

Inherits ipe::PdfObj.

Public Member Functions

 PdfDict ()
 
 ~PdfDict ()
 
virtual const PdfDictdict () const
 
virtual void write (Stream &stream) const
 
void setStream (const Buffer &stream)
 
void add (String key, const PdfObj *obj)
 
const PdfObjget (String key, const PdfFile *file) const
 
int count () const
 
String key (int index) const
 
Buffer stream () const
 
bool deflated () const
 
- Public Member Functions inherited from ipe::PdfObj
virtual ~PdfObj ()=0
 
virtual const PdfNullnull () const
 
virtual const PdfBoolboolean () const
 
virtual const PdfNumbernumber () const
 
virtual const PdfStringstring () const
 
virtual const PdfNamename () const
 
virtual const PdfRefref () const
 
virtual const PdfArrayarray () const
 
String repr () const
 

Detailed Description

The PDF dictionary and stream objects.

A dictionary may or may not have attached stream data.

Constructor & Destructor Documentation

ipe::PdfDict::PdfDict ( )
inlineexplicit
PdfDict::~PdfDict ( )

Member Function Documentation

const PdfDict * PdfDict::dict ( ) const
virtual

Return this object as PDF dictionary object.

Reimplemented from ipe::PdfObj.

void PdfDict::write ( Stream stream) const
virtual
void PdfDict::setStream ( const Buffer stream)

Add stream data to this dictionary.

References stream().

void PdfDict::add ( String  key,
const PdfObj obj 
)

Add a (key, value) pair to the dictionary.

Dictionary takes ownership of obj.

References key().

const PdfObj * PdfDict::get ( String  key,
const PdfFile file 
) const

Look up key in dictionary.

Indirect objects (references) are looked up if file is not zero, and the object referred to is returned. Returns 0 if key is not in dictionary.

References ipe::PdfFile::object().

Referenced by ipe::PdfFile::catalog(), ipe::PdfFile::page(), and ipe::Latex::readPdf().

int ipe::PdfDict::count ( ) const
inline

Referenced by ipe::Latex::readPdf().

String ipe::PdfDict::key ( int  index) const
inline

Referenced by add(), and ipe::Latex::readPdf().

Buffer ipe::PdfDict::stream ( ) const
inline

Referenced by setStream().

bool PdfDict::deflated ( ) const

Is this stream compressed with flate compression?

References ipe::PdfObj::name(), and ipe::PdfName::value().


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