Nectarine.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Giordano Bruno Beretta, April 11, 1986 7:57:41 pm PST
gbb August 20, 1986 4:31:36 pm PDT
Implements an alternate way to produce Interpress masters from ChipNDale drawings. The difference is in the user interface. It is similar to the one in programs by Imaging Folks, and it is simpler to use for casual users.
Fuzzless and sweeter than peaches (Suzanne Williams)
DIRECTORY
CD USING [Design, Rect],
Imager USING [Rectangle],
Rope USING [ROPE];
Nectarine: CEDAR DEFINITIONS
~ BEGIN
invalidPrinter, communicationsFailure, tooComplex: SIGNAL;
DoInterpress: PROC [design: CD.Design, chipNDaleWindow: CD.Rect, clip, onlySel: BOOLFALSE, abortFlag: REF BOOL] RETURNS [masterName: Rope.ROPE, usedField: Imager.Rectangle];
Produces an Interpress master of the design. The master is scaled such that it fits a whole page. chipNDaleWindow is either the bounding box of the design or a window in it. In the latter case, clip must be set to TRUE, and objects completetly outside the window will be ommitted from the Interpress master (because of things like mitering, actual clipping can be performed only when a bitmap is created).
The usedField is specified in millimeters. It is useful for subsequent processing of the Interpress master as long as this field cannot be specified in the preamble of Interpress masters themselves.
If onlySel is true, only the selected object are included in the Interpress master.
May return signal tooComplex if it is believed that there might be too many rectangles in a horizontal cross section. The used criterion is the width of the design; if you do not agree, use the Interpreter to increase the risk.
Print: PROC [masterName: Rope.ROPE, printerKey: ATOM, copies: INT ← 1] RETURNS [peachName: Rope.ROPE]
Produces (if necessary) a PD file from an Interpress master and ships it to the printer. Valid printer keys are $NVersatec, $NColorVersatec, $NBw400, $NColor400, $NRaven300. May return signals invalidPrinter and communicationsFailure.
END.