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.

630 lines
17 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "PAKX2123.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Panasonic KX-P2123"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "pa24res.dll"
  12. *PrinterType: SERIAL
  13. *Feature: Orientation
  14. {
  15. *rcNameID: =ORIENTATION_DISPLAY
  16. *DefaultOption: PORTRAIT
  17. *Option: PORTRAIT
  18. {
  19. *rcNameID: =PORTRAIT_DISPLAY
  20. }
  21. *Option: LANDSCAPE_CC270
  22. {
  23. *rcNameID: =LANDSCAPE_DISPLAY
  24. }
  25. }
  26. *Feature: InputBin
  27. {
  28. *rcNameID: =PAPER_SOURCE_DISPLAY
  29. *DefaultOption: TRACTOR
  30. *Option: TRACTOR
  31. {
  32. *rcNameID: =TRACTOR_DISPLAY
  33. }
  34. *Option: AUTO
  35. {
  36. *rcNameID: =AUTO_DISPLAY
  37. *Command: CmdSelect
  38. {
  39. *Order: DOC_SETUP.3
  40. *Cmd: "<1B19>4"
  41. }
  42. }
  43. *Option: MANUAL
  44. {
  45. *rcNameID: =MANUAL_FEED_DISPLAY
  46. *Command: CmdSelect
  47. {
  48. *Order: DOC_SETUP.3
  49. *Cmd: "<1B19>0"
  50. }
  51. }
  52. }
  53. *Feature: Resolution
  54. {
  55. *rcNameID: =RESOLUTION_DISPLAY
  56. *DefaultOption: Option1
  57. *Option: Option1
  58. {
  59. *Name: "180 x 180 " =DOTS_PER_INCH
  60. *DPI: PAIR(180, 180)
  61. *TextDPI: PAIR(180, 180)
  62. *PinsPerLogPass: 24
  63. *PinsPerPhysPass: 24
  64. *MinStripBlankPixels: 180
  65. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  66. *SpotDiameter: 120
  67. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  68. }
  69. *Option: Option2
  70. {
  71. *Name: "360 x 180 " =DOTS_PER_INCH
  72. *DPI: PAIR(360, 180)
  73. *TextDPI: PAIR(360, 180)
  74. *PinsPerLogPass: 24
  75. *PinsPerPhysPass: 24
  76. *MinStripBlankPixels: 270
  77. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  78. *SpotDiameter: 170
  79. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  80. }
  81. *Option: Option3
  82. {
  83. *Name: "360 x 360 " =DOTS_PER_INCH
  84. *DPI: PAIR(360, 360)
  85. *TextDPI: PAIR(360, 360)
  86. *PinsPerLogPass: 48
  87. *PinsPerPhysPass: 24
  88. *MinStripBlankPixels: 270
  89. *RequireUniDir?: TRUE
  90. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  91. *SpotDiameter: 170
  92. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  93. }
  94. *Option: Option4
  95. {
  96. *Name: "120 x 180 " =DOTS_PER_INCH
  97. *DPI: PAIR(120, 180)
  98. *TextDPI: PAIR(120, 180)
  99. *PinsPerLogPass: 24
  100. *PinsPerPhysPass: 24
  101. *MinStripBlankPixels: 90
  102. EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  103. *SpotDiameter: 100
  104. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  105. }
  106. }
  107. *Feature: PaperSize
  108. {
  109. *rcNameID: =PAPER_SIZE_DISPLAY
  110. *DefaultOption: LETTER
  111. *Option: LETTER
  112. {
  113. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  114. *Command: CmdSelect
  115. {
  116. *Order: DOC_SETUP.4
  117. *Cmd: "<1B>C<000B>"
  118. }
  119. *switch: InputBin
  120. {
  121. *case: TRACTOR
  122. {
  123. *PrintableArea: PAIR(5760, 7920)
  124. *PrintableOrigin: PAIR(180, 0)
  125. }
  126. *case: AUTO
  127. {
  128. *PrintableArea: PAIR(5760, 6768)
  129. *PrintableOrigin: PAIR(180, 432)
  130. }
  131. *case: MANUAL
  132. {
  133. *PrintableArea: PAIR(5760, 7284)
  134. *PrintableOrigin: PAIR(180, 408)
  135. }
  136. }
  137. }
  138. *Option: LEGAL
  139. {
  140. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  141. *Command: CmdSelect
  142. {
  143. *Order: DOC_SETUP.4
  144. *Cmd: "<1B>C<000E>"
  145. }
  146. *switch: InputBin
  147. {
  148. *case: TRACTOR
  149. {
  150. *PrintableArea: PAIR(5760, 10080)
  151. *PrintableOrigin: PAIR(180, 0)
  152. }
  153. *case: AUTO
  154. {
  155. *PrintableArea: PAIR(5760, 8928)
  156. *PrintableOrigin: PAIR(180, 432)
  157. }
  158. *case: MANUAL
  159. {
  160. *PrintableArea: PAIR(5760, 9444)
  161. *PrintableOrigin: PAIR(180, 408)
  162. }
  163. }
  164. }
  165. *Option: Option3
  166. {
  167. *rcNameID: 258
  168. *PageDimensions: PAIR(6120, 8640)
  169. *Command: CmdSelect
  170. {
  171. *Order: DOC_SETUP.4
  172. *Cmd: "<1B>C<000C>"
  173. }
  174. *switch: InputBin
  175. {
  176. *case: TRACTOR
  177. {
  178. *PrintableArea: PAIR(5760, 8640)
  179. *PrintableOrigin: PAIR(180, 0)
  180. }
  181. *case: AUTO
  182. {
  183. *PrintableArea: PAIR(5760, 7488)
  184. *PrintableOrigin: PAIR(180, 432)
  185. }
  186. *case: MANUAL
  187. {
  188. *PrintableArea: PAIR(5760, 8004)
  189. *PrintableOrigin: PAIR(180, 408)
  190. }
  191. }
  192. }
  193. *Option: Option4
  194. {
  195. *rcNameID: 259
  196. *PageDimensions: PAIR(6120, 9360)
  197. *Command: CmdSelect
  198. {
  199. *Order: DOC_SETUP.4
  200. *Cmd: "<1B>C<000D>"
  201. }
  202. *switch: InputBin
  203. {
  204. *case: TRACTOR
  205. {
  206. *PrintableArea: PAIR(5760, 9360)
  207. *PrintableOrigin: PAIR(180, 0)
  208. }
  209. *case: AUTO
  210. {
  211. *PrintableArea: PAIR(5760, 8208)
  212. *PrintableOrigin: PAIR(180, 432)
  213. }
  214. *case: MANUAL
  215. {
  216. *PrintableArea: PAIR(5760, 8724)
  217. *PrintableOrigin: PAIR(180, 408)
  218. }
  219. }
  220. }
  221. *Option: A4
  222. {
  223. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  224. *Command: CmdSelect
  225. {
  226. *Order: DOC_SETUP.4
  227. *Cmd: "<1B>3<121B>Cu"
  228. }
  229. *switch: InputBin
  230. {
  231. *case: TRACTOR
  232. {
  233. *PrintableArea: PAIR(5760, 8417)
  234. *PrintableOrigin: PAIR(180, 0)
  235. *switch: Resolution
  236. {
  237. *case: Option1
  238. {
  239. *PrintableArea: PAIR(5760, 8416)
  240. }
  241. *case: Option2
  242. {
  243. *PrintableArea: PAIR(5760, 8416)
  244. }
  245. *case: Option3
  246. {
  247. *PrintableArea: PAIR(5760, 8416)
  248. }
  249. *case: Option4
  250. {
  251. *PrintableArea: PAIR(5760, 8416)
  252. }
  253. }
  254. }
  255. *case: AUTO
  256. {
  257. *PrintableArea: PAIR(5760, 7265)
  258. *PrintableOrigin: PAIR(180, 432)
  259. *switch: Resolution
  260. {
  261. *case: Option1
  262. {
  263. *PrintableArea: PAIR(5760, 7264)
  264. }
  265. *case: Option2
  266. {
  267. *PrintableArea: PAIR(5760, 7264)
  268. }
  269. *case: Option3
  270. {
  271. *PrintableArea: PAIR(5760, 7264)
  272. }
  273. *case: Option4
  274. {
  275. *PrintableArea: PAIR(5760, 7264)
  276. }
  277. }
  278. }
  279. *case: MANUAL
  280. {
  281. *PrintableArea: PAIR(5760, 7781)
  282. *PrintableOrigin: PAIR(180, 408)
  283. *switch: Resolution
  284. {
  285. *case: Option1
  286. {
  287. *PrintableArea: PAIR(5760, 7780)
  288. }
  289. *case: Option2
  290. {
  291. *PrintableArea: PAIR(5760, 7780)
  292. }
  293. *case: Option3
  294. {
  295. *PrintableArea: PAIR(5760, 7780)
  296. }
  297. *case: Option4
  298. {
  299. *PrintableArea: PAIR(5760, 7780)
  300. }
  301. }
  302. }
  303. }
  304. }
  305. *Option: B5
  306. {
  307. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  308. *Command: CmdSelect
  309. {
  310. *Order: DOC_SETUP.4
  311. *Cmd: "<1B>2<1B>C%<"
  312. }
  313. *switch: InputBin
  314. {
  315. *case: TRACTOR
  316. {
  317. *PrintableArea: PAIR(4982, 7286)
  318. *PrintableOrigin: PAIR(180, 0)
  319. *switch: Resolution
  320. {
  321. *case: Option1
  322. {
  323. *PrintableArea: PAIR(4980, 7284)
  324. }
  325. *case: Option2
  326. {
  327. *PrintableArea: PAIR(4982, 7284)
  328. }
  329. *case: Option4
  330. {
  331. *PrintableArea: PAIR(4980, 7284)
  332. }
  333. }
  334. }
  335. *case: AUTO
  336. {
  337. *PrintableArea: PAIR(4982, 6134)
  338. *PrintableOrigin: PAIR(180, 432)
  339. *switch: Resolution
  340. {
  341. *case: Option1
  342. {
  343. *PrintableArea: PAIR(4980, 6132)
  344. }
  345. *case: Option2
  346. {
  347. *PrintableArea: PAIR(4982, 6132)
  348. }
  349. *case: Option4
  350. {
  351. *PrintableArea: PAIR(4980, 6132)
  352. }
  353. }
  354. }
  355. *case: MANUAL
  356. {
  357. *PrintableArea: PAIR(4982, 6650)
  358. *PrintableOrigin: PAIR(180, 408)
  359. *switch: Resolution
  360. {
  361. *case: Option1
  362. {
  363. *PrintableArea: PAIR(4980, 6648)
  364. }
  365. *case: Option2
  366. {
  367. *PrintableArea: PAIR(4982, 6648)
  368. }
  369. *case: Option4
  370. {
  371. *PrintableArea: PAIR(4980, 6648)
  372. }
  373. }
  374. }
  375. }
  376. }
  377. *Option: ENV_10
  378. {
  379. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  380. *Command: CmdSelect
  381. {
  382. *Order: DOC_SETUP.4
  383. *Cmd: "<1B>2<1B>C9"
  384. }
  385. *switch: InputBin
  386. {
  387. *case: TRACTOR
  388. {
  389. *PrintableArea: PAIR(2794, 6840)
  390. *PrintableOrigin: PAIR(180, 0)
  391. *switch: Resolution
  392. {
  393. *case: Option1
  394. {
  395. *PrintableArea: PAIR(2792, 6840)
  396. }
  397. *case: Option4
  398. {
  399. *PrintableArea: PAIR(2790, 6840)
  400. }
  401. }
  402. }
  403. *case: AUTO
  404. {
  405. *PrintableArea: PAIR(2794, 5688)
  406. *PrintableOrigin: PAIR(180, 432)
  407. *switch: Resolution
  408. {
  409. *case: Option1
  410. {
  411. *PrintableArea: PAIR(2792, 5688)
  412. }
  413. *case: Option4
  414. {
  415. *PrintableArea: PAIR(2790, 5688)
  416. }
  417. }
  418. }
  419. *case: MANUAL
  420. {
  421. *PrintableArea: PAIR(2794, 6204)
  422. *PrintableOrigin: PAIR(180, 408)
  423. *switch: Resolution
  424. {
  425. *case: Option1
  426. {
  427. *PrintableArea: PAIR(2792, 6204)
  428. }
  429. *case: Option4
  430. {
  431. *PrintableArea: PAIR(2790, 6204)
  432. }
  433. }
  434. }
  435. }
  436. }
  437. *Option: CUSTOMSIZE
  438. {
  439. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  440. *MinSize: PAIR(360, 720)
  441. *MaxSize: PAIR(6120, 15840)
  442. *MaxPrintableWidth: 5760
  443. *MinLeftMargin: 180
  444. *CenterPrintable?: FALSE
  445. *switch: InputBin
  446. {
  447. *case: TRACTOR
  448. {
  449. *TopMargin: 0
  450. *BottomMargin: 0
  451. }
  452. *case: AUTO
  453. {
  454. *TopMargin: 432
  455. *BottomMargin: 720
  456. }
  457. *case: MANUAL
  458. {
  459. *TopMargin: 408
  460. *BottomMargin: 228
  461. }
  462. }
  463. *Command: CmdSelect
  464. {
  465. *Order: DOC_SETUP.4
  466. *Cmd: "<1B>2"
  467. }
  468. }
  469. }
  470. *Feature: PrintQuality
  471. {
  472. *rcNameID: =TEXT_QUALITY_DISPLAY
  473. *DefaultOption: LETTER_QUALITY
  474. *Option: LETTER_QUALITY
  475. {
  476. *rcNameID: =LETTER_QUALITY_DISPLAY
  477. *Command: CmdSelect
  478. {
  479. *Order: DOC_SETUP.2
  480. *Cmd: "<1B>x<01>"
  481. }
  482. }
  483. *Option: DRAFT_QUALITY
  484. {
  485. *rcNameID: =DRAFT_QUALITY_DISPLAY
  486. *Command: CmdSelect
  487. {
  488. *Order: DOC_SETUP.2
  489. *Cmd: "<1B>x<00>"
  490. }
  491. }
  492. }
  493. *Feature: ColorMode
  494. {
  495. *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  496. *DefaultOption: Color
  497. *Option: Mono
  498. {
  499. *rcNameID: =MONO_DISPLAY
  500. *DevNumOfPlanes: 1
  501. *DevBPP: 1
  502. *Color? : FALSE
  503. }
  504. *Option: Color
  505. {
  506. *rcNameID: =COLOR_DISPLAY
  507. *DevNumOfPlanes: 4
  508. *DevBPP: 1
  509. *DrvBPP: 4
  510. EXTERN_GLOBAL: *UseExpColorSelectCmd? : TRUE
  511. *ColorPlaneOrder: LIST(YELLOW, MAGENTA, CYAN, BLACK)
  512. *Command: CmdSendYellowData { *Cmd : "<1B>r<04>" }
  513. *Command: CmdSendMagentaData { *Cmd : "<1B>r<01>" }
  514. *Command: CmdSendCyanData { *Cmd : "<1B>r<02>" }
  515. *Command: CmdSendBlackData { *Cmd : "<1B>r<00>" }
  516. *Command: CmdSelectBlackColor { *Cmd : "<1B>r<00>" }
  517. *Command: CmdSelectRedColor { *Cmd : "<1B>r<05>" }
  518. *Command: CmdSelectGreenColor { *Cmd : "<1B>r<06>" }
  519. *Command: CmdSelectYellowColor { *Cmd : "<1B>r<04>" }
  520. *Command: CmdSelectBlueColor { *Cmd : "<1B>r<02>" }
  521. *Command: CmdSelectMagentaColor { *Cmd : "<1B>r<01>" }
  522. *Command: CmdSelectCyanColor { *Cmd : "<1B>r<02>" }
  523. }
  524. }
  525. *Feature: Halftone
  526. {
  527. *rcNameID: =HALFTONING_DISPLAY
  528. *DefaultOption: HT_PATSIZE_AUTO
  529. *Option: HT_PATSIZE_AUTO
  530. {
  531. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  532. }
  533. *Ifdef: WINNT_50
  534. *Option: HT_PATSIZE_SUPERCELL_M
  535. {
  536. *rcNameID: =HT_SUPERCELL_DISPLAY
  537. }
  538. *Endif:
  539. *Option: HT_PATSIZE_6x6_M
  540. {
  541. *rcNameID: =HT_DITHER6X6_DISPLAY
  542. }
  543. *Option: HT_PATSIZE_8x8_M
  544. {
  545. *rcNameID: =HT_DITHER8X8_DISPLAY
  546. }
  547. }
  548. *Command: CmdStartDoc
  549. {
  550. *Order: DOC_SETUP.1
  551. *Cmd: "<1B>@<1B>t<011B>6"
  552. }
  553. *Command: CmdEndJob
  554. {
  555. *Order: JOB_FINISH.1
  556. *Cmd: "<1B>@"
  557. }
  558. *RotateCoordinate?: FALSE
  559. *RotateRaster?: FALSE
  560. *RotateFont?: FALSE
  561. *switch: Orientation
  562. {
  563. *case: PORTRAIT
  564. {
  565. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  566. }
  567. *case: LANDSCAPE_CC270
  568. {
  569. *TextCaps: LIST(TC_RA_ABLE)
  570. }
  571. }
  572. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  573. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  574. *MaxLineSpacing: 255
  575. *XMoveThreshold: 0
  576. *YMoveThreshold: *
  577. *XMoveUnit: 60
  578. *YMoveUnit: 180
  579. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,1530]{max_repeat((DestX / 12) )} }
  580. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 4) )} }
  581. *Command: CmdSetLineSpacing { *Cmd : "<1B>+" %c[0,255]{(LinefeedSpacing / 2) } }
  582. *Command: CmdCR { *Cmd : "<0D>" }
  583. *Command: CmdLF { *Cmd : "<0A>" }
  584. *Command: CmdFF { *Cmd : "<0C>" }
  585. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  586. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  587. *EjectPageWithFF?: TRUE
  588. *switch: PaperSize
  589. {
  590. *case: CUSTOMSIZE
  591. {
  592. *EjectPageWithFF?: FALSE
  593. *switch: InputBin
  594. {
  595. *case: AUTO
  596. {
  597. *EjectPageWithFF?: TRUE
  598. }
  599. *case: MANUAL
  600. {
  601. *EjectPageWithFF?: TRUE
  602. }
  603. }
  604. }
  605. }
  606. *OutputDataFormat: V_BYTE
  607. *OptimizeLeftBound?: FALSE
  608. *CursorXAfterSendBlockData: AT_GRXDATA_END
  609. *CursorYAfterSendBlockData: NO_MOVE
  610. *DefaultFont: 1
  611. *DefaultCTT: 2
  612. *switch: Orientation
  613. {
  614. *case: PORTRAIT
  615. {
  616. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  617. + 17,18,28,29,30,31,32,33,34,35,36,37,38,39,40,41,
  618. + 42,43)
  619. }
  620. *case: LANDSCAPE_CC270
  621. {
  622. *DeviceFonts: LIST()
  623. }
  624. }
  625. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  626. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  627. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  628. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  629. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  630. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }