HARDCOPY.LST 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. Listing:
  2. 1 (******************************************************************************)
  3. 2 (* HARDCOPY.MOD *)
  4. 3 (* *)
  5. 4 (* Implements the structures used to initialise printers supported by *)
  6. 5 (* MetaWINDOW. The structures ar initialised using TopSpeed's facility for *)
  7. 6 (* initialising aggregate constants. *)
  8. 7 (* *)
  9. 8 (* PSW 06/28/91 08:30am *)
  10. 9 (******************************************************************************)
  11. 10
  12. 11 IMPLEMENTATION MODULE HardCopy;
  13. 12 (*
  14. 13 * Graphix
  15. 14 * Release 3.7
  16. 15 * (c) Copyright 1986-1992 PMI
  17. 16 * Green Bay, Wisconsin
  18. 17 * (414) 468-6040
  19. 18 * All rights reserved
  20. 19 *
  21. 20 *)
  22. 21
  23. 22
  24. 23 FROM GrConst IMPORT HCInfoRec, HC_ROT, HC_XL, HC_ASC;
  25. 24
  26. 25 CONST
  27. 26
  28. 27 (*** This is about as generic as is possible. Base printer is an 8 pin ***)
  29. 28 (*** Epson model MX-80F/T. Mode is 60 dpi (h) by 72 dpi (v). ***)
  30. 29
  31. 30 _EPLOInfo = HCInfoRec (
  32. ***** ^ not supported yet
  33. 31 8, (* pins *)
  34. 32
  35. 33 7, (* init codes *)
  36. 34 init(ESC,040H,ESC,033H,018H,CR,LF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  37. ***** ^ undeclared identifier
  38. ***** ^ undeclared identifier
  39. ***** ^ undeclared identifier
  40. ***** ^ undeclared identifier
  41. ***** ^ undeclared identifier
  42. ***** ^ not supported yet
  43. 35
  44. 36 2, (* quit, reset codes *)
  45. 37 reset(ESC,040H,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  46. ***** ^ undeclared identifier
  47. ***** ^ undeclared identifier
  48. ***** ^ not supported yet
  49. 38
  50. 39 2, (* line header *)
  51. 40 header(ESC,04BH,0,0,0,0,0,0),
  52. ***** ^ undeclared identifier
  53. ***** ^ undeclared identifier
  54. ***** ^ not supported yet
  55. 41
  56. 42 0, (* postamble *)
  57. 43 pstam(0,0,0,0,0,0,0,0),
  58. ***** ^ undeclared identifier
  59. ***** ^ not supported yet
  60. 44
  61. 45 2, (* line trailer *)
  62. 46 trailer(CR,LF,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  63. ***** ^ undeclared identifier
  64. ***** ^ undeclared identifier
  65. ***** ^ undeclared identifier
  66. ***** ^ not supported yet
  67. 47
  68. 48 HC_ROT, (* Options *)
  69. ***** ^ not supported yet
  70. 49 0, (* printer port *)
  71. 50 hcSIG('H','C'), (* signature *)
  72. ***** ^ undeclared identifier
  73. ***** ^ not supported yet
  74. 51
  75. 52 00FH, (* max index in translate table *)
  76. 53 xlaTable(0,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH)
  77. ***** ^ undeclared identifier
  78. ***** ^ not supported yet
  79. 54 ); (* EPLOInfo *)
  80. 55
  81. 56
  82. 57
  83. 58 (*** This is a 8 pin Epson Mode is 120 dpi (h) by 72 dpi (v). ***)
  84. 59
  85. 60 _EPHIInfo = HCInfoRec
  86. ***** ^ not supported yet
  87. 61 (
  88. 62 8, (* pins *)
  89. 63
  90. 64 7, (* init codes *)
  91. 65 init(ESC,040H,ESC,033H,018H,CR,LF,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  92. ***** ^ undeclared identifier
  93. ***** ^ undeclared identifier
  94. ***** ^ undeclared identifier
  95. ***** ^ undeclared identifier
  96. ***** ^ undeclared identifier
  97. ***** ^ not supported yet
  98. 66
  99. 67 2, (* quit, reset codes *)
  100. 68 reset(ESC,040H,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  101. ***** ^ undeclared identifier
  102. ***** ^ undeclared identifier
  103. ***** ^ not supported yet
  104. 69
  105. 70 2, (* line header *)
  106. 71 header(ESC,04CH,0,0,0,0,0,0),
  107. ***** ^ undeclared identifier
  108. ***** ^ undeclared identifier
  109. ***** ^ not supported yet
  110. 72
  111. 73 0, (* postamble *)
  112. 74 pstam(0,0,0,0,0,0,0,0),
  113. ***** ^ undeclared identifier
  114. ***** ^ not supported yet
  115. 75
  116. 76 2, (* line trailer *)
  117. 77 trailer(CR,LF,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  118. ***** ^ undeclared identifier
  119. ***** ^ undeclared identifier
  120. ***** ^ undeclared identifier
  121. ***** ^ not supported yet
  122. 78
  123. 79 0, (* Options *)
  124. 80 0, (* printer port *)
  125. 81 hcSIG('H','C'), (* signature *)
  126. ***** ^ undeclared identifier
  127. ***** ^ not supported yet
  128. 82
  129. 83 00FH, (* max index in translate table *)
  130. 84 xlaTable(0,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH)
  131. ***** ^ undeclared identifier
  132. ***** ^ not supported yet
  133. 85 ); (* EPHIInfo *)
  134. 86
  135. 87
  136. 88
  137. 89 (*** Hp LaserJet configuration. 75 dpi (h) by 75 dpi (v), rotated. ***)
  138. 90
  139. 91 _HPLOInfo = HCInfoRec
  140. ***** ^ not supported yet
  141. 92 (
  142. 93 1, (* pins *)
  143. 94
  144. 95 11, (* init codes *)
  145. 96 init(ESC,02AH,074H,037H,035H,052H,ESC,02AH,072H,030H,041H,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  146. ***** ^ undeclared identifier
  147. ***** ^ undeclared identifier
  148. ***** ^ undeclared identifier
  149. ***** ^ not supported yet
  150. 97
  151. 98 6, (* quit, reset codes *)
  152. 99 reset(ESC,02AH,052H,042H,CR,FF,0,0,0,0,0,0,0,0,0,0),
  153. ***** ^ undeclared identifier
  154. ***** ^ undeclared identifier
  155. ***** ^ undeclared identifier
  156. ***** ^ undeclared identifier
  157. ***** ^ not supported yet
  158. 100
  159. 101 3, (* line header *)
  160. 102 header(ESC,02AH,062H,0,0,0,0,0),
  161. ***** ^ undeclared identifier
  162. ***** ^ undeclared identifier
  163. ***** ^ not supported yet
  164. 103
  165. 104 1, (* postamble *)
  166. 105 pstam(057H,0,0,0,0,0,0,0),
  167. ***** ^ undeclared identifier
  168. ***** ^ not supported yet
  169. 106
  170. 107 0, (* line trailer *)
  171. 108 trailer(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  172. ***** ^ undeclared identifier
  173. ***** ^ not supported yet
  174. 109
  175. 110 HC_ASC+HC_ROT, (* Options. MUST send ASCII length for HP Laserjet *)
  176. ***** ^ not supported yet
  177. ***** ^ not supported yet
  178. 111 080H, (* printer port *)
  179. 112 hcSIG('H','C'), (* signature *)
  180. ***** ^ undeclared identifier
  181. ***** ^ not supported yet
  182. 113
  183. 114 00FH, (* max index in translate table *)
  184. 115 xlaTable(0,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH)
  185. ***** ^ undeclared identifier
  186. ***** ^ not supported yet
  187. 116 ); (* HPLOInfo *)
  188. 117
  189. 118
  190. 119 (*** Hp LaserJet configuration. 150 dpi (h) by 150 dpi (v), rotated. ***)
  191. 120
  192. 121 _HPMEDInfo = HCInfoRec
  193. ***** ^ not supported yet
  194. 122 (
  195. 123 1, (* pins *)
  196. 124
  197. 125 12, (* init codes *)
  198. 126 init(ESC,02AH,074H,031H,035H,030H,052H,ESC,02AH,072H,030H,041H,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  199. ***** ^ undeclared identifier
  200. ***** ^ undeclared identifier
  201. ***** ^ undeclared identifier
  202. ***** ^ not supported yet
  203. 127
  204. 128 6, (* quit, reset codes *)
  205. 129 reset(ESC,02AH,052H,042H,CR,FF,0,0,0,0,0,0,0,0,0,0),
  206. ***** ^ undeclared identifier
  207. ***** ^ undeclared identifier
  208. ***** ^ undeclared identifier
  209. ***** ^ undeclared identifier
  210. ***** ^ not supported yet
  211. 130
  212. 131 3, (* line header *)
  213. 132 header(ESC,02AH,062H,0,0,0,0,0),
  214. ***** ^ undeclared identifier
  215. ***** ^ undeclared identifier
  216. ***** ^ not supported yet
  217. 133
  218. 134 1, (* postamble *)
  219. 135 pstam(057H,0,0,0,0,0,0,0),
  220. ***** ^ undeclared identifier
  221. ***** ^ not supported yet
  222. 136
  223. 137 0, (* line trailer *)
  224. 138 trailer(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  225. ***** ^ undeclared identifier
  226. ***** ^ not supported yet
  227. 139
  228. 140 HC_ASC, (* Options. MUST send ASCII length for HP Laserjet *)
  229. ***** ^ not supported yet
  230. 141 080H, (* printer port *)
  231. 142 hcSIG('H','C'), (* signature *)
  232. ***** ^ undeclared identifier
  233. ***** ^ not supported yet
  234. 143
  235. 144 00FH, (* max index in translate table *)
  236. 145 xlaTable(0,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH)
  237. ***** ^ undeclared identifier
  238. ***** ^ not supported yet
  239. 146 ); (* HPMEDInfo *)
  240. 147
  241. 148
  242. 149 (*** Hp LaserJet configuration. 300 dpi (h) by 300 dpi (v), rotated. ***)
  243. 150
  244. 151 _HPHIInfo = HCInfoRec
  245. ***** ^ not supported yet
  246. 152 (
  247. 153 1, (* pins *)
  248. 154
  249. 155 12, (* init codes *)
  250. 156 init(ESC,02AH,074H,033H,030H,030H,052H,ESC,02AH,072H,030H,041H,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  251. ***** ^ undeclared identifier
  252. ***** ^ undeclared identifier
  253. ***** ^ undeclared identifier
  254. ***** ^ not supported yet
  255. 157
  256. 158 6, (* quit, reset codes *)
  257. 159 reset(ESC,02AH,052H,042H,CR,FF,0,0,0,0,0,0,0,0,0,0),
  258. ***** ^ undeclared identifier
  259. ***** ^ undeclared identifier
  260. ***** ^ undeclared identifier
  261. ***** ^ undeclared identifier
  262. ***** ^ not supported yet
  263. 160
  264. 161 3, (* line header *)
  265. 162 header(ESC,02AH,062H,0,0,0,0,0),
  266. ***** ^ undeclared identifier
  267. ***** ^ undeclared identifier
  268. ***** ^ not supported yet
  269. 163
  270. 164 1, (* postamble *)
  271. 165 pstam(057H,0,0,0,0,0,0,0),
  272. ***** ^ undeclared identifier
  273. ***** ^ not supported yet
  274. 166
  275. 167 0, (* line trailer *)
  276. 168 trailer(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  277. ***** ^ undeclared identifier
  278. ***** ^ not supported yet
  279. 169
  280. 170 HC_ASC, (* Options. MUST send ASCII length for HP Laserjet *)
  281. ***** ^ not supported yet
  282. 171 080H, (* printer port *)
  283. 172 hcSIG('H','C'), (* signature *)
  284. ***** ^ undeclared identifier
  285. ***** ^ not supported yet
  286. 173
  287. 174 00FH, (* max index in translate table *)
  288. 175 xlaTable(0,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH)
  289. ***** ^ undeclared identifier
  290. ***** ^ not supported yet
  291. 176 ); (* HPHIInfo *)
  292. 177
  293. 178
  294. 179 (*** Hard Copy Info Structure with an invalid signature to disable ***)
  295. 180 (*** HardCopy (and PrintScreen). ***)
  296. 181
  297. 182 _NULInfo = HCInfoRec
  298. ***** ^ not supported yet
  299. 183 (
  300. 184 0, (* pins *)
  301. 185
  302. 186 0, (* init codes *)
  303. 187 init(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  304. ***** ^ undeclared identifier
  305. ***** ^ not supported yet
  306. 188
  307. 189 0, (* quit, reset codes *)
  308. 190 reset(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  309. ***** ^ undeclared identifier
  310. ***** ^ not supported yet
  311. 191
  312. 192 0, (* line header *)
  313. 193 header(0,0,0,0,0,0,0,0),
  314. ***** ^ undeclared identifier
  315. ***** ^ not supported yet
  316. 194
  317. 195 0, (* postamble *)
  318. 196 pstam(0,0,0,0,0,0,0,0),
  319. ***** ^ undeclared identifier
  320. ***** ^ not supported yet
  321. 197
  322. 198 0, (* line trailer *)
  323. 199 trailer(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
  324. ***** ^ undeclared identifier
  325. ***** ^ not supported yet
  326. 200
  327. 201 0, (* Options *)
  328. 202 0, (* printer port *)
  329. 203 hcSIG(0,0), (* signature *)
  330. ***** ^ undeclared identifier
  331. ***** ^ not supported yet
  332. 204
  333. 205 0, (* max index in translate table *)
  334. 206 xlaTable(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
  335. ***** ^ undeclared identifier
  336. ***** ^ not supported yet
  337. 207 ); (* NULInfo *)
  338. 208
  339. 209
  340. 210 BEGIN
  341. 211 EPLOInfo := _EPLOInfo;
  342. ***** ^ undeclared identifier
  343. 212 EPHIInfo := _EPHIInfo;
  344. ***** ^ undeclared identifier
  345. 213 HPLOInfo := _HPLOInfo;
  346. ***** ^ undeclared identifier
  347. 214 HPMEDInfo := _HPMEDInfo;
  348. ***** ^ undeclared identifier
  349. 215 HPHIInfo := _HPHIInfo;
  350. ***** ^ undeclared identifier
  351. 216 NULInfo := _NULInfo;
  352. ***** ^ undeclared identifier
  353. 217 END HardCopy.
  354. ***** ^ not supported yet
  355. 136 errors