41 lines
19 KiB
Plaintext
41 lines
19 KiB
Plaintext
Copyright (c) 1986 Xerox Corporation. All rights reserved.
|
||
|
||
2
|
||
|
||
29.1 Low-level Hardcopy Variables
|
||
1
|
||
|
||
The following variables are used to define how Interlisp should generate hardcopy of different types. The user should only need to change these variables when it is necessary to access a new type of printer, or define a new hardcopy document type (not often).
|
||
PRINTERTYPES [Variable]
|
||
1
|
||
|
||
The characteristics of a given printer are determined by the value of the list PRINTERTYPES. Each element is a list of the form
|
||
(TYPES (PROPERTY1 VALUE1) (PROPERTY2 VALUE2) ...)
|
||
TYPES is a list of the printer types that this entry addresses. The (PROPERTYn VALUEn) pairs define properties associated with each printer type.
|
||
The printer properties include the following:
|
||
CANPRINT Value is a list of the file types that the printer can print directly.
|
||
STATUS Value is a function that knows how to find out the status of the printer, used by PRINTERSTATUS (("PRINTERSTATUS" . Function)).
|
||
PROPERTIES Value is a function which returns a list of known printer properties.
|
||
SEND Value is a function which invokes the appropriate protocol to send a file to the printer.
|
||
BITMAPSCALE Value is a function of arguments WIDTH and HEIGHT in bits which returns a scale factor for scaling a bitmap.
|
||
BITMAPFILE Value is a form which, when evaluated, converts a bitmap to a file format that the printer will accept.
|
||
Note: The name 8044 is defined on PRINTERTYPES as a synonym for the INTERPRESS printer type. The names SPRUCE, PENGUIN, and DOVER are defined on PRINTERTYPES as synonyms for the PRESS printer type. The printer types FULLPRESS and RAVEN are also defined the same as PRESS, except that these printer types indicate that the printer is a "Full Press" printer that is able to scale bitmap images, in addition to the normal Press printer facilities.
|
||
1
|
||
|
||
PRINTFILETYPES [Variable]
|
||
1
|
||
|
||
The variable PRINTFILETYPES contains information about various file formats, such as Tedit files and Interpress files. The format is similar to PRINTERTYPES. The properties that can be specified include:
|
||
TEST Value is a function which tests a file if it is of the given type. Note that this function is passed an open stream.
|
||
CONVERSION Value is a property list of other file types and funcitons that convert from the specified type to the file format.
|
||
EXTENSION Value is a list of possible file extensions for files of this type.
|
||
1
|
||
|
||
|