Skip to main content
Home Documents Lisa 09 Printing
09 Printing

09 Printing

Lisa · 1984 · PDF
Filename09_Printing.pdf
Size0.35 MB
Year1984
Subsection toolkit_3.0 / Package_2_Examples
Downloads2
Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute metadata corrections, and join the community chat.
Reader
09 Printing
/
Loading…
OCR / Text contents
PRINTING --------...-----------------------------~----- From: To: Date: Subject: ToolKit Users 12 May 1984 - - Draft: 00:30 ToolKit Printing - Notes Printing in the ToolKit is organized around the concept of the View. Every panel's View is either "printable" or "not printable". The actual code to image a view on the printed page is the same TView.Draw which is used to image the view on the screen; the ToolKit takes care of differences between the resolution of the printer and that of the screen.form8tted Printing issues for a printable view are handled by its PrintManager. Each printable view in an appl ication has its own PrintManager, but usually an application which has more than one printable view wi II use an instance of the same TPrintManager subclass for each of its printable views. When creating a view (using TPanel.NewView or, in special cases, TView.CREATE), the application specifies the PrintManager to be used with it. Specifying NIL for the PrintManager indicates that the view is not to be printable. If a view is to be printable, there are three basic choices for its PrintManager: (1) The vanilla printManager, obtained by calling TPrintManager.CREATE - - this gives you printing but no faci lity for speCifying headings or margins. (2) The 'standard' printManager, of class TStdPrintManager, obtained by can ing TStdPrintManager.CREATE. This printManager gives the user of the apprication an interactive Headings and Margins facility. An application wishing to use this PrintManager must USE the Dialog Building Block, UDialog. (3) If an appl ication is not content with either of the above, it can define its own subclass of TPrintManager (or of TStdPrintManager). TPrintt1anager Class: SUperClass: TObject Defined Subclass: TStdPrintnanager (defined in the Dialog Building Block) Data fields: view: pageView: breakS: The view Whose printing is "anaged The view which draws the headings in the "argins of the page {the size of this view is the size Of one page} ARRAY(vhSelect] Of TArray {of LONGINT} The vertical and horizontal pagebreaks which parti tion the view up into pieces WhiCh will fit onto indivldual pages. (note: breaks[v) hOlds infor"ation for page bre~kS w~ich When drawn on the screen. are represented by verucalllnes). The represe~tation is; the absolute value gives ~he location in the vlew; the Slon tells Whether the break 1S an autOf'auc one (nonnegative) or a "anual (user-set) one (negative) The page Aargins to use when fitting view pieces onto pages; top and left are positive and botto" and right are negative. These TView TView ToolKit Printing Notes - 12 Kay 1084 - 00: 30 - Page 1 of 5 headings: canEdi tPages: Tust {of THeacling} BOOLEAN layoutDialogBox:TDialogBox fra"eBody: BOOLEAN paperLRect: LRect printableLRect: LRect contentLRect: LRect pageRiseDirection: YhSelect nuPtbers are in View resolution. hence the LRect even though the actual nURbers involvecl will be very Sf'all. The heaclings to be printed on the p…

Showing first 3,000 characters of 13,134 total. Open the full document →

mp.ls