DIRECTORY ChoiceButtons, Rope, ViewerClasses, ViewerSpecs; PressScreen: CEDAR DEFINITIONS = BEGIN ROPE: TYPE = Rope.ROPE; Side: TYPE = {leftSide, bothSides, rightSide}; PressScreen: PROCEDURE [pressFileName: ROPE, which: Side]; MagnificationType: TYPE = {fullPage, halfPage, useMagnification}; AISPressScreen: PROCEDURE [ pressFileName: ROPE, sourceHeight: NAT _ ViewerSpecs.screenH, sourceWidth: NAT _ ViewerSpecs.screenW, sourceBottom: NAT _ 0, sourceLeft: NAT _ 0, magnification: REAL _ 0.5, scaleToFit: MagnificationType _ useMagnification, leftMarginInches, rightMarginInches: REAL _ 0.75, landscape: BOOLEAN _ FALSE, borderWidth: REAL _ 2.0, lockViewers: BOOLEAN _ TRUE, displayCursor: BOOLEAN _ FALSE, displayCarets: BOOLEAN _ FALSE] RETURNS[fileName: ROPE]; MagnificationFactorTooLarge: SIGNAL; AISPageAlignmentHackFailed: SIGNAL; NewPressName: PROCEDURE RETURNS [pressFileName: ROPE]; NewAISPressName: PROCEDURE RETURNS [pressFileName: ROPE]; PressScreenTool: TYPE = REF PressScreenToolRec; PressScreenToolRec: TYPE; NewPressScreenTool: PROCEDURE [serverName: ROPE] RETURNS[psTool: PressScreenTool]; END. FPressScreen.mesa Interface to make AIS/press file of display Last edited by Michael Plass on November 15, 1982 1:50 pm Last Edited by: Beach, October 19, 1983 11:21 am Old interface to convert part or all of the bit mapped screen into a press file. Converts the specified region of the bit mapped screen into a combination AIS and Press file. Such files can be used by CedarGraphics or printed by the TSetter. AISPressScreen can raise two signals: MagnificationFactorTooLarge when the specified rectangle will not fit on an 8.5 by 11 inch page with the supplied margins and magnifications; and AISPageAlignmentHackFailed for an internal error expected when the size of SirPress record definitions change (low probability). The specified rectangle will not fit on an 8.5 by 11 inch page with the supplied margins and magnifications An internal error expected when the size of SirPress record definitions change (low probability) Returns a file name like "Screen1.press", "Screen2.press", etc. Returns a file name like "Screen1.ais", "Screen2.ais", etc. Creates a PressScreen tool viewer. ÊјJšœ™Jšœ+™+Jšœ9™9™0J˜—šÏk ˜ J˜Jšœ˜Jšœ˜Jšœ ˜ J˜—Jšœ œ˜ Jš˜J˜Jšœœœ˜Jšœœ$˜.J˜šÏn œ œœ˜:J™P—J˜šœœ*˜AJ˜—š(žœ œœœ%œ&œœœ_œœœœœœœœœœœ œ˜×J™]J™BJšœ¸™¸J˜—šžœœ˜$Jšœk™kJ˜—šžœœ˜#Jšœ`™`J˜—šž œ œœœ˜6Jšœ?™?J™—šžœ œœœ˜9Jšœ;™;—J˜Jšœœœ˜/šœœ˜J˜—šžœ œœœ˜RJ™"J˜—Jšœ˜—…—h