PrintFile

PrintFile

Superclass
Object

Subclasses
none

Referenced By
PrintFile, PrintFileInterface

This class does the printing work.  It takes the model requested to print, the page
orientation, the print medium, the title, the footer, the report date, and possibly
disclaimer and filename for printing.

It then initializes everything and prints on the specified graphics context which could be
a printer device or file.  Basically you just call PrintFileInterface from your desired
window to print and let it set up everything for printing....then we do all of the work
for printing the desired results.

Instance Variables:
model <ApplicationModel> Contains an instance of the model attempting to print.
footerTxt <String> Contains the string to be printed as the footer.
title <String> Contains the string to be printed as the title.
reportDate <Symbol> Indicates the format of the print date. Valid values: #none (do not print the date on the printout) #date (print the date in the format DD-Mon-YYYY) #timestamp (print the date and time in the format DD-Mon-YYYY HH:MM:SS am/pm)
fileName <String> Contains the file specification to write to when printMedium is #file.
pageOrientation <Symbol> Indicates the orientation of the report. Valid values: #portrait #landscape.
printMedium <Symbol> Indicates the medium to print on. Valid values: #file (write to file and do not print) #printer (write to temporary file, print, and delete temporary file)
dateString <String> [The Date String to be printed]
disclaimerTxt <String> [Contains the disclaimer string to be displayed on the report]
legendText <String> [The Legend String to be printed]
pagesPrinted <String> [The number of pages printed] Note: footerTxt, title, and disclaimerTxt can force a carriage return by placing a backslash (\) at the point in the string where the carriage return should be placed. Developed By: Joseph W. Yoder (yoder@cs.uiuc.edu) and Cathy Roling (rolinca@cat.com)