Model Railroad System 2.2.2
|
Resource dictionary. More...
#include <PDFPrinterSupport.h>
Public Member Functions | |
ResourceDictionary (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL) | |
Constructor. More... | |
~ResourceDictionary () | |
Destructor. More... | |
void | AddProcSet (string pname) |
Add a procedure set. More... | |
void | AddExternalGraphicsState (const string name, IndirectObject *obj) |
Add an External Graphics State resource. More... | |
void | AddColorSpace (const string name, IndirectObject *obj) |
Add an Color Space resource. More... | |
void | AddPattern (const string name, IndirectObject *obj) |
Add an Pattern resource. More... | |
void | AddShading (const string name, IndirectObject *obj) |
Add an Shading resource. More... | |
void | AddXObject (const string name, IndirectObject *obj) |
Add an External Object resource. More... | |
void | AddFont (const string name, IndirectObject *obj) |
Add an Font resource. More... | |
void | AddProperties (const string name, IndirectObject *obj) |
Add an Properties resource. 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... | |
virtual ostream & | WriteDirect (ostream &stream) const =0 |
Write an object directly. 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... | |
virtual ostream & | WriteDictionaryElements (ostream &stream) const |
Write the elements of a dictionary. More... | |
Private Attributes | |
IndirectObjectDictionary | extGState |
A dictionary that maps resource names to graphics state parameters dictionaries. More... | |
IndirectObjectDictionary | colorSpace |
A dictionary that maps each resource name to either the name of a device-dependent color space or to an array describing a color space. More... | |
IndirectObjectDictionary | pattern |
A Dictionary that maps resource names to pattern objects. More... | |
IndirectObjectDictionary | shading |
A Dictionary that maps resource names to shading dictionaries. More... | |
IndirectObjectDictionary | xObject |
A Dictionary that maps resource names to external objects. More... | |
IndirectObjectDictionary | font |
A Dictionary that maps resource names to font dictionaries. More... | |
IndirectObjectDictionary | properties |
A Dictionary that maps resource names to property list dictionaries for marked content. More... | |
PDFNameArray | procSets |
An array of predefined preseture set names. More... | |
Resource dictionary.
Holds various named resources for indirect access.
|
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.
|
inline |
Add an Color Space resource.
name | The resource name. |
obj | The indirect object. |
References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and colorSpace.
|
inline |
Add an External Graphics State resource.
name | The resource name. |
obj | The indirect object. |
References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and extGState.
|
inline |
Add an Font resource.
name | The resource name. |
obj | The indirect object. |
References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and font.
|
inline |
Add an Pattern resource.
name | The resource name. |
obj | The indirect object. |
References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and pattern.
|
inline |
|
inline |
Add an Properties resource.
name | The resource name. |
obj | The indirect object. |
References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and properties.
|
inline |
Add an Shading resource.
name | The resource name. |
obj | The indirect object. |
References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and shading.
|
inline |
Add an External Object resource.
name | The resource name. |
obj | The indirect object. |
References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and xObject.
|
protectedvirtual |
Write the elements of a dictionary.
stream | The output stream to write to. |
Reimplemented from FCFSupport::PDFFileStructures::Dictionary.
|
private |
A dictionary that maps each resource name to either the name of a device-dependent color space or to an array describing a color space.
Referenced by AddColorSpace().
|
private |
A dictionary that maps resource names to graphics state parameters dictionaries.
Referenced by AddExternalGraphicsState().
|
private |
A Dictionary that maps resource names to font dictionaries.
Referenced by AddFont().
|
private |
A Dictionary that maps resource names to pattern objects.
Referenced by AddPattern().
|
private |
An array of predefined preseture set names.
Referenced by AddProcSet().
|
private |
A Dictionary that maps resource names to property list dictionaries for marked content.
Referenced by AddProperties().
|
private |
A Dictionary that maps resource names to shading dictionaries.
Referenced by AddShading().
|
private |
A Dictionary that maps resource names to external objects.
Referenced by AddXObject().