PRINTER.CPP - the method definitions for the Printer object
Function
|
Printer::Printer
|
Include file
|
PRINTER.CPH
|
Prototype
|
Printer::Printer( int t , enum margins m , enum page_size p )
|
Remarks
|
Printer - the constructor that initializes a printer.
INP : int t - the size of the tabstops
enum margins m - the type of margins to use
enum page_size p - the type of page to use
NOTE : if the file can't be opened, then out_dev is set to NULL to
force subsquent operations to fail
|
Function
|
Printer::~Printer
|
Include file
|
PRINTER.CPH
|
Prototype
|
Printer::~Printer()
|
Remarks
|
~Printer - cleanup before destroying the virtual printer
//
NOTE : Only generates output if something was printed
NOTE : Output goes to the printer only when object is destroyed,
( i.e. , report is completed )
NOTE : This routine is now smart enough to use the PRINT deamon if
available
|
Function
|
Printer::SetHeading
|
Include file
|
PRINTER.CPH
|
Prototype
|
void Printer::SetHeading( int head , char *text )
|
Remarks
|
SetHeading - Set/Remove a heading
INP : int head - the heading number (from 1 to MAX_HDRS)
char *text - the text str for the heading
|
Function
|
Printer::ClearHeadings
|
Include file
|
PRINTER.CPH
|
Prototype
|
void Printer::ClearHeadings()
|
Remarks
|
Set all the headings to NULL.
|
Function
|
Printer::Print
|
Include file
|
PRINTER.CPH
|
Prototype
|
void Printer::Print( char *s )
|
Remarks
|
Print a line to the printer.
INP : char *s - the string to print
NOTE : if we run out of room on the page, Print() will ejects the page
and print new page headings.
|
Function
|
Printer::PrintHeading
|
Include file
|
PRINTER.CPH
|
Prototype
|
void Printer::PrintHeading()
|
Remarks
|
Print a page heading.
|
Function
|
Printer::intPrint
|
Include file
|
PRINTER.CPH
|
Prototype
|
void Printer::intPrint( char *s )
|
Remarks
|
intPrint - the internal line printing function
INP : char *s - the string to print
NOTE : There are four characters that invoke special processing :
'\001' - the multispace character: used for justifying
'\014' - the form feed
'\n' - the newline: used to process the end of line
'\t' - the normal tab character
|
Table of Contents
Function Index
generated on 08 February 1998 - 14:44:31
© 1998 Tierra del Fuego Ltd.
|