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.

499 lines
14 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "1.00"
  7. *GPDFileName: "JI4500KK.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *CodePage: 949
  10. *ModelName: "�������� JP-4500 (KS)"
  11. *MasterUnits: PAIR(360, 360)
  12. *ResourceDLL: "kskres.dll"
  13. *PrinterType: SERIAL
  14. *Feature: Orientation
  15. {
  16. *rcNameID: =ORIENTATION_DISPLAY
  17. *DefaultOption: PORTRAIT
  18. *Option: PORTRAIT
  19. {
  20. *rcNameID: =PORTRAIT_DISPLAY
  21. }
  22. *Option: LANDSCAPE_CC270
  23. {
  24. *rcNameID: =LANDSCAPE_DISPLAY
  25. }
  26. }
  27. *Feature: InputBin
  28. {
  29. *rcNameID: =PAPER_SOURCE_DISPLAY
  30. *DefaultOption: TRACTOR
  31. *Option: TRACTOR
  32. {
  33. *rcNameID: =TRACTOR_DISPLAY
  34. }
  35. *Option: MANUAL
  36. {
  37. *rcNameID: =MANUAL_FEED_DISPLAY
  38. *% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
  39. }
  40. }
  41. *Feature: Resolution
  42. {
  43. *rcNameID: =RESOLUTION_DISPLAY
  44. *DefaultOption: Option1
  45. *Option: Option1
  46. {
  47. *Name: "180 x 180 dots per inch"
  48. *DPI: PAIR(180, 180)
  49. *TextDPI: PAIR(180, 180)
  50. *PinsPerLogPass: 24
  51. *PinsPerPhysPass: 24
  52. *MinStripBlankPixels: 180
  53. EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
  54. *SpotDiameter: 120
  55. *Command: CmdSendBlockData { *Cmd : "<1B>n" %l{(NumOfDataBytes / 3) } }
  56. }
  57. }
  58. *Feature: PaperSize
  59. {
  60. *rcNameID: =PAPER_SIZE_DISPLAY
  61. *DefaultOption: LETTER
  62. *Option: LETTER
  63. {
  64. *rcNameID: =LETTER_DISPLAY
  65. *Command: CmdSelect
  66. {
  67. *Order: DOC_SETUP.4
  68. *Cmd: "<1B>2<1B>CB"
  69. }
  70. *switch: InputBin
  71. {
  72. *case: TRACTOR
  73. {
  74. *PrintableArea: PAIR(2960, 3640)
  75. *PrintableOrigin: PAIR(50, 120)
  76. }
  77. *case: MANUAL
  78. {
  79. *PrintableArea: PAIR(2960, 3615)
  80. *PrintableOrigin: PAIR(50, 120)
  81. *switch: Resolution
  82. {
  83. *case: Option1
  84. {
  85. *% Warning: the following printable length is adjusted (3615->3614) so it is divisible by the resolution Y scale.
  86. *PrintableArea: PAIR(2960, 3614)
  87. }
  88. }
  89. }
  90. }
  91. }
  92. *Option: Option2
  93. {
  94. *rcNameID: 258
  95. *PageDimensions: PAIR(3060, 3960)
  96. *Command: CmdSelect
  97. {
  98. *Order: DOC_SETUP.4
  99. *Cmd: "<1B>2<1B>CB"
  100. }
  101. *switch: InputBin
  102. {
  103. *case: TRACTOR
  104. {
  105. *PrintableArea: PAIR(2960, 3640)
  106. *PrintableOrigin: PAIR(50, 120)
  107. }
  108. *case: MANUAL
  109. {
  110. *PrintableArea: PAIR(2960, 3615)
  111. *PrintableOrigin: PAIR(50, 120)
  112. *switch: Resolution
  113. {
  114. *case: Option1
  115. {
  116. *% Warning: the following printable length is adjusted (3615->3614) so it is divisible by the resolution Y scale.
  117. *PrintableArea: PAIR(2960, 3614)
  118. }
  119. }
  120. }
  121. }
  122. }
  123. *Option: LEGAL
  124. {
  125. *rcNameID: =LEGAL_DISPLAY
  126. *Command: CmdSelect
  127. {
  128. *Order: DOC_SETUP.4
  129. *Cmd: "<1B>2<1B>CT"
  130. }
  131. *switch: InputBin
  132. {
  133. *case: TRACTOR
  134. {
  135. *PrintableArea: PAIR(2960, 4720)
  136. *PrintableOrigin: PAIR(50, 120)
  137. }
  138. *case: MANUAL
  139. {
  140. *PrintableArea: PAIR(2960, 4695)
  141. *PrintableOrigin: PAIR(50, 120)
  142. *switch: Resolution
  143. {
  144. *case: Option1
  145. {
  146. *% Warning: the following printable length is adjusted (4695->4694) so it is divisible by the resolution Y scale.
  147. *PrintableArea: PAIR(2960, 4694)
  148. }
  149. }
  150. }
  151. }
  152. }
  153. *Option: A4
  154. {
  155. *rcNameID: =A4_DISPLAY
  156. *Command: CmdSelect
  157. {
  158. *Order: DOC_SETUP.4
  159. *Cmd: "<1B>2<1B>CF"
  160. }
  161. *switch: InputBin
  162. {
  163. *case: TRACTOR
  164. {
  165. *PrintableArea: PAIR(2877, 3888)
  166. *PrintableOrigin: PAIR(50, 120)
  167. *switch: Resolution
  168. {
  169. *case: Option1
  170. {
  171. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  172. *PrintableArea: PAIR(2876, 3888)
  173. }
  174. }
  175. }
  176. *case: MANUAL
  177. {
  178. *PrintableArea: PAIR(2877, 3863)
  179. *PrintableOrigin: PAIR(50, 120)
  180. *switch: Resolution
  181. {
  182. *case: Option1
  183. {
  184. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  185. *% Warning: the following printable length is adjusted (3863->3862) so it is divisible by the resolution Y scale.
  186. *PrintableArea: PAIR(2876, 3862)
  187. }
  188. }
  189. }
  190. }
  191. }
  192. *Option: A5
  193. {
  194. *rcNameID: =A5_DISPLAY
  195. *Command: CmdSelect
  196. {
  197. *Order: DOC_SETUP.4
  198. *Cmd: "<1B>2<1B>C2"
  199. }
  200. *switch: InputBin
  201. {
  202. *case: TRACTOR
  203. {
  204. *PrintableArea: PAIR(1999, 2657)
  205. *PrintableOrigin: PAIR(50, 120)
  206. *switch: Resolution
  207. {
  208. *case: Option1
  209. {
  210. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  211. *% Warning: the following printable length is adjusted (2657->2656) so it is divisible by the resolution Y scale.
  212. *PrintableArea: PAIR(1998, 2656)
  213. }
  214. }
  215. }
  216. *case: MANUAL
  217. {
  218. *PrintableArea: PAIR(1999, 2632)
  219. *PrintableOrigin: PAIR(50, 120)
  220. *switch: Resolution
  221. {
  222. *case: Option1
  223. {
  224. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  225. *PrintableArea: PAIR(1998, 2632)
  226. }
  227. }
  228. }
  229. }
  230. }
  231. *Option: B4
  232. {
  233. *rcNameID: =B4_DISPLAY
  234. *Command: CmdSelect
  235. {
  236. *Order: DOC_SETUP.4
  237. *Cmd: "<1B>2<1B>CV"
  238. }
  239. *switch: InputBin
  240. {
  241. *case: TRACTOR
  242. {
  243. *PrintableArea: PAIR(3543, 4839)
  244. *PrintableOrigin: PAIR(50, 120)
  245. *switch: Resolution
  246. {
  247. *case: Option1
  248. {
  249. *% Warning: the following printable width is adjusted (3543->3542) so it is divisible by the resolution X scale.
  250. *% Warning: the following printable length is adjusted (4839->4838) so it is divisible by the resolution Y scale.
  251. *PrintableArea: PAIR(3542, 4838)
  252. }
  253. }
  254. }
  255. *case: MANUAL
  256. {
  257. *PrintableArea: PAIR(3543, 4814)
  258. *PrintableOrigin: PAIR(50, 120)
  259. *switch: Resolution
  260. {
  261. *case: Option1
  262. {
  263. *% Warning: the following printable width is adjusted (3543->3542) so it is divisible by the resolution X scale.
  264. *PrintableArea: PAIR(3542, 4814)
  265. }
  266. }
  267. }
  268. }
  269. }
  270. *Option: B5
  271. {
  272. *rcNameID: =B5_DISPLAY
  273. *Command: CmdSelect
  274. {
  275. *Order: DOC_SETUP.4
  276. *Cmd: "<1B>2<1B>C="
  277. }
  278. *switch: InputBin
  279. {
  280. *case: TRACTOR
  281. {
  282. *PrintableArea: PAIR(2481, 3323)
  283. *PrintableOrigin: PAIR(50, 120)
  284. *switch: Resolution
  285. {
  286. *case: Option1
  287. {
  288. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  289. *% Warning: the following printable length is adjusted (3323->3322) so it is divisible by the resolution Y scale.
  290. *PrintableArea: PAIR(2480, 3322)
  291. }
  292. }
  293. }
  294. *case: MANUAL
  295. {
  296. *PrintableArea: PAIR(2481, 3298)
  297. *PrintableOrigin: PAIR(50, 120)
  298. *switch: Resolution
  299. {
  300. *case: Option1
  301. {
  302. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  303. *PrintableArea: PAIR(2480, 3298)
  304. }
  305. }
  306. }
  307. }
  308. }
  309. *Option: FANFOLD_US
  310. {
  311. *rcNameID: =FANFOLD_US_DISPLAY
  312. *Command: CmdSelect
  313. {
  314. *Order: DOC_SETUP.4
  315. *Cmd: "<1B>2<1B>CB"
  316. }
  317. *switch: InputBin
  318. {
  319. *case: TRACTOR
  320. {
  321. *PrintableArea: PAIR(4895, 3960)
  322. *PrintableOrigin: PAIR(0, 0)
  323. *switch: Resolution
  324. {
  325. *case: Option1
  326. {
  327. *% Warning: the following printable width is adjusted (4895->4894) so it is divisible by the resolution X scale.
  328. *PrintableArea: PAIR(4894, 3960)
  329. }
  330. }
  331. }
  332. *case: MANUAL
  333. {
  334. *PrintableArea: PAIR(4895, 3615)
  335. *PrintableOrigin: PAIR(0, 120)
  336. *switch: Resolution
  337. {
  338. *case: Option1
  339. {
  340. *% Warning: the following printable width is adjusted (4895->4894) so it is divisible by the resolution X scale.
  341. *% Warning: the following printable length is adjusted (3615->3614) so it is divisible by the resolution Y scale.
  342. *PrintableArea: PAIR(4894, 3614)
  343. }
  344. }
  345. }
  346. }
  347. }
  348. *Option: Option9
  349. {
  350. *rcNameID: 259
  351. *PageDimensions: PAIR(4995, 3960)
  352. *Command: CmdSelect
  353. {
  354. *Order: DOC_SETUP.4
  355. *Cmd: "<1B>2<1B>CB"
  356. }
  357. *switch: InputBin
  358. {
  359. *case: TRACTOR
  360. {
  361. *PrintableArea: PAIR(4895, 3640)
  362. *PrintableOrigin: PAIR(50, 120)
  363. *switch: Resolution
  364. {
  365. *case: Option1
  366. {
  367. *% Warning: the following printable width is adjusted (4895->4894) so it is divisible by the resolution X scale.
  368. *PrintableArea: PAIR(4894, 3640)
  369. }
  370. }
  371. }
  372. *case: MANUAL
  373. {
  374. *PrintableArea: PAIR(4895, 3615)
  375. *PrintableOrigin: PAIR(50, 120)
  376. *switch: Resolution
  377. {
  378. *case: Option1
  379. {
  380. *% Warning: the following printable width is adjusted (4895->4894) so it is divisible by the resolution X scale.
  381. *% Warning: the following printable length is adjusted (3615->3614) so it is divisible by the resolution Y scale.
  382. *PrintableArea: PAIR(4894, 3614)
  383. }
  384. }
  385. }
  386. }
  387. }
  388. *Option: CUSTOMSIZE
  389. {
  390. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  391. *MinSize: PAIR(360, 360)
  392. *MaxSize: PAIR(5940, 32767)
  393. *MaxPrintableWidth: 4896
  394. *MinLeftMargin: 0
  395. *CenterPrintable?: FALSE
  396. *switch: InputBin
  397. {
  398. *case: TRACTOR
  399. {
  400. *TopMargin: 0
  401. *BottomMargin: 0
  402. }
  403. *case: MANUAL
  404. {
  405. *TopMargin: 120
  406. *BottomMargin: 225
  407. }
  408. }
  409. *Command: CmdSelect
  410. {
  411. *Order: DOC_SETUP.4
  412. *Cmd: "<1B>2<1B>C" %c[0,127]{(PhysPaperLength / 60) }
  413. }
  414. }
  415. }
  416. *Feature: PrintQuality
  417. {
  418. *rcNameID: =TEXT_QUALITY_DISPLAY
  419. *DefaultOption: LETTER_QUALITY
  420. *Option: LETTER_QUALITY
  421. {
  422. *rcNameID: =LETTER_QUALITY_DISPLAY
  423. *Command: CmdSelect
  424. {
  425. *Order: DOC_SETUP.2
  426. *Cmd: "<1B>x<01>"
  427. }
  428. }
  429. *Option: DRAFT_QUALITY
  430. {
  431. *rcNameID: =DRAFT_QUALITY_DISPLAY
  432. *Command: CmdSelect
  433. {
  434. *Order: DOC_SETUP.2
  435. *Cmd: "<1B>x<00>"
  436. }
  437. }
  438. }
  439. *Feature: Halftone
  440. {
  441. *rcNameID: =HALFTONING_DISPLAY
  442. *DefaultOption: HT_PATSIZE_AUTO
  443. *Option: HT_PATSIZE_AUTO
  444. {
  445. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  446. }
  447. *Option: HT_PATSIZE_SUPERCELL_M
  448. {
  449. *rcNameID: =HT_SUPERCELL_DISPLAY
  450. }
  451. *Option: HT_PATSIZE_6x6_M
  452. {
  453. *rcNameID: =HT_DITHER6X6_DISPLAY
  454. }
  455. *Option: HT_PATSIZE_8x8_M
  456. {
  457. *rcNameID: =HT_DITHER8X8_DISPLAY
  458. }
  459. }
  460. *Command: CmdStartDoc
  461. {
  462. *Order: DOC_SETUP.1
  463. *Cmd: "<18>"
  464. }
  465. *Command: CmdEndJob
  466. {
  467. *Order: JOB_FINISH.1
  468. *Cmd: "<18>"
  469. }
  470. *RotateCoordinate?: FALSE
  471. *RotateRaster?: FALSE
  472. *RotateFont?: FALSE
  473. *switch: Orientation
  474. {
  475. *case: PORTRAIT
  476. {
  477. *TextCaps: LIST(TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  478. }
  479. *case: LANDSCAPE_CC270
  480. {
  481. *TextCaps: LIST(TC_RA_ABLE)
  482. }
  483. }
  484. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  485. *YMoveAttributes: LIST(SEND_CR_FIRST)
  486. *YMoveThreshold: *
  487. *YMoveUnit: 180
  488. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  489. *Command: CmdCR { *Cmd : "<0D>" }
  490. *Command: CmdLF { *Cmd : "<0A>" }
  491. *Command: CmdFF { *Cmd : "<0C>" }
  492. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  493. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  494. *EjectPageWithFF?: TRUE
  495. *OutputDataFormat: V_BYTE
  496. *OptimizeLeftBound?: FALSE
  497. *CursorXAfterSendBlockData: AT_GRXDATA_END
  498. *CursorYAfterSendBlockData: NO_MOVE
  499. *DefaultCTT: 0