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.

449 lines
13 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "TS31DM6J.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 1252
  10. *ModelName: "TOSHIBA J31DMP06 ESC/P"
  11. *MasterUnits: PAIR(720, 720)
  12. *ResourceDLL: "TSEPJRES.DLL"
  13. *PrinterType: SERIAL
  14. *PrintRate: 300
  15. *PrintRateUnit: CPS
  16. *Feature: Orientation
  17. {
  18. *rcNameID: =ORIENTATION_DISPLAY
  19. *DefaultOption: PORTRAIT
  20. *Option: PORTRAIT
  21. {
  22. *rcNameID: =PORTRAIT_DISPLAY
  23. }
  24. *Option: LANDSCAPE_CC270
  25. {
  26. *rcNameID: =LANDSCAPE_DISPLAY
  27. }
  28. }
  29. *Feature: InputBin
  30. {
  31. *rcNameID: =PAPER_SOURCE_DISPLAY
  32. *DefaultOption: MANUAL
  33. *Option: MANUAL
  34. {
  35. *rcNameID: =MANUAL_FEED_DISPLAY
  36. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  37. *Command: CmdSelect
  38. {
  39. *Order: PAGE_SETUP.8
  40. *Cmd: "<1B>C<0016>"
  41. }
  42. }
  43. *Option: Option2
  44. {
  45. *rcNameID: 258
  46. *Command: CmdSelect
  47. {
  48. *Order: PAGE_SETUP.8
  49. *Cmd: "<1B19>4<1B>C<0016>"
  50. }
  51. }
  52. *Option: Option3
  53. {
  54. *rcNameID: 261
  55. *Command: CmdSelect
  56. {
  57. *Order: PAGE_SETUP.8
  58. *Cmd: "<1B>~R<0001001B>C<000B>"
  59. }
  60. }
  61. }
  62. *Feature: Resolution
  63. {
  64. *rcNameID: =RESOLUTION_DISPLAY
  65. *DefaultOption: Option1
  66. *Option: Option1
  67. {
  68. *Name: "180 x 180 dots per inch"
  69. *DPI: PAIR(180, 180)
  70. *TextDPI: PAIR(180, 180)
  71. *PinsPerLogPass: 24
  72. *PinsPerPhysPass: 24
  73. *MinStripBlankPixels: 135
  74. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  75. *SpotDiameter: 100
  76. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  77. }
  78. }
  79. *Feature: PaperSize
  80. {
  81. *rcNameID: =PAPER_SIZE_DISPLAY
  82. *DefaultOption: A4
  83. *Option: A3
  84. {
  85. *rcNameID: =A3_DISPLAY
  86. *PrintableArea: PAIR(8093, 10581)
  87. *PrintableOrigin: PAIR(180, 664)
  88. *switch: Resolution
  89. {
  90. *case: Option1
  91. {
  92. *% Warning: the following printable width is adjusted (8093->8092) so it is divisible by the resolution X scale.
  93. *% Warning: the following printable length is adjusted (10581->10580) so it is divisible by the resolution Y scale.
  94. *PrintableArea: PAIR(8092, 10580)
  95. }
  96. }
  97. }
  98. *Option: B4
  99. {
  100. *rcNameID: =B4_DISPLAY
  101. *PrintableArea: PAIR(6962, 8990)
  102. *PrintableOrigin: PAIR(180, 664)
  103. *switch: Resolution
  104. {
  105. *case: Option1
  106. {
  107. *% Warning: the following printable width is adjusted (6962->6960) so it is divisible by the resolution X scale.
  108. *% Warning: the following printable length is adjusted (8990->8988) so it is divisible by the resolution Y scale.
  109. *PrintableArea: PAIR(6960, 8988)
  110. }
  111. }
  112. }
  113. *Option: B4_JIS_ROTATED
  114. {
  115. *rcNameID: =B4_JIS_ROTATED_DISPLAY
  116. *PrintableArea: PAIR(9792, 5958)
  117. *PrintableOrigin: PAIR(180, 664)
  118. *switch: Resolution
  119. {
  120. *case: Option1
  121. {
  122. *% Warning: the following printable length is adjusted (5958->5956) so it is divisible by the resolution Y scale.
  123. *PrintableArea: PAIR(9792, 5956)
  124. }
  125. }
  126. }
  127. *Option: A4
  128. {
  129. *rcNameID: =A4_DISPLAY
  130. *PrintableArea: PAIR(5630, 7089)
  131. *PrintableOrigin: PAIR(180, 664)
  132. *switch: Resolution
  133. {
  134. *case: Option1
  135. {
  136. *% Warning: the following printable width is adjusted (5630->5628) so it is divisible by the resolution X scale.
  137. *% Warning: the following printable length is adjusted (7089->7088) so it is divisible by the resolution Y scale.
  138. *PrintableArea: PAIR(5628, 7088)
  139. }
  140. }
  141. }
  142. *Option: A4_ROTATED
  143. {
  144. *rcNameID: =A4_ROTATED_DISPLAY
  145. *PrintableArea: PAIR(8093, 4626)
  146. *PrintableOrigin: PAIR(180, 664)
  147. *switch: Resolution
  148. {
  149. *case: Option1
  150. {
  151. *% Warning: the following printable width is adjusted (8093->8092) so it is divisible by the resolution X scale.
  152. *% Warning: the following printable length is adjusted (4626->4624) so it is divisible by the resolution Y scale.
  153. *PrintableArea: PAIR(8092, 4624)
  154. }
  155. }
  156. }
  157. *Option: B5
  158. {
  159. *rcNameID: =B5_DISPLAY
  160. *PrintableArea: PAIR(4838, 5958)
  161. *PrintableOrigin: PAIR(180, 664)
  162. *switch: Resolution
  163. {
  164. *case: Option1
  165. {
  166. *% Warning: the following printable width is adjusted (4838->4836) so it is divisible by the resolution X scale.
  167. *% Warning: the following printable length is adjusted (5958->5956) so it is divisible by the resolution Y scale.
  168. *PrintableArea: PAIR(4836, 5956)
  169. }
  170. }
  171. }
  172. *Option: B5_JIS_ROTATED
  173. {
  174. *rcNameID: =B5_JIS_ROTATED_DISPLAY
  175. *PrintableArea: PAIR(6962, 3834)
  176. *PrintableOrigin: PAIR(180, 664)
  177. *switch: Resolution
  178. {
  179. *case: Option1
  180. {
  181. *% Warning: the following printable width is adjusted (6962->6960) so it is divisible by the resolution X scale.
  182. *% Warning: the following printable length is adjusted (3834->3832) so it is divisible by the resolution Y scale.
  183. *PrintableArea: PAIR(6960, 3832)
  184. }
  185. }
  186. }
  187. *Option: A5
  188. {
  189. *rcNameID: =A5_DISPLAY
  190. *PrintableArea: PAIR(3874, 4626)
  191. *PrintableOrigin: PAIR(180, 664)
  192. *switch: Resolution
  193. {
  194. *case: Option1
  195. {
  196. *% Warning: the following printable width is adjusted (3874->3872) so it is divisible by the resolution X scale.
  197. *% Warning: the following printable length is adjusted (4626->4624) so it is divisible by the resolution Y scale.
  198. *PrintableArea: PAIR(3872, 4624)
  199. }
  200. }
  201. }
  202. *Option: A5_ROTATED
  203. {
  204. *rcNameID: =A5_ROTATED_DISPLAY
  205. *PrintableArea: PAIR(5630, 2870)
  206. *PrintableOrigin: PAIR(180, 664)
  207. *switch: Resolution
  208. {
  209. *case: Option1
  210. {
  211. *% Warning: the following printable width is adjusted (5630->5628) so it is divisible by the resolution X scale.
  212. *% Warning: the following printable length is adjusted (2870->2868) so it is divisible by the resolution Y scale.
  213. *PrintableArea: PAIR(5628, 2868)
  214. }
  215. }
  216. }
  217. *Option: 15X11
  218. {
  219. *rcNameID: =15X11_DISPLAY
  220. *PrintableArea: PAIR(9792, 7920)
  221. *PrintableOrigin: PAIR(369, 0)
  222. *switch: Resolution
  223. {
  224. *case: Option1
  225. {
  226. *% Warning: the following printable width is adjusted (9792->9788) so it is divisible by the resolution X scale.
  227. *PrintableArea: PAIR(9788, 7920)
  228. *% Warning: the following printable origin X is adjusted (369->372) so it is divisible by the resolution X scale.
  229. *PrintableOrigin: PAIR(372, 0)
  230. }
  231. }
  232. }
  233. *Option: 10X11
  234. {
  235. *rcNameID: =10X11_DISPLAY
  236. *PrintableArea: PAIR(6462, 7920)
  237. *PrintableOrigin: PAIR(369, 0)
  238. *switch: Resolution
  239. {
  240. *case: Option1
  241. {
  242. *% Warning: the following printable width is adjusted (6462->6456) so it is divisible by the resolution X scale.
  243. *PrintableArea: PAIR(6456, 7920)
  244. *% Warning: the following printable origin X is adjusted (369->372) so it is divisible by the resolution X scale.
  245. *PrintableOrigin: PAIR(372, 0)
  246. }
  247. }
  248. }
  249. *Option: JAPANESE_POSTCARD
  250. {
  251. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  252. *PrintableArea: PAIR(2513, 3478)
  253. *PrintableOrigin: PAIR(180, 420)
  254. *switch: Resolution
  255. {
  256. *case: Option1
  257. {
  258. *% Warning: the following printable width is adjusted (2513->2512) so it is divisible by the resolution X scale.
  259. *% Warning: the following printable length is adjusted (3478->3476) so it is divisible by the resolution Y scale.
  260. *PrintableArea: PAIR(2512, 3476)
  261. }
  262. }
  263. }
  264. *Option: JAPANESE_POSTCARD_ROTATED
  265. {
  266. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  267. *PrintableArea: PAIR(3874, 2201)
  268. *PrintableOrigin: PAIR(180, 336)
  269. *switch: Resolution
  270. {
  271. *case: Option1
  272. {
  273. *% Warning: the following printable width is adjusted (3874->3872) so it is divisible by the resolution X scale.
  274. *% Warning: the following printable length is adjusted (2201->2200) so it is divisible by the resolution Y scale.
  275. *PrintableArea: PAIR(3872, 2200)
  276. }
  277. }
  278. }
  279. *Option: CUSTOMSIZE
  280. {
  281. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  282. *MinSize: PAIR(2834, 2834)
  283. *MaxSize: PAIR(11909, 11909)
  284. *MaxPrintableWidth: 9792
  285. *MinLeftMargin: 180
  286. *CenterPrintable?: FALSE
  287. }
  288. }
  289. *InvalidCombination: LIST(InputBin.MANUAL, PaperSize.15X11)
  290. *InvalidCombination: LIST(InputBin.MANUAL, PaperSize.10X11)
  291. *InvalidCombination: LIST(InputBin.Option2, PaperSize.15X11)
  292. *InvalidCombination: LIST(InputBin.Option2, PaperSize.10X11)
  293. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A3)
  294. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B4)
  295. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B4_JIS_ROTATED)
  296. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A4)
  297. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A4_ROTATED)
  298. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B5)
  299. *InvalidCombination: LIST(InputBin.Option3, PaperSize.B5_JIS_ROTATED)
  300. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A5)
  301. *InvalidCombination: LIST(InputBin.Option3, PaperSize.A5_ROTATED)
  302. *InvalidCombination: LIST(InputBin.Option3, PaperSize.JAPANESE_POSTCARD)
  303. *InvalidCombination: LIST(InputBin.Option3, PaperSize.JAPANESE_POSTCARD_ROTATED)
  304. *Feature: PrintQuality
  305. {
  306. *rcNameID: =TEXT_QUALITY_DISPLAY
  307. *DefaultOption: Option1
  308. *Option: Option1
  309. {
  310. *rcNameID: 266
  311. }
  312. *Option: Option2
  313. {
  314. *rcNameID: 267
  315. *Command: CmdSelect
  316. {
  317. *Order: DOC_SETUP.6
  318. *Cmd: "<1C>x1"
  319. }
  320. }
  321. }
  322. *Feature: Halftone
  323. {
  324. *rcNameID: =HALFTONING_DISPLAY
  325. *DefaultOption: HT_PATSIZE_AUTO
  326. *Option: HT_PATSIZE_AUTO
  327. {
  328. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  329. }
  330. *Option: HT_PATSIZE_SUPERCELL_M
  331. {
  332. *rcNameID: =HT_SUPERCELL_DISPLAY
  333. }
  334. *Option: HT_PATSIZE_6x6_M
  335. {
  336. *rcNameID: =HT_DITHER6X6_DISPLAY
  337. }
  338. *Option: HT_PATSIZE_8x8_M
  339. {
  340. *rcNameID: =HT_DITHER8X8_DISPLAY
  341. }
  342. }
  343. *Command: CmdStartDoc
  344. {
  345. *Order: DOC_SETUP.1
  346. *Cmd: "<1B>@<181B>t<031B>R<081B>U<01>"
  347. }
  348. *Command: CmdStartPage
  349. {
  350. *Order: PAGE_SETUP.1
  351. *Cmd: "<0D>"
  352. }
  353. *Command: CmdEndJob
  354. {
  355. *Order: JOB_FINISH.1
  356. *Cmd: "<1C>x0<1B>@"
  357. }
  358. *RotateCoordinate?: FALSE
  359. *RotateRaster?: FALSE
  360. *RotateFont?: FALSE
  361. *switch: Orientation
  362. {
  363. *case: PORTRAIT
  364. {
  365. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  366. }
  367. *case: LANDSCAPE_CC270
  368. {
  369. *TextCaps: LIST(TC_RA_ABLE)
  370. }
  371. }
  372. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  373. *YMoveAttributes: LIST(SEND_CR_FIRST)
  374. *MaxLineSpacing: 255
  375. *XMoveThreshold: 0
  376. *YMoveThreshold: *
  377. *XMoveUnit: 60
  378. *YMoveUnit: 180
  379. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,815]{max_repeat((DestX / 12) )} }
  380. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 4) )} }
  381. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 4) } }
  382. *Command: CmdCR { *Cmd : "<0D>" }
  383. *Command: CmdLF { *Cmd : "<0A>" }
  384. *Command: CmdFF { *Cmd : "<0C>" }
  385. *Command: CmdBackSpace { *Cmd : "<08>" }
  386. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  387. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  388. *EjectPageWithFF?: TRUE
  389. *switch: PaperSize
  390. {
  391. *case: 15X11
  392. {
  393. *EjectPageWithFF?: TRUE
  394. *switch: InputBin
  395. {
  396. *case: Option3
  397. {
  398. *EjectPageWithFF?: FALSE
  399. }
  400. }
  401. }
  402. *case: 10X11
  403. {
  404. *EjectPageWithFF?: TRUE
  405. *switch: InputBin
  406. {
  407. *case: Option3
  408. {
  409. *EjectPageWithFF?: FALSE
  410. }
  411. }
  412. }
  413. *case: CUSTOMSIZE
  414. {
  415. *EjectPageWithFF?: TRUE
  416. *switch: InputBin
  417. {
  418. *case: Option3
  419. {
  420. *EjectPageWithFF?: FALSE
  421. }
  422. }
  423. }
  424. }
  425. *OutputDataFormat: V_BYTE
  426. *OptimizeLeftBound?: FALSE
  427. *CursorXAfterSendBlockData: AT_GRXDATA_END
  428. *CursorYAfterSendBlockData: NO_MOVE
  429. *DefaultFont: 6
  430. *DefaultCTT: -1
  431. *switch: Orientation
  432. {
  433. *case: PORTRAIT
  434. {
  435. *DeviceFonts: LIST(1,2,3,4,5,6,14,53,54,55,56,57,59)
  436. }
  437. *case: LANDSCAPE_CC270
  438. {
  439. *DeviceFonts: LIST()
  440. }
  441. }
  442. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  443. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  444. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  445. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  446. *Command: CmdUnderlineOn { *Cmd : "<1B>-<011C>-<01>" }
  447. *Command: CmdUnderlineOff { *Cmd : "<1B>-<001C>-<00>" }
  448. *Command: CmdSelectSingleByteMode { *Cmd : "<1C0F>" }
  449. *Command: CmdSelectDoubleByteMode { *Cmd : "<1C12>" }