Model Railroad System  2.2.1
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
FCFSupport::PDFFileStructures::Page Class Reference

Describes a single page. More...

#include <PDFPrinterSupport.h>

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

Public Member Functions

 Page (ResourceDictionary *r=NULL, Rectangle *mBox=NULL, Rectangle *cBox=NULL, unsigned long int objNum=0L, unsigned short int genNum=0, CrossReferenceTable *tab=NULL)
 Constructor. More...
 
 ~Page ()
 Destructor. More...
 
void AppendStream (PDFStream *s)
 Append a stream to the page. 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

PageTreeparent
 The page's parent page tree. More...
 
ResourceDictionaryresources
 The page's resources. More...
 
RectanglemediaBox
 This page's media box. More...
 
RectanglecropBox
 This page's crop box. More...
 
PDFStreamVector contents
 This page's contents vector. More...
 

Friends

class PageTree
 

Detailed Description

Describes a single page.

Constructor & Destructor Documentation

◆ Page()

FCFSupport::PDFFileStructures::Page::Page ( 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 Page 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.

◆ ~Page()

FCFSupport::PDFFileStructures::Page::~Page ( )
inline

Destructor.

Member Function Documentation

◆ AppendStream()

void FCFSupport::PDFFileStructures::Page::AppendStream ( PDFStream s)
inline

Append a stream to the page.

Parameters
sThe stream to append.

References contents.

◆ WriteDictionaryElements()

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

Write an object directly.

Parameters
streamThe output stream to write to.

Reimplemented from FCFSupport::PDFFileStructures::TypedDictionary.

Friends And Related Function Documentation

◆ PageTree

friend class PageTree
friend

Member Data Documentation

◆ contents

PDFStreamVector FCFSupport::PDFFileStructures::Page::contents
private

This page's contents vector.

Referenced by AppendStream().

◆ cropBox

Rectangle* FCFSupport::PDFFileStructures::Page::cropBox
private

This page's crop box.

Referenced by Page().

◆ mediaBox

Rectangle* FCFSupport::PDFFileStructures::Page::mediaBox
private

This page's media box.

Referenced by Page().

◆ parent

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

The page's parent page tree.

Referenced by Page().

◆ resources

ResourceDictionary* FCFSupport::PDFFileStructures::Page::resources
private

The page's resources.

Referenced by Page().