Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

442 lines
12 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "SNSPX46J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "SANYO SPX-406J"
  11. *MasterUnits: PAIR(300, 300)
  12. *ResourceDLL: "pcl4jres.dll"
  13. *PrinterType: PAGE
  14. *MaxCopies: 99
  15. *% ========== Orientation ==========
  16. *Feature: Orientation
  17. {
  18. *rcNameID: =ORIENTATION_DISPLAY
  19. *DefaultOption: PORTRAIT
  20. *Option: PORTRAIT
  21. {
  22. *rcNameID: =PORTRAIT_DISPLAY
  23. *Command: CmdSelect
  24. {
  25. *Order: DOC_SETUP.4
  26. *Cmd: "<1B>&l0o1E"
  27. }
  28. }
  29. *Option: LANDSCAPE_CC90
  30. {
  31. *rcNameID: =LANDSCAPE_DISPLAY
  32. *Command: CmdSelect
  33. {
  34. *Order: DOC_SETUP.4
  35. *Cmd: "<1B>&l1o6d1E"
  36. }
  37. }
  38. }
  39. *% ========== InputBin ==========
  40. *Feature: InputBin
  41. {
  42. *rcNameID: =PAPER_SOURCE_DISPLAY
  43. *DefaultOption: MANUAL
  44. *Option: MANUAL
  45. {
  46. *rcNameID: =MANUAL_FEED_DISPLAY
  47. *Command: CmdSelect
  48. {
  49. *Order: DOC_SETUP.3
  50. *Cmd: "<1B>&l2H"
  51. }
  52. }
  53. *Option: LOWER
  54. {
  55. *rcNameID: =LOWER_TRAY_DISPLAY
  56. *Command: CmdSelect
  57. {
  58. *Order: DOC_SETUP.3
  59. *Cmd: "<1B>&l4H"
  60. }
  61. }
  62. }
  63. *% ========== Resolution ==========
  64. *Feature: Resolution
  65. {
  66. *rcNameID: =RESOLUTION_DISPLAY
  67. *DefaultOption: Option1
  68. *Option: Option1
  69. {
  70. *Name: "300 x 300 dots per inch"
  71. *DPI: PAIR(300, 300)
  72. *TextDPI: PAIR(300, 300)
  73. *MinStripBlankPixels: 32
  74. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  75. *SpotDiameter: 100
  76. *Command: CmdBeginRaster { *Cmd : "<1B>*r1A" }
  77. *Command: CmdEndRaster { *Cmd : "<1B>*rB" }
  78. *Command: CmdSendBlockData { *Cmd : "<1B>*b" %d{NumOfDataBytes}"W" }
  79. *Command: CmdSelect
  80. {
  81. *Order: DOC_SETUP.5
  82. *Cmd: "<1B>*t300R"
  83. }
  84. }
  85. }
  86. *% ========== PaperSize ==========
  87. *Feature: PaperSize
  88. {
  89. *rcNameID: =PAPER_SIZE_DISPLAY
  90. *DefaultOption: A4
  91. *Option: LETTER
  92. {
  93. *rcNameID: =LETTER_DISPLAY
  94. *switch: Orientation
  95. {
  96. *case: PORTRAIT
  97. {
  98. *PrintableArea: PAIR(2400, 3150)
  99. *PrintableOrigin: PAIR(75, 75)
  100. *CursorOrigin: PAIR(75, 75)
  101. *Command: CmdSelect
  102. {
  103. *Order: DOC_SETUP.2
  104. *Cmd: "<1B>&l2a4d1e42F"
  105. }
  106. }
  107. *case: LANDSCAPE_CC90
  108. {
  109. *PrintableArea: PAIR(2400, 3150)
  110. *PrintableOrigin: PAIR(75, 75)
  111. *CursorOrigin: PAIR(75, 3240)
  112. *Command: CmdSelect
  113. {
  114. *Order: DOC_SETUP.2
  115. *Cmd: "<1B>&l2a4d1e42F"
  116. }
  117. }
  118. }
  119. }
  120. *Option: LEGAL
  121. {
  122. *rcNameID: =LEGAL_DISPLAY
  123. *switch: Orientation
  124. {
  125. *case: PORTRAIT
  126. {
  127. *PrintableArea: PAIR(2400, 4050)
  128. *PrintableOrigin: PAIR(75, 75)
  129. *CursorOrigin: PAIR(75, 75)
  130. *Command: CmdSelect
  131. {
  132. *Order: DOC_SETUP.2
  133. *Cmd: "<1B>&l3a4d1e54F"
  134. }
  135. }
  136. *case: LANDSCAPE_CC90
  137. {
  138. *PrintableArea: PAIR(2400, 4050)
  139. *PrintableOrigin: PAIR(75, 75)
  140. *CursorOrigin: PAIR(75, 4140)
  141. *Command: CmdSelect
  142. {
  143. *Order: DOC_SETUP.2
  144. *Cmd: "<1B>&l3a4d1e54F"
  145. }
  146. }
  147. }
  148. }
  149. *Option: EXECUTIVE
  150. {
  151. *rcNameID: =EXECUTIVE_DISPLAY
  152. *switch: Orientation
  153. {
  154. *case: PORTRAIT
  155. {
  156. *PrintableArea: PAIR(2025, 3000)
  157. *PrintableOrigin: PAIR(75, 75)
  158. *CursorOrigin: PAIR(75, 75)
  159. *Command: CmdSelect
  160. {
  161. *Order: DOC_SETUP.2
  162. *Cmd: "<1B>&l1a4d1e40F"
  163. }
  164. }
  165. *case: LANDSCAPE_CC90
  166. {
  167. *PrintableArea: PAIR(2025, 3000)
  168. *PrintableOrigin: PAIR(75, 75)
  169. *CursorOrigin: PAIR(75, 3090)
  170. *Command: CmdSelect
  171. {
  172. *Order: DOC_SETUP.2
  173. *Cmd: "<1B>&l1a4d1e40F"
  174. }
  175. }
  176. }
  177. }
  178. *Option: A4
  179. {
  180. *rcNameID: =A4_DISPLAY
  181. *switch: Orientation
  182. {
  183. *case: PORTRAIT
  184. {
  185. *PrintableArea: PAIR(2341, 3367)
  186. *PrintableOrigin: PAIR(70, 70)
  187. *CursorOrigin: PAIR(70, 70)
  188. *Command: CmdSelect
  189. {
  190. *Order: DOC_SETUP.2
  191. *Cmd: "<1B>&l26a4d1e45F"
  192. }
  193. }
  194. *case: LANDSCAPE_CC90
  195. {
  196. *PrintableArea: PAIR(2341, 3367)
  197. *PrintableOrigin: PAIR(70, 70)
  198. *CursorOrigin: PAIR(70, 3437)
  199. *Command: CmdSelect
  200. {
  201. *Order: DOC_SETUP.2
  202. *Cmd: "<1B>&l26a4d1e45F"
  203. }
  204. }
  205. }
  206. }
  207. *Option: B5
  208. {
  209. *rcNameID: =B5_DISPLAY
  210. *switch: Orientation
  211. {
  212. *case: PORTRAIT
  213. {
  214. *PrintableArea: PAIR(2001, 2886)
  215. *PrintableOrigin: PAIR(75, 75)
  216. *CursorOrigin: PAIR(71, 75)
  217. *Command: CmdSelect
  218. {
  219. *Order: DOC_SETUP.2
  220. *Cmd: "<1B>&l300a4d1e40F"
  221. }
  222. }
  223. *case: LANDSCAPE_CC90
  224. {
  225. *PrintableArea: PAIR(2001, 2886)
  226. *PrintableOrigin: PAIR(75, 75)
  227. *CursorOrigin: PAIR(75, 2977)
  228. *Command: CmdSelect
  229. {
  230. *Order: DOC_SETUP.2
  231. *Cmd: "<1B>&l300a4d1e40F"
  232. }
  233. }
  234. }
  235. }
  236. *Option: JAPANESE_POSTCARD
  237. {
  238. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  239. *% Warning: this paper size has PS_SUGGEST_LNDSCP set in GPC, which is ignored by GPD.
  240. *switch: Orientation
  241. {
  242. *case: PORTRAIT
  243. {
  244. *PrintableArea: PAIR(1032, 1599)
  245. *PrintableOrigin: PAIR(75, 75)
  246. *CursorOrigin: PAIR(65351, 75)
  247. *Command: CmdSelect
  248. {
  249. *Order: DOC_SETUP.2
  250. *Cmd: "<1B>&l26a4d1e45F"
  251. }
  252. }
  253. *case: LANDSCAPE_CC90
  254. {
  255. *PrintableArea: PAIR(1032, 1599)
  256. *PrintableOrigin: PAIR(75, 75)
  257. *CursorOrigin: PAIR(65328, 3449)
  258. *Command: CmdSelect
  259. {
  260. *Order: DOC_SETUP.2
  261. *Cmd: "<1B>&l26a4d1e45F"
  262. }
  263. }
  264. }
  265. }
  266. *Option: CUSTOMSIZE
  267. {
  268. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  269. *MinSize: PAIR(150, 150)
  270. *MaxSize: PAIR(2550, 32767)
  271. *MaxPrintableWidth: 2550
  272. *MinLeftMargin: 50
  273. *CenterPrintable?: FALSE
  274. *switch: Orientation
  275. {
  276. *case: PORTRAIT
  277. {
  278. *Command: CmdSelect
  279. {
  280. *Order: DOC_SETUP.2
  281. *Cmd: "<1B>&l26a4d1e45F"
  282. }
  283. }
  284. *case: LANDSCAPE_CC90
  285. {
  286. *Command: CmdSelect
  287. {
  288. *Order: DOC_SETUP.2
  289. *Cmd: "<1B>&l26a4d1e45F"
  290. }
  291. }
  292. }
  293. }
  294. }
  295. *% ========== Halftone ==========
  296. *Feature: Halftone
  297. {
  298. *rcNameID: =HALFTONING_DISPLAY
  299. *DefaultOption: HT_PATSIZE_AUTO
  300. *Option: HT_PATSIZE_AUTO
  301. {
  302. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  303. }
  304. *Option: HT_PATSIZE_SUPERCELL_M
  305. {
  306. *rcNameID: =HT_SUPERCELL_DISPLAY
  307. }
  308. *Option: HT_PATSIZE_6x6_M
  309. {
  310. *rcNameID: =HT_DITHER6X6_DISPLAY
  311. }
  312. *Option: HT_PATSIZE_8x8_M
  313. {
  314. *rcNameID: =HT_DITHER8X8_DISPLAY
  315. }
  316. }
  317. *% ========== Memory ==========
  318. *Feature: Memory
  319. {
  320. *rcNameID: =PRINTER_MEMORY_DISPLAY
  321. *DefaultOption: 1536KB
  322. *Option: 1536KB
  323. {
  324. *Name: "1536KB"
  325. *MemoryConfigKB: PAIR(1536, 700)
  326. }
  327. *Option: 2560KB
  328. {
  329. *Name: "2560KB"
  330. *MemoryConfigKB: PAIR(2560, 1024)
  331. }
  332. *Option: 3584KB
  333. {
  334. *Name: "3584KB"
  335. *MemoryConfigKB: PAIR(3584, 2048)
  336. }
  337. *Option: 4608KB
  338. {
  339. *Name: "4608KB"
  340. *MemoryConfigKB: PAIR(4608, 3072)
  341. }
  342. }
  343. *% ========== Job Control Command ==========
  344. *Command: CmdStartDoc
  345. {
  346. *Order: DOC_SETUP.1
  347. *Cmd: "<1B>E<1B>&l0L"
  348. }
  349. *Command: CmdStartPage
  350. {
  351. *Order: PAGE_SETUP.1
  352. *Cmd: "<0D>"
  353. }
  354. *Command: CmdEndJob
  355. {
  356. *Order: JOB_FINISH.1
  357. *Cmd: "<1B>E"
  358. }
  359. *Command: CmdCopies
  360. {
  361. *Order: PAGE_SETUP.7
  362. *Cmd: "<1B>&l" %d[1,99]{NumOfCopies}"X"
  363. }
  364. *% ========== Printer Capabilities ==========
  365. *RotateCoordinate?: TRUE
  366. *RotateRaster?: FALSE
  367. *RotateFont?: FALSE
  368. *TextCaps: LIST(TC_UA_ABLE)
  369. *MemoryUsage: LIST(FONT)
  370. *% ========== Cursor Move ==========
  371. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  372. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  373. *XMoveThreshold: 0
  374. *YMoveThreshold: 0
  375. *XMoveUnit: 300
  376. *YMoveUnit: 300
  377. *Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{DestX}"X" }
  378. *Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d{DestXRel}"X" }
  379. *Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d{DestXRel}"X" }
  380. *Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{DestY}"Y" }
  381. *Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d{DestYRel}"Y" }
  382. *Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d{DestYRel}"Y" }
  383. *Command: CmdCR { *Cmd : "<0D>" }
  384. *Command: CmdLF { *Cmd : "<0A>" }
  385. *Command: CmdFF { *Cmd : "<0C>" }
  386. *Command: CmdBackSpace { *Cmd : "<08>" }
  387. *Command: CmdUniDirectionOn { *Cmd : "<00>" }
  388. *Command: CmdUniDirectionOff { *Cmd : "<00>" }
  389. *Command: CmdPushCursor { *Cmd : "<1B>&f0S" }
  390. *Command: CmdPopCursor { *Cmd : "<1B>&f1S" }
  391. *EjectPageWithFF?: TRUE
  392. *% ========== Compression ==========
  393. *Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" }
  394. *Command: CmdDisableCompression { *Cmd : "<1B>*b0M" }
  395. *Command: CmdEnableDRC { *Cmd : "<1B>*b3M" }
  396. *% ========== Raster Data Emission ==========
  397. *OutputDataFormat: H_BYTE
  398. *OptimizeLeftBound?: TRUE
  399. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  400. *CursorYAfterSendBlockData: AUTO_INCREMENT
  401. *% ========== Device Font ==========
  402. *CharPosition: BASELINE
  403. *% *DefaultFont: 4
  404. *% *DefaultCTT: 0
  405. *% *MaxFontUsePerPage: 16
  406. *% *switch: Orientation
  407. *% {
  408. *% *case: PORTRAIT
  409. *% {
  410. *% *DeviceFonts: LIST(1,4,29)
  411. *% }
  412. *% *case: LANDSCAPE_CC90
  413. *% {
  414. *% *DeviceFonts: LIST(1,4,29)
  415. *% }
  416. *% }
  417. *% ========== Font Downloading ==========
  418. *MinFontID: 16384
  419. *MaxFontID: 32768
  420. *MaxNumDownFonts: 32
  421. *FontFormat: HPPCL
  422. *Command: CmdSetFontID { *Cmd : "<1B>*c" %d{NextFontID}"D" }
  423. *Command: CmdSelectFontID { *Cmd : "<1B>(" %d{CurrentFontID}"X" }
  424. *Command: CmdSetCharCode { *Cmd : "<1B>*c" %d{NextGlyph}"E" }
  425. *Command: CmdUnderlineOn { *Cmd : "<1B>&dD" }
  426. *Command: CmdUnderlineOff { *Cmd : "<1B>&d@" }
  427. *Include: "ttfsub.gpd"
  428. *TTFSEnabled?: TRUE