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

A tree of pages. More...

#include <PDFPrinterSupport.h>

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

Public Member Functions

 PageTree (ResourceDictionary *r=NULL, Rectangle *mBox=NULL, Rectangle *cBox=NULL, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~PageTree ()
 Destructor. More...
 
void AddPage (Page *thepage)
 Add a page. More...
 
void AddPageTree (PageTree *thepagetree)
 Add a tree of pages. 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

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...
 
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

PageTreeparent
 This page tree's parent. More...
 
ResourceDictionaryresources
 Resources for this page tree. More...
 
RectanglemediaBox
 Media box for this page tree. More...
 
RectanglecropBox
 Crop box for this page tree. More...
 
vector< TypedDictionary * > pagenodes
 The children of this page tree node. More...
 

Detailed Description

A tree of pages.

Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ PageTree()

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

Constructor.

Create a fresh Pager object.

Parameters
rResource Dictionary.
mBoxMedia box.
cBoxCrop box.
objNumThe next object number.
genNumThe generation number.
tabThe cross reference table we are in.

References cropBox, mediaBox, parent, and resources.

◆ ~PageTree()

FCFSupport::PDFFileStructures::PageTree::~PageTree ( )
inline

Destructor.

Member Function Documentation

◆ AddPage()

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

Add a page.

Parameters
thepageThe page to add.

References pagenodes, and FCFSupport::PDFFileStructures::Page::parent.

Referenced by FCFSupport::PDFFileStructures::CatalogDictionary::AddPage().

◆ AddPageTree()

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

Add a tree of pages.

Parameters
thepagetreeThe page tree to add.

References pagenodes, and parent.

Referenced by FCFSupport::PDFFileStructures::CatalogDictionary::AddPageTree().

◆ WriteDictionaryElements()

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

Write an object directly.

Parameters
streamThe output stream to write to.

Reimplemented from FCFSupport::PDFFileStructures::TypedDictionary.

Member Data Documentation

◆ cropBox

Rectangle* FCFSupport::PDFFileStructures::PageTree::cropBox
private

Crop box for this page tree.

Referenced by PageTree().

◆ mediaBox

Rectangle* FCFSupport::PDFFileStructures::PageTree::mediaBox
private

Media box for this page tree.

Referenced by PageTree().

◆ pagenodes

vector<TypedDictionary *> FCFSupport::PDFFileStructures::PageTree::pagenodes
private

The children of this page tree node.

Referenced by AddPage(), and AddPageTree().

◆ parent

PageTree* FCFSupport::PDFFileStructures::PageTree::parent
private

This page tree's parent.

Referenced by AddPageTree(), and PageTree().

◆ resources

ResourceDictionary* FCFSupport::PDFFileStructures::PageTree::resources
private

Resources for this page tree.

Referenced by PageTree().