SlateIO.mesa
Copyright Ó 1992, 1993 by Xerox Corporation. All rights reserved.
Christian Jacobi, March 6, 1993 4:20 pm PST
DIRECTORY
Imager USING [Transformation],
IO USING [STREAM],
Rope USING [ROPE],
SF USING [Vec],
Slate USING [Page, Session];
SlateIO: CEDAR DEFINITIONS ~
BEGIN
Page: TYPE = Slate.Page;
Session: TYPE = Slate.Session;
OverWriteMode: TYPE = {never, always, interactive};
IPPrint: PROC [pages: LIST OF Page, printerName: Rope.ROPE, trans: Imager.Transformation ¬ NIL, log: IO.STREAM, server: REF ¬ NIL];
PSPrint: PROC [pages: LIST OF Page, printerName: Rope.ROPE, trans: Imager.Transformation ¬ NIL, log: IO.STREAM, server: REF ¬ NIL];
WriteSlateFile: PROC [pages: LIST OF Page, fileName: Rope.ROPE, log: IO.STREAM, server: REF ¬ NIL, overwrite: OverWriteMode ¬ always];
WriteIPFile: PROC [pages: LIST OF Page, fileName: Rope.ROPE, trans: Imager.Transformation ¬ NIL, log: IO.STREAM, server: REF ¬ NIL, overwrite: OverWriteMode ¬ always];
WritePSFile: PROC [pages: LIST OF Page, fileName: Rope.ROPE, trans: Imager.Transformation ¬ NIL, log: IO.STREAM, server: REF ¬ NIL, overwrite: OverWriteMode ¬ always];
ReadSlateFile: PROC [session: Slate.Session, fileName: Rope.ROPE, log: IO.STREAM, mapEntries: REF ANY ¬ NIL];
ReadIPFile:
PROC [session: Slate.Session, fileName: Rope.
ROPE, log:
IO.
STREAM, pageSize:
SF.Vec ¬ [0, 0], bpp:
INT ¬ 0, mapEntries:
REF
ANY ¬
NIL];
pageSize = intended size of Slate page, in pixels.
END.