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.

601 lines
16 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "STNB2410.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "Star NB24-10"
  10. *MasterUnits: PAIR(720, 720)
  11. *ResourceDLL: "str24res.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: MANUAL
  30. *Option: TRACTOR
  31. {
  32. *rcNameID: =TRACTOR_DISPLAY
  33. }
  34. *Option: Option2
  35. {
  36. *rcNameID: 264
  37. *Command: CmdSelect
  38. {
  39. *Order: DOC_SETUP.3
  40. *Cmd: "<1B1904>"
  41. }
  42. }
  43. *Option: MANUAL
  44. {
  45. *rcNameID: =MANUAL_FEED_DISPLAY
  46. *Command: CmdSelect
  47. {
  48. *Order: DOC_SETUP.3
  49. *Cmd: "<1B1900>"
  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: 90
  65. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  66. *SpotDiameter: 170
  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: 180
  77. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  78. *SpotDiameter: 170
  79. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  80. }
  81. *Option: Option3
  82. {
  83. *Name: "120 x 180 " =DOTS_PER_INCH
  84. *DPI: PAIR(120, 180)
  85. *TextDPI: PAIR(120, 180)
  86. *PinsPerLogPass: 24
  87. *PinsPerPhysPass: 24
  88. *MinStripBlankPixels: 60
  89. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  90. *SpotDiameter: 170
  91. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  92. }
  93. }
  94. *Feature: PaperSize
  95. {
  96. *rcNameID: =PAPER_SIZE_DISPLAY
  97. *DefaultOption: LETTER
  98. *Option: LETTER
  99. {
  100. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  101. *Command: CmdSelect
  102. {
  103. *Order: DOC_SETUP.4
  104. *Cmd: "<1B>2<1B>CB"
  105. }
  106. *switch: InputBin
  107. {
  108. *case: TRACTOR
  109. {
  110. *PrintableArea: PAIR(5760, 7920)
  111. *PrintableOrigin: PAIR(0, 0)
  112. }
  113. *case: Option2
  114. {
  115. *PrintableArea: PAIR(5760, 6795)
  116. *PrintableOrigin: PAIR(0, 720)
  117. *switch: Resolution
  118. {
  119. *case: Option1
  120. {
  121. *PrintableArea: PAIR(5760, 6792)
  122. }
  123. *case: Option2
  124. {
  125. *PrintableArea: PAIR(5760, 6792)
  126. }
  127. *case: Option3
  128. {
  129. *PrintableArea: PAIR(5760, 6792)
  130. }
  131. }
  132. }
  133. *case: MANUAL
  134. {
  135. *PrintableArea: PAIR(5760, 6795)
  136. *PrintableOrigin: PAIR(0, 720)
  137. *switch: Resolution
  138. {
  139. *case: Option1
  140. {
  141. *PrintableArea: PAIR(5760, 6792)
  142. }
  143. *case: Option2
  144. {
  145. *PrintableArea: PAIR(5760, 6792)
  146. }
  147. *case: Option3
  148. {
  149. *PrintableArea: PAIR(5760, 6792)
  150. }
  151. }
  152. }
  153. }
  154. }
  155. *Option: LEGAL
  156. {
  157. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  158. *Command: CmdSelect
  159. {
  160. *Order: DOC_SETUP.4
  161. *Cmd: "<1B>2<1B>CT"
  162. }
  163. *switch: InputBin
  164. {
  165. *case: TRACTOR
  166. {
  167. *PrintableArea: PAIR(5760, 10080)
  168. *PrintableOrigin: PAIR(0, 0)
  169. }
  170. *case: Option2
  171. {
  172. *PrintableArea: PAIR(5760, 8955)
  173. *PrintableOrigin: PAIR(0, 720)
  174. *switch: Resolution
  175. {
  176. *case: Option1
  177. {
  178. *PrintableArea: PAIR(5760, 8952)
  179. }
  180. *case: Option2
  181. {
  182. *PrintableArea: PAIR(5760, 8952)
  183. }
  184. *case: Option3
  185. {
  186. *PrintableArea: PAIR(5760, 8952)
  187. }
  188. }
  189. }
  190. *case: MANUAL
  191. {
  192. *PrintableArea: PAIR(5760, 8955)
  193. *PrintableOrigin: PAIR(0, 720)
  194. *switch: Resolution
  195. {
  196. *case: Option1
  197. {
  198. *PrintableArea: PAIR(5760, 8952)
  199. }
  200. *case: Option2
  201. {
  202. *PrintableArea: PAIR(5760, 8952)
  203. }
  204. *case: Option3
  205. {
  206. *PrintableArea: PAIR(5760, 8952)
  207. }
  208. }
  209. }
  210. }
  211. }
  212. *Option: A4
  213. {
  214. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  215. *Command: CmdSelect
  216. {
  217. *Order: DOC_SETUP.4
  218. *Cmd: "<1B>3<121B>Cu"
  219. }
  220. *switch: InputBin
  221. {
  222. *case: TRACTOR
  223. {
  224. *PrintableArea: PAIR(5760, 8417)
  225. *PrintableOrigin: PAIR(0, 0)
  226. *switch: Resolution
  227. {
  228. *case: Option1
  229. {
  230. *PrintableArea: PAIR(5760, 8416)
  231. }
  232. *case: Option2
  233. {
  234. *PrintableArea: PAIR(5760, 8416)
  235. }
  236. *case: Option3
  237. {
  238. *PrintableArea: PAIR(5760, 8416)
  239. }
  240. }
  241. }
  242. *case: Option2
  243. {
  244. *PrintableArea: PAIR(5760, 7292)
  245. *PrintableOrigin: PAIR(0, 720)
  246. }
  247. *case: MANUAL
  248. {
  249. *PrintableArea: PAIR(5760, 7292)
  250. *PrintableOrigin: PAIR(0, 720)
  251. }
  252. }
  253. }
  254. *Option: B5
  255. {
  256. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  257. *Command: CmdSelect
  258. {
  259. *Order: DOC_SETUP.4
  260. *Cmd: "<1B>2<1B>C="
  261. }
  262. *switch: InputBin
  263. {
  264. *case: TRACTOR
  265. {
  266. *PrintableArea: PAIR(5162, 7286)
  267. *PrintableOrigin: PAIR(0, 0)
  268. *switch: Resolution
  269. {
  270. *case: Option1
  271. {
  272. *PrintableArea: PAIR(5160, 7284)
  273. }
  274. *case: Option2
  275. {
  276. *PrintableArea: PAIR(5162, 7284)
  277. }
  278. *case: Option3
  279. {
  280. *PrintableArea: PAIR(5160, 7284)
  281. }
  282. }
  283. }
  284. *case: Option2
  285. {
  286. *PrintableArea: PAIR(5162, 6161)
  287. *PrintableOrigin: PAIR(0, 720)
  288. *switch: Resolution
  289. {
  290. *case: Option1
  291. {
  292. *PrintableArea: PAIR(5160, 6160)
  293. }
  294. *case: Option2
  295. {
  296. *PrintableArea: PAIR(5162, 6160)
  297. }
  298. *case: Option3
  299. {
  300. *PrintableArea: PAIR(5160, 6160)
  301. }
  302. }
  303. }
  304. *case: MANUAL
  305. {
  306. *PrintableArea: PAIR(5162, 6161)
  307. *PrintableOrigin: PAIR(0, 720)
  308. *switch: Resolution
  309. {
  310. *case: Option1
  311. {
  312. *PrintableArea: PAIR(5160, 6160)
  313. }
  314. *case: Option2
  315. {
  316. *PrintableArea: PAIR(5162, 6160)
  317. }
  318. *case: Option3
  319. {
  320. *PrintableArea: PAIR(5160, 6160)
  321. }
  322. }
  323. }
  324. }
  325. }
  326. *Option: EXECUTIVE
  327. {
  328. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  329. *Command: CmdSelect
  330. {
  331. *Order: DOC_SETUP.4
  332. *Cmd: "<1B>2<1B>C?"
  333. }
  334. *switch: InputBin
  335. {
  336. *case: TRACTOR
  337. {
  338. *PrintableArea: PAIR(5220, 7560)
  339. *PrintableOrigin: PAIR(0, 0)
  340. }
  341. *case: Option2
  342. {
  343. *PrintableArea: PAIR(5220, 6435)
  344. *PrintableOrigin: PAIR(0, 720)
  345. *switch: Resolution
  346. {
  347. *case: Option1
  348. {
  349. *PrintableArea: PAIR(5220, 6432)
  350. }
  351. *case: Option2
  352. {
  353. *PrintableArea: PAIR(5220, 6432)
  354. }
  355. *case: Option3
  356. {
  357. *PrintableArea: PAIR(5220, 6432)
  358. }
  359. }
  360. }
  361. *case: MANUAL
  362. {
  363. *PrintableArea: PAIR(5220, 6435)
  364. *PrintableOrigin: PAIR(0, 720)
  365. *switch: Resolution
  366. {
  367. *case: Option1
  368. {
  369. *PrintableArea: PAIR(5220, 6432)
  370. }
  371. *case: Option2
  372. {
  373. *PrintableArea: PAIR(5220, 6432)
  374. }
  375. *case: Option3
  376. {
  377. *PrintableArea: PAIR(5220, 6432)
  378. }
  379. }
  380. }
  381. }
  382. }
  383. *Option: Option6
  384. {
  385. *rcNameID: 259
  386. *PageDimensions: PAIR(6120, 8640)
  387. *Command: CmdSelect
  388. {
  389. *Order: DOC_SETUP.4
  390. *Cmd: "<1B>2<1B>CH"
  391. }
  392. *switch: InputBin
  393. {
  394. *case: TRACTOR
  395. {
  396. *PrintableArea: PAIR(5760, 8640)
  397. *PrintableOrigin: PAIR(0, 0)
  398. }
  399. *case: Option2
  400. {
  401. *PrintableArea: PAIR(5760, 7515)
  402. *PrintableOrigin: PAIR(0, 720)
  403. *switch: Resolution
  404. {
  405. *case: Option1
  406. {
  407. *PrintableArea: PAIR(5760, 7512)
  408. }
  409. *case: Option2
  410. {
  411. *PrintableArea: PAIR(5760, 7512)
  412. }
  413. *case: Option3
  414. {
  415. *PrintableArea: PAIR(5760, 7512)
  416. }
  417. }
  418. }
  419. *case: MANUAL
  420. {
  421. *PrintableArea: PAIR(5760, 7515)
  422. *PrintableOrigin: PAIR(0, 720)
  423. *switch: Resolution
  424. {
  425. *case: Option1
  426. {
  427. *PrintableArea: PAIR(5760, 7512)
  428. }
  429. *case: Option2
  430. {
  431. *PrintableArea: PAIR(5760, 7512)
  432. }
  433. *case: Option3
  434. {
  435. *PrintableArea: PAIR(5760, 7512)
  436. }
  437. }
  438. }
  439. }
  440. }
  441. *Option: CUSTOMSIZE
  442. {
  443. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  444. *MinSize: PAIR(720, 720)
  445. *MaxSize: PAIR(8424, 15840)
  446. *MaxPrintableWidth: 5760
  447. *MinLeftMargin: 0
  448. *CenterPrintable?: FALSE
  449. *switch: InputBin
  450. {
  451. *case: TRACTOR
  452. {
  453. *TopMargin: 0
  454. *BottomMargin: 0
  455. }
  456. *case: Option2
  457. {
  458. *TopMargin: 720
  459. *BottomMargin: 405
  460. }
  461. *case: MANUAL
  462. {
  463. *TopMargin: 720
  464. *BottomMargin: 405
  465. }
  466. }
  467. *Command: CmdSelect
  468. {
  469. *Order: DOC_SETUP.4
  470. *Cmd: "<1B>2"
  471. }
  472. }
  473. }
  474. *Feature: PrintQuality
  475. {
  476. *rcNameID: =TEXT_QUALITY_DISPLAY
  477. *DefaultOption: LETTER_QUALITY
  478. *Option: LETTER_QUALITY
  479. {
  480. *rcNameID: =LETTER_QUALITY_DISPLAY
  481. *Command: CmdSelect
  482. {
  483. *Order: DOC_SETUP.2
  484. *Cmd: "<1B>x1"
  485. }
  486. }
  487. *Option: DRAFT_QUALITY
  488. {
  489. *rcNameID: =DRAFT_QUALITY_DISPLAY
  490. *Command: CmdSelect
  491. {
  492. *Order: DOC_SETUP.2
  493. *Cmd: "<1B>x0"
  494. }
  495. }
  496. }
  497. *Feature: Halftone
  498. {
  499. *rcNameID: =HALFTONING_DISPLAY
  500. *DefaultOption: HT_PATSIZE_AUTO
  501. *Option: HT_PATSIZE_AUTO
  502. {
  503. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  504. }
  505. *Ifdef: WINNT_50
  506. *Option: HT_PATSIZE_SUPERCELL_M
  507. {
  508. *rcNameID: =HT_SUPERCELL_DISPLAY
  509. }
  510. *Endif:
  511. *Option: HT_PATSIZE_6x6_M
  512. {
  513. *rcNameID: =HT_DITHER6X6_DISPLAY
  514. }
  515. *Option: HT_PATSIZE_8x8_M
  516. {
  517. *rcNameID: =HT_DITHER8X8_DISPLAY
  518. }
  519. }
  520. *Command: CmdStartDoc
  521. {
  522. *Order: DOC_SETUP.1
  523. *Cmd: "<1B>@<1B19>T<011B>6"
  524. }
  525. *Command: CmdStartPage
  526. {
  527. *Order: PAGE_SETUP.1
  528. *Cmd: "<0D>"
  529. }
  530. *RotateCoordinate?: FALSE
  531. *RotateRaster?: FALSE
  532. *RotateFont?: FALSE
  533. *switch: Orientation
  534. {
  535. *case: PORTRAIT
  536. {
  537. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  538. }
  539. *case: LANDSCAPE_CC270
  540. {
  541. *TextCaps: LIST(TC_RA_ABLE)
  542. }
  543. }
  544. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  545. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  546. *MaxLineSpacing: 255
  547. *XMoveThreshold: *
  548. *YMoveThreshold: *
  549. *XMoveUnit: 180
  550. *YMoveUnit: 180
  551. *Command: CmdXMoveRelRight { *Cmd : "<1B>\" %l{(DestXRel / 4) } }
  552. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[1,255]{max_repeat((DestYRel / 4) )} }
  553. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 4) } }
  554. *Command: CmdCR { *Cmd : "<0D>" }
  555. *Command: CmdLF { *Cmd : "<0A>" }
  556. *Command: CmdFF { *Cmd : "<0C>" }
  557. *Command: CmdBackSpace { *Cmd : "<08>" }
  558. *Command: CmdUniDirectionOn { *Cmd : "<1B>U1" }
  559. *Command: CmdUniDirectionOff { *Cmd : "<1B>U0" }
  560. *EjectPageWithFF?: TRUE
  561. *switch: PaperSize
  562. {
  563. *case: CUSTOMSIZE
  564. {
  565. *EjectPageWithFF?: FALSE
  566. *switch: InputBin
  567. {
  568. *case: Option2
  569. {
  570. *EjectPageWithFF?: TRUE
  571. }
  572. *case: MANUAL
  573. {
  574. *EjectPageWithFF?: TRUE
  575. }
  576. }
  577. }
  578. }
  579. *OutputDataFormat: V_BYTE
  580. *OptimizeLeftBound?: TRUE
  581. *CursorXAfterSendBlockData: AT_GRXDATA_END
  582. *CursorYAfterSendBlockData: NO_MOVE
  583. *DefaultFont: 199
  584. *DefaultCTT: 3
  585. *switch: Orientation
  586. {
  587. *case: PORTRAIT
  588. {
  589. *DeviceFonts: LIST(199,200,201,202,203,204,205)
  590. }
  591. *case: LANDSCAPE_CC270
  592. {
  593. *DeviceFonts: LIST()
  594. }
  595. }
  596. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  597. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  598. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  599. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  600. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  601. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }