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.

702 lines
17 KiB

  1. *Include: "StdNames.gpd"
  2. *GPDSpecVersion: "1.0"
  3. *CodePage: 932
  4. *FontCartSlots: 1
  5. *GPDFileName: "OK532SVJ.GPD"
  6. *GPDFileVersion: "1.00"
  7. *MasterUnits: PAIR(320, 320)
  8. *ModelName: "OKI MICROLINE 5320SV"
  9. *PrinterType: SERIAL
  10. *ResourceDLL: "OK21JRES.Dll"
  11. *RotateCoordinate?: FALSE
  12. *RotateFont?: FALSE
  13. *RotateRaster?: FALSE
  14. *switch: Orientation
  15. {
  16. *case: PORTRAIT
  17. {
  18. *TextCaps: LIST(TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  19. }
  20. *case: LANDSCAPE_CC270
  21. {
  22. *TextCaps: LIST(TC_RA_ABLE)
  23. }
  24. }
  25. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  26. *MaxLineSpacing: 264
  27. *XMoveThreshold: 0
  28. *XMoveUnit: 160
  29. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  30. *DefaultFont: 6
  31. *DefaultCTT: -1
  32. *CursorXAfterSendBlockData: AT_GRXDATA_END
  33. *CursorYAfterSendBlockData: NO_MOVE
  34. *MirrorRasterByte?: TRUE
  35. *OptimizeLeftBound?: FALSE
  36. *OutputDataFormat: V_BYTE
  37. *Command: CmdStartDoc
  38. {
  39. *Order: DOC_SETUP.1
  40. *Cmd: "<1B>H<1B>%"<1B>Y<1B>M<1B>]<1B>A<1B>f<1B>a<1C>c,,0."
  41. }
  42. *Command: CmdStartPage
  43. {
  44. *Order: PAGE_SETUP.1
  45. *Cmd: "<0D>"
  46. }
  47. *Command: CmdEndPage
  48. {
  49. *Order: PAGE_FINISH.1
  50. *Cmd: "<1B>b"
  51. }
  52. *Command: CmdBoldOn { *Cmd : "<1C>c,,1." }
  53. *Command: CmdBoldOff { *Cmd : "<1C>c,,0." }
  54. *Command: CmdItalicOn { *Cmd : "<1C>c,,2." }
  55. *Command: CmdItalicOff { *Cmd : "<1C>c,,0." }
  56. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  57. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  58. *Command: CmdXMoveAbsolute { *Cmd : "<0D><1B>F" %4d[0,1696]{max_repeat((DestX / 2) )} }
  59. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{((LinefeedSpacing * 3) / 8) } }
  60. *Command: CmdCR { *Cmd : "<0D>" }
  61. *Command: CmdLF { *Cmd : "<0A>" }
  62. *Command: CmdFF { *Cmd : "<0D0C>" }
  63. *Command: CmdBackSpace { *Cmd : "<08>" }
  64. *Feature: Orientation
  65. {
  66. *rcNameID: =ORIENTATION_DISPLAY
  67. *DefaultOption: PORTRAIT
  68. *Option: PORTRAIT
  69. {
  70. *rcNameID: =PORTRAIT_DISPLAY
  71. }
  72. *Option: LANDSCAPE_CC270
  73. {
  74. *rcNameID: =LANDSCAPE_DISPLAY
  75. }
  76. }
  77. *Feature: InputBin
  78. {
  79. *rcNameID: =PAPER_SOURCE_DISPLAY
  80. *DefaultOption: MANUAL
  81. *Option: MANUAL
  82. {
  83. *rcNameID: =MANUAL_FEED_DISPLAY
  84. }
  85. *Option: USER_CSF
  86. {
  87. *rcNameID: 259
  88. *OptionID: 259
  89. }
  90. *Option: USER_TRACTOR
  91. {
  92. *rcNameID: 262
  93. *OptionID: 262
  94. }
  95. }
  96. *Feature: OutputBin
  97. {
  98. *rcNameID: =OUTPUTBIN_DISPLAY
  99. *DefaultOption: USER_NOOUTBIN
  100. *Option: USER_TABLE
  101. {
  102. *rcNameID: 263
  103. *Command: CmdSelect
  104. {
  105. *Order: DOC_SETUP.5
  106. *Cmd: "<1C>02ER"
  107. }
  108. }
  109. *Option: USER_STACKER
  110. {
  111. *rcNameID: 264
  112. *Command: CmdSelect
  113. {
  114. *Order: DOC_SETUP.5
  115. *Cmd: "<1C>02EF"
  116. }
  117. }
  118. *Option: USER_NOOUTBIN
  119. {
  120. *rcNameID: 265
  121. }
  122. }
  123. *Feature: Resolution
  124. {
  125. *rcNameID: =RESOLUTION_DISPLAY
  126. *DefaultOption: USER_160x160DPI
  127. *Option: USER_160x160DPI
  128. {
  129. *Name: "160 x 160 " =DOTS_PER_INCH
  130. *DPI: PAIR(160, 160)
  131. *TextDPI: PAIR(160, 160)
  132. *PinsPerLogPass: 24
  133. *PinsPerPhysPass: 24
  134. *MinStripBlankPixels: 270
  135. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  136. *SpotDiameter: 120
  137. *Command: CmdSendBlockData { *Cmd : "<1B>J" %4d{NumOfDataBytes / 3} }
  138. }
  139. }
  140. *Feature: PaperSize
  141. {
  142. *rcNameID: =PAPER_SIZE_DISPLAY
  143. *DefaultOption: A4
  144. *Option: A4
  145. {
  146. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  147. *Command: CmdSelect
  148. {
  149. *Order: DOC_SETUP.4
  150. *Cmd: "<1B>v72."
  151. }
  152. *switch: Resolution
  153. {
  154. *case: USER_160x160DPI
  155. {
  156. *PrintableArea: PAIR(2518, 3598)
  157. *PrintableOrigin: PAIR(62, 54)
  158. }
  159. }
  160. }
  161. *Option: A4_ROTATED
  162. {
  163. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  164. *Command: CmdSelect
  165. {
  166. *Order: DOC_SETUP.4
  167. *Cmd: "<1B>v52."
  168. }
  169. *switch: Resolution
  170. {
  171. *case: USER_160x160DPI
  172. {
  173. *PrintableArea: PAIR(3392, 2502)
  174. *PrintableOrigin: PAIR(62, 54)
  175. }
  176. }
  177. }
  178. *Option: A3
  179. {
  180. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  181. *Command: CmdSelect
  182. {
  183. *Order: DOC_SETUP.4
  184. *Cmd: %v{((PhysPaperLength * 3) / 160) + 2 }
  185. }
  186. *switch: Resolution
  187. {
  188. *case: USER_160x160DPI
  189. {
  190. *PrintableArea: PAIR(3392, 5148)
  191. *PrintableOrigin: PAIR(62, 54)
  192. }
  193. }
  194. }
  195. *Option: A5
  196. {
  197. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  198. *Command: CmdSelect
  199. {
  200. *Order: DOC_SETUP.4
  201. *Cmd: "<1B>v52."
  202. }
  203. *switch: Resolution
  204. {
  205. *case: USER_160x160DPI
  206. {
  207. *PrintableArea: PAIR(1738, 2502)
  208. *PrintableOrigin: PAIR(62, 54)
  209. }
  210. }
  211. }
  212. *Option: A5_ROTATED
  213. {
  214. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  215. *Command: CmdSelect
  216. {
  217. *Order: DOC_SETUP.4
  218. *Cmd: "<1B>v37."
  219. }
  220. *switch: Resolution
  221. {
  222. *case: USER_160x160DPI
  223. {
  224. *PrintableArea: PAIR(2518, 1722)
  225. *PrintableOrigin: PAIR(62, 54)
  226. }
  227. }
  228. }
  229. *Option: A6
  230. {
  231. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  232. *Command: CmdSelect
  233. {
  234. *Order: DOC_SETUP.4
  235. *Cmd: "<1B>v37."
  236. }
  237. *switch: Resolution
  238. {
  239. *case: USER_160x160DPI
  240. {
  241. *PrintableArea: PAIR(1196, 1722)
  242. *PrintableOrigin: PAIR(62, 54)
  243. }
  244. }
  245. }
  246. *Option: A6_ROTATED
  247. {
  248. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  249. *Command: CmdSelect
  250. {
  251. *Order: DOC_SETUP.4
  252. *Cmd: "<1B>v27."
  253. }
  254. *switch: Resolution
  255. {
  256. *case: USER_160x160DPI
  257. {
  258. *PrintableArea: PAIR(1738, 1180)
  259. *PrintableOrigin: PAIR(62, 54)
  260. }
  261. }
  262. }
  263. *Option: B4
  264. {
  265. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  266. *Command: CmdSelect
  267. {
  268. *Order: DOC_SETUP.4
  269. *Cmd: "<1B>v88."
  270. }
  271. *switch: Resolution
  272. {
  273. *case: USER_160x160DPI
  274. {
  275. *PrintableArea: PAIR(3110, 4442)
  276. *PrintableOrigin: PAIR(62, 54)
  277. }
  278. }
  279. }
  280. *Option: B5
  281. {
  282. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  283. *Command: CmdSelect
  284. {
  285. *Order: DOC_SETUP.4
  286. *Cmd: "<1B>v63."
  287. }
  288. *switch: Resolution
  289. {
  290. *case: USER_160x160DPI
  291. {
  292. *PrintableArea: PAIR(2166, 3094)
  293. *PrintableOrigin: PAIR(62, 54)
  294. }
  295. }
  296. }
  297. *Option: B5_JIS_ROTATED
  298. {
  299. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  300. *Command: CmdSelect
  301. {
  302. *Order: DOC_SETUP.4
  303. *Cmd: "<1B>v45."
  304. }
  305. *switch: Resolution
  306. {
  307. *case: USER_160x160DPI
  308. {
  309. *PrintableArea: PAIR(3110, 2150)
  310. *PrintableOrigin: PAIR(62, 54)
  311. }
  312. }
  313. }
  314. *Option: LETTER
  315. {
  316. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  317. *Command: CmdSelect
  318. {
  319. *Order: DOC_SETUP.4
  320. *Cmd: "<1B>v68."
  321. }
  322. *switch: Resolution
  323. {
  324. *case: USER_160x160DPI
  325. {
  326. *PrintableArea: PAIR(2594, 3378)
  327. *PrintableOrigin: PAIR(62, 54)
  328. }
  329. }
  330. }
  331. *Option: LEGAL
  332. {
  333. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  334. *Command: CmdSelect
  335. {
  336. *Order: DOC_SETUP.4
  337. *Cmd: "<1B>v86."
  338. }
  339. *switch: Resolution
  340. {
  341. *case: USER_160x160DPI
  342. {
  343. *PrintableArea: PAIR(2594, 4338)
  344. *PrintableOrigin: PAIR(62, 54)
  345. }
  346. }
  347. }
  348. *Option: JAPANESE_POSTCARD
  349. {
  350. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  351. *Command: CmdSelect
  352. {
  353. *Order: DOC_SETUP.4
  354. *Cmd: "<1B>v37."
  355. }
  356. *switch: Resolution
  357. {
  358. *case: USER_160x160DPI
  359. {
  360. *PrintableArea: PAIR(1132, 1722)
  361. *PrintableOrigin: PAIR(62, 54)
  362. }
  363. }
  364. }
  365. *Option: JAPANESE_POSTCARD_ROTATED
  366. {
  367. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  368. *Command: CmdSelect
  369. {
  370. *Order: DOC_SETUP.4
  371. *Cmd: "<1B>v26."
  372. }
  373. *switch: Resolution
  374. {
  375. *case: USER_160x160DPI
  376. {
  377. *PrintableArea: PAIR(1738, 1116)
  378. *PrintableOrigin: PAIR(62, 54)
  379. }
  380. }
  381. }
  382. *Option: DBL_JAPANESE_POSTCARD
  383. {
  384. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  385. *Command: CmdSelect
  386. {
  387. *Order: DOC_SETUP.4
  388. *Cmd: "<1B>v37."
  389. }
  390. *switch: Resolution
  391. {
  392. *case: USER_160x160DPI
  393. {
  394. *PrintableArea: PAIR(2392, 1722)
  395. *PrintableOrigin: PAIR(62, 54)
  396. }
  397. }
  398. }
  399. *Option: DBL_JAPANESE_POSTCARD_ROTATED
  400. {
  401. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  402. *Command: CmdSelect
  403. {
  404. *Order: DOC_SETUP.4
  405. *Cmd: "<1B>v49."
  406. }
  407. *switch: Resolution
  408. {
  409. *case: USER_160x160DPI
  410. {
  411. *PrintableArea: PAIR(1738, 2376)
  412. *PrintableOrigin: PAIR(62, 54)
  413. }
  414. }
  415. }
  416. *Option: JENV_CHOU4_ROTATED
  417. {
  418. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  419. *Command: CmdSelect
  420. {
  421. *Order: DOC_SETUP.4
  422. *Cmd: "<1B>v23."
  423. }
  424. *switch: Resolution
  425. {
  426. *case: USER_160x160DPI
  427. {
  428. *PrintableArea: PAIR(2456, 990)
  429. *PrintableOrigin: PAIR(62, 54)
  430. }
  431. }
  432. }
  433. *Option: JENV_CHOU3_ROTATED
  434. {
  435. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  436. *Command: CmdSelect
  437. {
  438. *Order: DOC_SETUP.4
  439. *Cmd: "<1B>v30."
  440. }
  441. *switch: Resolution
  442. {
  443. *case: USER_160x160DPI
  444. {
  445. *PrintableArea: PAIR(2834, 1368)
  446. *PrintableOrigin: PAIR(62, 54)
  447. }
  448. }
  449. }
  450. *Option: JENV_KAKU3_ROTATED
  451. {
  452. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  453. *Command: CmdSelect
  454. {
  455. *Order: DOC_SETUP.4
  456. *Cmd: "<1B>v53."
  457. }
  458. *switch: Resolution
  459. {
  460. *case: USER_160x160DPI
  461. {
  462. *PrintableArea: PAIR(3362, 2578)
  463. *PrintableOrigin: PAIR(62, 54)
  464. }
  465. }
  466. }
  467. *Option: 10X11
  468. {
  469. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  470. *Command: CmdSelect
  471. {
  472. *Order: DOC_SETUP.4
  473. *Cmd: "<1B>K<1B>v66."
  474. }
  475. *switch: Resolution
  476. {
  477. *case: USER_160x160DPI
  478. {
  479. *PrintableArea: PAIR(2752, 3466)
  480. *PrintableOrigin: PAIR(224, 54)
  481. }
  482. }
  483. }
  484. *Option: 12X11
  485. {
  486. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  487. *Command: CmdSelect
  488. {
  489. *Order: DOC_SETUP.4
  490. *Cmd: "<1B>K<1B>v66."
  491. }
  492. *switch: Resolution
  493. {
  494. *case: USER_160x160DPI
  495. {
  496. *PrintableArea: PAIR(3392, 3466)
  497. *PrintableOrigin: PAIR(224, 54)
  498. }
  499. }
  500. }
  501. *Option: CUSTOMSIZE
  502. {
  503. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  504. *MinSize: PAIR(960, 864)
  505. *MaxSize: PAIR(3840, 5312)
  506. *MaxPrintableWidth: 3392
  507. *CenterPrintable?: FALSE
  508. *switch: InputBin
  509. {
  510. *case: MANUAL
  511. {
  512. *CustCursorOriginX: %d{62}
  513. *CustCursorOriginY: %d{54}
  514. *CustPrintableOriginX: %d{62}
  515. *CustPrintableOriginY: %d{54}
  516. *CustPrintableSizeX: %d{PhysPaperWidth-126}
  517. *CustPrintableSizeY: %d{PhysPaperLength-142}
  518. }
  519. *case: USER_CSF
  520. {
  521. *CustCursorOriginX: %d{62}
  522. *CustCursorOriginY: %d{54}
  523. *CustPrintableOriginX: %d{62}
  524. *CustPrintableOriginY: %d{54}
  525. *CustPrintableSizeX: %d{PhysPaperWidth-126}
  526. *CustPrintableSizeY: %d{PhysPaperLength-142}
  527. }
  528. *case: USER_TRACTOR
  529. {
  530. *CustCursorOriginX: %d{62}
  531. *CustCursorOriginY: %d{54}
  532. *CustPrintableOriginX: %d{62}
  533. *CustPrintableOriginY: %d{54}
  534. *CustPrintableSizeX: %d{PhysPaperWidth-126}
  535. *CustPrintableSizeY: %d{PhysPaperLength-54}
  536. }
  537. }
  538. *Command: CmdSelect
  539. {
  540. *Order: DOC_SETUP.4
  541. *Cmd: %v{((PhysPaperLength * 3) / 160) }
  542. }
  543. }
  544. }
  545. *InvalidCombination: LIST(InputBin.MANUAL, PaperSize.10X11)
  546. *InvalidCombination: LIST(InputBin.MANUAL, PaperSize.12X11)
  547. *InvalidCombination: LIST(InputBin.USER_CSF, PaperSize.10X11)
  548. *InvalidCombination: LIST(InputBin.USER_CSF, PaperSize.12X11)
  549. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.A4)
  550. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.A4_ROTATED)
  551. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.A3)
  552. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.A5)
  553. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.A5_ROTATED)
  554. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.A6)
  555. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.A6_ROTATED)
  556. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.B4)
  557. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.B5)
  558. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.B5_JIS_ROTATED)
  559. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.LETTER)
  560. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.LEGAL)
  561. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.JAPANESE_POSTCARD)
  562. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.JAPANESE_POSTCARD_ROTATED)
  563. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.DBL_JAPANESE_POSTCARD)
  564. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.DBL_JAPANESE_POSTCARD_ROTATED)
  565. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.JENV_CHOU4_ROTATED)
  566. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.JENV_CHOU3_ROTATED)
  567. *InvalidCombination: LIST(InputBin.USER_TRACTOR, PaperSize.JENV_KAKU3_ROTATED)
  568. *Feature: PrintQuality
  569. {
  570. *rcNameID: =TEXT_QUALITY_DISPLAY
  571. *DefaultOption: USER_HISPD_UNIDIR
  572. *Option: USER_HISPD_UNIDIR
  573. {
  574. *rcNameID: 266
  575. *Command: CmdSelect
  576. {
  577. *Order: DOC_SETUP.2
  578. *Cmd: "<1B>N<1B>d0<1B>>"
  579. }
  580. }
  581. *Option: USER_HISPD_BIDIR
  582. {
  583. *rcNameID: 267
  584. *Command: CmdSelect
  585. {
  586. *Order: DOC_SETUP.2
  587. *Cmd: "<1B>N<1B>d0<1B>]"
  588. }
  589. }
  590. *Option: USER_HIQTY_UNIDIR
  591. {
  592. *rcNameID: 268
  593. *Command: CmdSelect
  594. {
  595. *Order: DOC_SETUP.2
  596. *Cmd: "<1B>H<1B>d1<1B>>"
  597. }
  598. }
  599. *Option: USER_HIQTY_BIDIR
  600. {
  601. *rcNameID: 269
  602. *Command: CmdSelect
  603. {
  604. *Order: DOC_SETUP.2
  605. *Cmd: "<1B>H<1B>d1<1B>]"
  606. }
  607. }
  608. }
  609. *Feature: Halftone
  610. {
  611. *rcNameID: =HALFTONING_DISPLAY
  612. *DefaultOption: HT_PATSIZE_AUTO
  613. *Option: HT_PATSIZE_AUTO
  614. {
  615. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  616. }
  617. *Option: HT_PATSIZE_SUPERCELL_M
  618. {
  619. *rcNameID: =HT_SUPERCELL_DISPLAY
  620. }
  621. *Option: HT_PATSIZE_6x6_M
  622. {
  623. *rcNameID: =HT_DITHER6X6_DISPLAY
  624. }
  625. *Option: HT_PATSIZE_8x8_M
  626. {
  627. *rcNameID: =HT_DITHER8X8_DISPLAY
  628. }
  629. }
  630. *switch: Orientation
  631. {
  632. *case: PORTRAIT
  633. {
  634. *DeviceFonts: LIST(3,4,5,6)
  635. }
  636. *case: LANDSCAPE_CC270
  637. {
  638. *DeviceFonts: LIST()
  639. }
  640. }
  641. *FontCartridge: USER_GOTHIC_FC
  642. {
  643. *rcCartridgeNameID: 270
  644. *PortraitFonts: LIST(1)
  645. *LandscapeFonts: LIST()
  646. }
  647. *FontCartridge: USER_OLDJIS_FC
  648. {
  649. *rcCartridgeNameID: 271
  650. *PortraitFonts: LIST(2)
  651. *LandscapeFonts: LIST()
  652. }
  653. *EjectPageWithFF?: TRUE
  654. *switch: InputBin
  655. {
  656. *case: USER_CSF
  657. {
  658. *EjectPageWithFF?: FALSE
  659. }
  660. }