|
Model Railroad System 2.2.2
|
PDF Printer device. More...
#include <PDFPrinter.h>
Public Member Functions | |
| PDFPrinterDevice (const string filename="", const string title_="", PageSize pageSize=Letter, char **outmessage=NULL) | |
| Constructor. More... | |
| virtual bool | OpenPrinter (const string filename, PageSize pageSize=Letter, char **outmessage=NULL) |
| Open the printer file. More... | |
| virtual bool | ClosePrinter (char **outmessage=NULL) |
| Close the printer. More... | |
| virtual bool | SetTypeSpacing (TypeSpacing spacing) |
| Set the type spacing. More... | |
| virtual bool | SetTypeWeight (TypeWeight weight) |
| Set the type weight. More... | |
| virtual bool | SetTypeSlant (TypeSlant slant) |
| Set the type slant. More... | |
| virtual bool | NewPage (const string heading="") |
| Generate a new page. More... | |
| virtual bool | PutLine (const string line="") |
| Put a line of text. More... | |
| virtual bool | Put (const string text) |
| Put a string. More... | |
| virtual bool | Tab (int column) |
| Move to the specified tab column. More... | |
| virtual | ~PDFPrinterDevice () |
| Destructor. More... | |
Public Member Functions inherited from FCFSupport::PrinterDevice | |
| PrinterDevice (const string filename="", const string title="", PageSize pageSize_=Letter, char **outmessage=NULL) | |
| Constructor. More... | |
| virtual bool | OpenPrinter (const string filename, PageSize pageSize_=Letter, char **outmessage=NULL) |
| Member function to open the printer. More... | |
| virtual bool | ClosePrinter (char **outmessage) |
| Close the printer. More... | |
| bool | IsOpenP () const |
| Is the printer open? More... | |
| PageSize | PrinterPageSize () const |
| Return the page size. More... | |
| virtual bool | SetTypeSpacing (TypeSpacing spacing) |
| Set the the spacing. More... | |
| virtual bool | SetTypeWeight (TypeWeight weight) |
| Set the type weight. More... | |
| virtual bool | SetTypeSlant (TypeSlant slant) |
| Set the type slant. More... | |
| virtual bool | NewPage (const string heading="") |
| Perform a page feed and print a heading. More... | |
| virtual bool | PutLine (const string line="") |
| Print out a string and follow it with a new line sequence. More... | |
| virtual bool | Put (const string text) |
| Print a string of text. More... | |
| virtual bool | Put (int number) |
| Print an integer. More... | |
| virtual bool | Put (double number) |
| Print a double. More... | |
| virtual bool | Tab (int column) |
| Tab over to the specified column. More... | |
| virtual | ~PrinterDevice () |
| Destructor. More... | |
Private Member Functions | |
| bool | CreateNewPage () |
| Create a new page. More... | |
| bool | CreateNewStream () |
| Create new stream. More... | |
Private Attributes | |
| PDFFileStructures::CrossReferenceTable | crossReferenceTable |
| PDF Cross reference table. More... | |
| PDFFileStructures::CatalogDictionary * | rootDictionary |
| PDF Root catalog. More... | |
| PDFFileStructures::Page * | currentPage |
| Current PDF Page. More... | |
| PDFFileStructures::PDFStream * | currentStream |
| Current PDF Stream. More... | |
| PDFFileStructures::PageTree * | pageTreeRoot |
| PDF Page Tree root. More... | |
| PDFFileStructures::InformationDirectory * | info |
| Information dictionary. More... | |
| ofstream | printerStream |
| Output stream. More... | |
| string | title |
| Title string. More... | |
| string | currentFontName |
| Current font name. More... | |
| int | lines |
| Number of lines. More... | |
| int | horizontalScaling |
| Current horizontal scaling. More... | |
| int | maxLines |
| Maximum number of lines. More... | |
| bool | partline |
| Partial line flag. More... | |
| bool | needPage |
| Need page flag. More... | |
| int | currentColumn |
| Current column. More... | |
| double | currentColumnFraction |
| Current column fraction. More... | |
Additional Inherited Members | |
Public Types inherited from FCFSupport::PrinterDevice | |
| enum | PageSize { Letter , A4 } |
| Page size selection, for those printers that support different page sizes. More... | |
| enum | TypeSpacing { One , Half , Double } |
| Horizontal type spacing. More... | |
| enum | TypeWeight { Normal , Bold } |
| Type weight. More... | |
| enum | TypeSlant { Roman , Italic } |
| Type slant. More... | |
Protected Attributes inherited from FCFSupport::PrinterDevice | |
| bool | isOpenP |
| Is open flag. More... | |
| PageSize | pageSize |
| Document page size. More... | |
PDF Printer device.
| FCFSupport::PDFPrinterDevice::PDFPrinterDevice | ( | const string | filename = "", |
| const string | title_ = "", |
||
| PageSize | pageSize = Letter, |
||
| char ** | outmessage = NULL |
||
| ) |
Constructor.
Create a PDF Printer device.
| filename | The name of the file to print to. |
| title | The document title. |
| pageSize | The document page size. |
| outmessage | Pointer to get an error message buffer pointer. |
|
virtual |
Destructor.
|
virtual |
Close the printer.
| outmessage | Pointer to get an error message buffer pointer. |
Reimplemented from FCFSupport::PrinterDevice.
|
private |
Create a new page.
|
private |
Create new stream.
|
virtual |
Generate a new page.
| heading | The new page heading string. |
Reimplemented from FCFSupport::PrinterDevice.
|
virtual |
Open the printer file.
| filename | The name of the file to print to. |
| pageSize | The document page size. |
| outmessage | Pointer to get an error message buffer pointer. |
Reimplemented from FCFSupport::PrinterDevice.
|
virtual |
Put a string.
| text | The text string to print. |
Reimplemented from FCFSupport::PrinterDevice.
|
virtual |
|
virtual |
Set the type slant.
| slant | The slant value to set. |
Reimplemented from FCFSupport::PrinterDevice.
|
virtual |
Set the type spacing.
| spacing | The spacing value to set. |
Reimplemented from FCFSupport::PrinterDevice.
|
virtual |
Set the type weight.
| weight | The weight value to set. |
Reimplemented from FCFSupport::PrinterDevice.
|
virtual |
Move to the specified tab column.
| column | the column to move to. |
Reimplemented from FCFSupport::PrinterDevice.
|
private |
PDF Cross reference table.
|
private |
Current column.
|
private |
Current column fraction.
|
private |
Current font name.
|
private |
Current PDF Page.
|
private |
Current PDF Stream.
|
private |
Current horizontal scaling.
|
private |
Information dictionary.
|
private |
Number of lines.
|
private |
Maximum number of lines.
|
private |
Need page flag.
|
private |
PDF Page Tree root.
|
private |
Partial line flag.
|
private |
Output stream.
|
private |
PDF Root catalog.
|
private |
Title string.