Model Railroad System 2.2.2
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
FCFSupport::PDFFileStructures::ResourceDictionary Class Reference

Resource dictionary. More...

#include <PDFPrinterSupport.h>

Inheritance diagram for FCFSupport::PDFFileStructures::ResourceDictionary:
FCFSupport::PDFFileStructures::Dictionary FCFSupport::PDFFileStructures::IndirectObject

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...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::Dictionary
 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...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::IndirectObject
 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...
 

Detailed Description

Resource dictionary.

Holds various named resources for indirect access.

Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ ResourceDictionary()

FCFSupport::PDFFileStructures::ResourceDictionary::ResourceDictionary ( unsigned long int  objNum = 0L,
unsigned short int  genNum = 0,
CrossReferenceTable tab = NULL 
)
inline

Constructor.

Create a new dictonary.

Parameters
objNumThe next object number.
genNumThe generation number.
tabThe cross reference table we are in.

◆ ~ResourceDictionary()

FCFSupport::PDFFileStructures::ResourceDictionary::~ResourceDictionary ( )
inline

Destructor.

Member Function Documentation

◆ AddColorSpace()

void FCFSupport::PDFFileStructures::ResourceDictionary::AddColorSpace ( const string  name,
IndirectObject obj 
)
inline

Add an Color Space resource.

Parameters
nameThe resource name.
objThe indirect object.

References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and colorSpace.

◆ AddExternalGraphicsState()

void FCFSupport::PDFFileStructures::ResourceDictionary::AddExternalGraphicsState ( const string  name,
IndirectObject obj 
)
inline

Add an External Graphics State resource.

Parameters
nameThe resource name.
objThe indirect object.

References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and extGState.

◆ AddFont()

void FCFSupport::PDFFileStructures::ResourceDictionary::AddFont ( const string  name,
IndirectObject obj 
)
inline

Add an Font resource.

Parameters
nameThe resource name.
objThe indirect object.

References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and font.

◆ AddPattern()

void FCFSupport::PDFFileStructures::ResourceDictionary::AddPattern ( const string  name,
IndirectObject obj 
)
inline

Add an Pattern resource.

Parameters
nameThe resource name.
objThe indirect object.

References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and pattern.

◆ AddProcSet()

void FCFSupport::PDFFileStructures::ResourceDictionary::AddProcSet ( string  pname)
inline

Add a procedure set.

Parameters
pnameThe name of the prodecure set to add.

References procSets.

◆ AddProperties()

void FCFSupport::PDFFileStructures::ResourceDictionary::AddProperties ( const string  name,
IndirectObject obj 
)
inline

Add an Properties resource.

Parameters
nameThe resource name.
objThe indirect object.

References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and properties.

◆ AddShading()

void FCFSupport::PDFFileStructures::ResourceDictionary::AddShading ( const string  name,
IndirectObject obj 
)
inline

Add an Shading resource.

Parameters
nameThe resource name.
objThe indirect object.

References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and shading.

◆ AddXObject()

void FCFSupport::PDFFileStructures::ResourceDictionary::AddXObject ( const string  name,
IndirectObject obj 
)
inline

Add an External Object resource.

Parameters
nameThe resource name.
objThe indirect object.

References FCFSupport::PDFFileStructures::IndirectObjectDictionary::AddIndirectObject(), and xObject.

◆ WriteDictionaryElements()

virtual ostream & FCFSupport::PDFFileStructures::ResourceDictionary::WriteDictionaryElements ( ostream &  stream) const
protectedvirtual

Write the elements of a dictionary.

Parameters
streamThe output stream to write to.

Reimplemented from FCFSupport::PDFFileStructures::Dictionary.

Member Data Documentation

◆ colorSpace

IndirectObjectDictionary FCFSupport::PDFFileStructures::ResourceDictionary::colorSpace
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().

◆ extGState

IndirectObjectDictionary FCFSupport::PDFFileStructures::ResourceDictionary::extGState
private

A dictionary that maps resource names to graphics state parameters dictionaries.

Referenced by AddExternalGraphicsState().

◆ font

IndirectObjectDictionary FCFSupport::PDFFileStructures::ResourceDictionary::font
private

A Dictionary that maps resource names to font dictionaries.

Referenced by AddFont().

◆ pattern

IndirectObjectDictionary FCFSupport::PDFFileStructures::ResourceDictionary::pattern
private

A Dictionary that maps resource names to pattern objects.

Referenced by AddPattern().

◆ procSets

PDFNameArray FCFSupport::PDFFileStructures::ResourceDictionary::procSets
private

An array of predefined preseture set names.

Referenced by AddProcSet().

◆ properties

IndirectObjectDictionary FCFSupport::PDFFileStructures::ResourceDictionary::properties
private

A Dictionary that maps resource names to property list dictionaries for marked content.

Referenced by AddProperties().

◆ shading

IndirectObjectDictionary FCFSupport::PDFFileStructures::ResourceDictionary::shading
private

A Dictionary that maps resource names to shading dictionaries.

Referenced by AddShading().

◆ xObject

IndirectObjectDictionary FCFSupport::PDFFileStructures::ResourceDictionary::xObject
private

A Dictionary that maps resource names to external objects.

Referenced by AddXObject().