Model Railroad System
2.2.1
|
PDF Indirect Object Dictionary, used for named resources in a Resource Dictionary. More...
#include <PDFPrinterSupport.h>
Public Member Functions | |
IndirectObjectDictionary (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL) | |
Constructor. More... | |
~IndirectObjectDictionary () | |
Destructor. More... | |
void | AddIndirectObject (const string name, IndirectObject *obj) |
Add an indirect object. More... | |
int | Size () const |
Return the number of elements in this dictionary. More... | |
![]() | |
Dictionary (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL) | |
Constructor. More... | |
virtual | ~Dictionary () |
Destructor. More... | |
virtual ostream & | WriteDirect (ostream &stream) const |
Write an object directly. More... | |
![]() | |
IndirectObject (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL) | |
Constructor. More... | |
virtual | ~IndirectObject () |
Destructor. More... | |
ostream & | WriteObjectToFile (ostream &stream) |
Write an object indirectly. More... | |
ostream & | WriteIndirectReference (ostream &stream) const |
Write an object indirectly. More... | |
unsigned long int | ObjectNumber () const |
Return this object's object number. More... | |
unsigned short int | GenerationNumber () const |
Return this object's generation number. More... | |
streampos | FileOffset () const |
Return this object's file offset. More... | |
bool | HasOffset () const |
Does the object have a file offset? More... | |
Protected Member Functions | |
virtual ostream & | WriteDictionaryElements (ostream &stream) const |
Write the elements of a dictionary. More... | |
Private Attributes | |
NamedIndirectObjectMap | elements |
The elements in this dictionary. More... | |
PDF Indirect Object Dictionary, used for named resources in a Resource Dictionary.
|
inline |
Constructor.
Create a new dictonary.
objNum | The next object number. |
genNum | The generation number. |
tab | The cross reference table we are in. |
|
inline |
Destructor.
Clean everything up.
|
inline |
Add an indirect object.
name | The name of the object. |
obj | The object itself. |
References elements.
Referenced by FCFSupport::PDFFileStructures::ResourceDictionary::AddColorSpace(), FCFSupport::PDFFileStructures::ResourceDictionary::AddExternalGraphicsState(), FCFSupport::PDFFileStructures::ResourceDictionary::AddFont(), FCFSupport::PDFFileStructures::ResourceDictionary::AddPattern(), FCFSupport::PDFFileStructures::ResourceDictionary::AddProperties(), FCFSupport::PDFFileStructures::ResourceDictionary::AddShading(), and FCFSupport::PDFFileStructures::ResourceDictionary::AddXObject().
|
inline |
Return the number of elements in this dictionary.
References elements.
|
inlineprotectedvirtual |
Write the elements of a dictionary.
stream | The output stream to write to. |
Reimplemented from FCFSupport::PDFFileStructures::Dictionary.
References elements, FCFSupport::PDFFileStructures::IndirectObject::HasOffset(), lcc::stream, FCFSupport::PDFFileStructures::IndirectObject::WriteDirect(), and FCFSupport::PDFFileStructures::IndirectObject::WriteIndirectReference().
|
private |
The elements in this dictionary.
Referenced by AddIndirectObject(), Size(), and WriteDictionaryElements().