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

A Font dictionary object. More...

#include <PDFPrinterSupport.h>

Inheritance diagram for FCFSupport::PDFFileStructures::FontDictionary:
FCFSupport::PDFFileStructures::TypedDictionary FCFSupport::PDFFileStructures::Dictionary FCFSupport::PDFFileStructures::IndirectObject FCFSupport::PDFFileStructures::Type1FontDictionary FCFSupport::PDFFileStructures::PostScriptStandardType1FontDictionary

Public Member Functions

 FontDictionary (const string subtype, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~FontDictionary ()
 Destructor. More...
 
- Public Member Functions inherited from FCFSupport::PDFFileStructures::TypedDictionary
 TypedDictionary (string t, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~TypedDictionary ()
 Destructor. 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

ostream & WriteFontType (ostream &stream) const
 Write the font's subtype. More...
 
virtual ostream & WriteDictionaryElements (ostream &stream) const
 Write this dictionary's elements. More...
 
- Protected Member Functions inherited from FCFSupport::PDFFileStructures::TypedDictionary
ostream & WriteDictionaryType (ostream &stream) const
 Write the dictionary's type. More...
 
virtual ostream & WriteDictionaryElements (ostream &stream) const
 Write this dictionary's elements. More...
 
virtual ostream & WriteDictionaryElements (ostream &stream) const
 Write the elements of a dictionary. More...
 

Private Attributes

string subType
 The type of the font. More...
 

Detailed Description

A Font dictionary object.

Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ FontDictionary()

FCFSupport::PDFFileStructures::FontDictionary::FontDictionary ( const string  subtype,
unsigned long int  objNum = 0L,
unsigned short int  genNum = 0,
CrossReferenceTable tab = NULL 
)
inline

Constructor.

Create a generic font dictionary.

Parameters
subtypeThe type of the font.
objNumThe next object number.
genNumThe generation number.
tabThe cross reference table we are in.

References subType.

◆ ~FontDictionary()

FCFSupport::PDFFileStructures::FontDictionary::~FontDictionary ( )
inline

Destructor.

Member Function Documentation

◆ WriteDictionaryElements()

virtual ostream & FCFSupport::PDFFileStructures::FontDictionary::WriteDictionaryElements ( ostream &  stream) const
inlineprotectedvirtual

Write this dictionary's elements.

Start with its type.

Parameters
streamThe output stream to write to.

Reimplemented from FCFSupport::PDFFileStructures::TypedDictionary.

Reimplemented in FCFSupport::PDFFileStructures::Type1FontDictionary.

References lcc::stream, FCFSupport::PDFFileStructures::TypedDictionary::WriteDictionaryType(), and WriteFontType().

◆ WriteFontType()

ostream & FCFSupport::PDFFileStructures::FontDictionary::WriteFontType ( ostream &  stream) const
inlineprotected

Write the font's subtype.

Parameters
streamThe output stream to write to.

References lcc::stream, and subType.

Referenced by WriteDictionaryElements().

Member Data Documentation

◆ subType

string FCFSupport::PDFFileStructures::FontDictionary::subType
private

The type of the font.

Referenced by FontDictionary(), and WriteFontType().