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

Master catalog of the PDF file. More...

#include <PDFPrinterSupport.h>

Inheritance diagram for FCFSupport::PDFFileStructures::CatalogDictionary:
FCFSupport::PDFFileStructures::TypedDictionary FCFSupport::PDFFileStructures::Dictionary FCFSupport::PDFFileStructures::IndirectObject

Public Member Functions

 CatalogDictionary (unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~CatalogDictionary ()
 Destructor. More...
 
void AddPage (Page *thepage)
 Add a page. More...
 
void AddPageTree (PageTree *thepagetree)
 Add a tree of pages. More...
 
void AddPageLabelTree (PageLabelTree *node)
 Add a page label tree node. More...
 
void AddPageLabelDictionary (int number, PageLabelDictionary *pld)
 Add a page label dictionary. 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...
 
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 an object directly. More...
 
- Protected Member Functions inherited from FCFSupport::PDFFileStructures::TypedDictionary
ostream & WriteDictionaryType (ostream &stream) const
 Write the dictionary's type. More...
 

Private Attributes

PageTreepages
 Pages. More...
 
PageLabelTreelabels
 Page labels. More...
 

Detailed Description

Master catalog of the PDF file.

Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ CatalogDictionary()

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

Constructor.

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

References labels, and pages.

◆ ~CatalogDictionary()

FCFSupport::PDFFileStructures::CatalogDictionary::~CatalogDictionary ( )
inline

Destructor.

Member Function Documentation

◆ AddPage()

void FCFSupport::PDFFileStructures::CatalogDictionary::AddPage ( Page thepage)
inline

Add a page.

Parameters
thepageThe page to add.

References FCFSupport::PDFFileStructures::PageTree::AddPage(), and pages.

◆ AddPageLabelDictionary()

void FCFSupport::PDFFileStructures::CatalogDictionary::AddPageLabelDictionary ( int  number,
PageLabelDictionary pld 
)
inline

Add a page label dictionary.

Parameters
numberThe page label dictionary start page number.
pldPage label dictionary pointer.

References FCFSupport::PDFFileStructures::PageLabelTree::AddPageLabelDictionary(), and labels.

◆ AddPageLabelTree()

void FCFSupport::PDFFileStructures::CatalogDictionary::AddPageLabelTree ( PageLabelTree node)
inline

Add a page label tree node.

Parameters
nodeThe page label tree node.

References FCFSupport::PDFFileStructures::PageLabelTree::AddPageLabelTree(), and labels.

◆ AddPageTree()

void FCFSupport::PDFFileStructures::CatalogDictionary::AddPageTree ( PageTree thepagetree)
inline

Add a tree of pages.

Parameters
thepagetreeThe page tree to add.

References FCFSupport::PDFFileStructures::PageTree::AddPageTree(), and pages.

◆ WriteDictionaryElements()

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

Write an object directly.

Parameters
streamThe output stream to write to.

Reimplemented from FCFSupport::PDFFileStructures::TypedDictionary.

Member Data Documentation

◆ labels

PageLabelTree* FCFSupport::PDFFileStructures::CatalogDictionary::labels
private

◆ pages

PageTree* FCFSupport::PDFFileStructures::CatalogDictionary::pages
private

Pages.

Referenced by AddPage(), AddPageTree(), and CatalogDictionary().