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.

386 lines
9.8 KiB

  1. *GPDSpecVersion: "1.0"
  2. *Include: "StdNames.gpd"
  3. *GPDFileVersion: "1.0"
  4. *GPDFileName: "OKSIDM9.GPD"
  5. *MasterUnits: PAIR(720, 432)
  6. *ResourceDLL: "Oksidm9.Dll"
  7. *PrinterType: SERIAL
  8. *Feature: Orientation
  9. {
  10. *rcNameID: =ORIENTATION_DISPLAY
  11. *DefaultOption: PORTRAIT
  12. *Option: PORTRAIT
  13. {
  14. *rcNameID: =PORTRAIT_DISPLAY
  15. }
  16. *Option: LANDSCAPE_CC270
  17. {
  18. *rcNameID: =LANDSCAPE_DISPLAY
  19. }
  20. }
  21. *Feature: Resolution
  22. {
  23. *rcNameID: =RESOLUTION_DISPLAY
  24. *DefaultOption: Option1
  25. *Option: Option1
  26. {
  27. *Name: "120 x 144 " =DOTS_PER_INCH
  28. *DPI: PAIR(120, 144)
  29. *TextDPI: PAIR(120, 144)
  30. *PinsPerLogPass: 16
  31. *PinsPerPhysPass: 8
  32. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  33. *SpotDiameter: 140
  34. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  35. }
  36. *Option: Option2
  37. {
  38. *Name: "240 x 144 " =DOTS_PER_INCH
  39. *DPI: PAIR(240, 144)
  40. *TextDPI: PAIR(240, 144)
  41. *PinsPerLogPass: 16
  42. *PinsPerPhysPass: 8
  43. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  44. *SpotDiameter: 170
  45. *Command: CmdSendBlockData { *Cmd : "<1B>Z" %l{NumOfDataBytes} }
  46. }
  47. *Option: Option3
  48. {
  49. *Name: "120 x 72 " =DOTS_PER_INCH
  50. *DPI: PAIR(120, 72)
  51. *TextDPI: PAIR(120, 72)
  52. *PinsPerLogPass: 8
  53. *PinsPerPhysPass: 8
  54. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,TRAILING)
  55. *SpotDiameter: 100
  56. *Command: CmdSendBlockData { *Cmd : "<1B>L" %l{NumOfDataBytes} }
  57. }
  58. }
  59. *Feature: PaperSize
  60. {
  61. *rcNameID: =PAPER_SIZE_DISPLAY
  62. *DefaultOption: LETTER
  63. *Option: LETTER
  64. {
  65. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  66. *PrintableArea: PAIR(5980, 4392)
  67. *PrintableOrigin: PAIR(70,1000 )
  68. *switch: Resolution
  69. {
  70. *case: Option1
  71. {
  72. *PrintableArea: PAIR(5800, 4392)
  73. *PrintableOrigin: PAIR(0,0)
  74. }
  75. *case: Option2
  76. {
  77. *PrintableArea: PAIR(5800,4500 )
  78. *PrintableOrigin: PAIR(0,0)
  79. }
  80. *case: Option3
  81. {
  82. *PrintableArea: PAIR(5800, 4392)
  83. *PrintableOrigin: PAIR(0,0)
  84. }
  85. }
  86. *Command: CmdSelect
  87. {
  88. *Order: DOC_SETUP.4
  89. *Cmd: "<1B>2<1B>CB"
  90. }
  91. }
  92. *Option: LEGAL
  93. {
  94. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  95. *PrintableArea: PAIR(5620, 5688)
  96. *PrintableOrigin: PAIR(70, 180)
  97. *switch: Resolution
  98. {
  99. *case: Option1
  100. {
  101. *PrintableArea: PAIR(5616, 5688)
  102. *PrintableOrigin: PAIR(72, 180)
  103. }
  104. *case: Option2
  105. {
  106. *PrintableArea: PAIR(5616, 5688)
  107. *PrintableOrigin: PAIR(72, 180)
  108. }
  109. *case: Option3
  110. {
  111. *PrintableArea: PAIR(5616, 5688)
  112. *PrintableOrigin: PAIR(72, 180)
  113. }
  114. }
  115. *Command: CmdSelect
  116. {
  117. *Order: DOC_SETUP.4
  118. *Cmd: "<1B>2<1B>CT"
  119. }
  120. }
  121. *Option: A4
  122. {
  123. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  124. *PrintableArea: PAIR(5620, 4690)
  125. *PrintableOrigin: PAIR(70, 180)
  126. *switch: Resolution
  127. {
  128. *case: Option1
  129. {
  130. *PrintableArea: PAIR(5616, 4689)
  131. *PrintableOrigin: PAIR(72, 180)
  132. }
  133. *case: Option2
  134. {
  135. *PrintableArea: PAIR(5616, 4689)
  136. *PrintableOrigin: PAIR(72, 180)
  137. }
  138. *case: Option3
  139. {
  140. *PrintableArea: PAIR(5616, 4686)
  141. *PrintableOrigin: PAIR(72, 180)
  142. }
  143. }
  144. *Command: CmdSelect
  145. {
  146. *Order: DOC_SETUP.4
  147. *Cmd: "<1B>2<1B>CF"
  148. }
  149. }
  150. *Option: A5
  151. {
  152. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  153. *PrintableArea: PAIR(3968, 3343)
  154. *PrintableOrigin: PAIR(115, 115)
  155. *switch: Resolution
  156. {
  157. *case: Option1
  158. {
  159. *PrintableArea: PAIR(3960, 3339)
  160. *PrintableOrigin: PAIR(120, 117)
  161. }
  162. *case: Option2
  163. {
  164. *PrintableArea: PAIR(3966, 3339)
  165. *PrintableOrigin: PAIR(117, 117)
  166. }
  167. *case: Option3
  168. {
  169. *PrintableArea: PAIR(3960, 3336)
  170. *PrintableOrigin: PAIR(120, 120)
  171. }
  172. }
  173. *Command: CmdSelect
  174. {
  175. *Order: DOC_SETUP.4
  176. *Cmd: "<1B>2<1B>C2"
  177. }
  178. }
  179. *Option: B5
  180. {
  181. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  182. *PrintableArea: PAIR(4925, 4090)
  183. *PrintableOrigin: PAIR(115, 115)
  184. *switch: Resolution
  185. {
  186. *case: Option1
  187. {
  188. *PrintableArea: PAIR(4920, 4086)
  189. *PrintableOrigin: PAIR(120, 117)
  190. }
  191. *case: Option2
  192. {
  193. *PrintableArea: PAIR(4923, 4086)
  194. *PrintableOrigin: PAIR(117, 117)
  195. }
  196. *case: Option3
  197. {
  198. *PrintableArea: PAIR(4920, 4080)
  199. *PrintableOrigin: PAIR(120, 120)
  200. }
  201. }
  202. *Command: CmdSelect
  203. {
  204. *Order: DOC_SETUP.4
  205. *Cmd: "<1B>2<1B>C="
  206. }
  207. }
  208. *Option: FANFOLD_US
  209. {
  210. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  211. *PrintableArea: PAIR(9562, 4306)
  212. *PrintableOrigin: PAIR(115, 115)
  213. *switch: Resolution
  214. {
  215. *case: Option1
  216. {
  217. *PrintableArea: PAIR(9552, 4302)
  218. *PrintableOrigin: PAIR(120, 117)
  219. }
  220. *case: Option2
  221. {
  222. *PrintableArea: PAIR(9558, 4302)
  223. *PrintableOrigin: PAIR(117, 117)
  224. }
  225. *case: Option3
  226. {
  227. *PrintableArea: PAIR(9552, 4296)
  228. *PrintableOrigin: PAIR(120, 120)
  229. }
  230. }
  231. *Command: CmdSelect
  232. {
  233. *Order: DOC_SETUP.4
  234. *Cmd: "<1B>2<1B>CB"
  235. }
  236. }
  237. *Option: CUSTOMSIZE
  238. {
  239. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  240. *MinSize: PAIR(360, 216)
  241. *MaxSize: PAIR(9720, 7344)
  242. *MaxPrintableWidth: 11520
  243. *MinLeftMargin: 0
  244. *CenterPrintable?: FALSE
  245. *Command: CmdSelect
  246. {
  247. *Order: DOC_SETUP.4
  248. *Cmd: "<1B>2"
  249. }
  250. }
  251. }
  252. *Feature: PrintQuality
  253. {
  254. *rcNameID: =TEXT_QUALITY_DISPLAY
  255. *DefaultOption: NEAR_LETTER_QUALITY
  256. *Option: NEAR_LETTER_QUALITY
  257. {
  258. *rcNameID: =NEAR_LETTER_QUALITY_DISPLAY
  259. *Command: CmdSelect
  260. {
  261. *Order: DOC_SETUP.2
  262. *Cmd: "<1B>x<01>"
  263. }
  264. }
  265. *Option: Option2
  266. {
  267. *rcNameID: 267
  268. *Command: CmdSelect
  269. {
  270. *Order: DOC_SETUP.2
  271. *Cmd: "<1B>x<00>"
  272. }
  273. }
  274. *Option: Option3
  275. {
  276. *rcNameID: 268
  277. *Command: CmdSelect
  278. {
  279. *Order: DOC_SETUP.2
  280. *Cmd: "<1B>(<00>"
  281. }
  282. }
  283. *Option: Option4
  284. {
  285. *rcNameID: 269
  286. *Command: CmdSelect
  287. {
  288. *Order: DOC_SETUP.2
  289. *Cmd: "<1B>!<011B>(<00>"
  290. }
  291. }
  292. }
  293. *Feature: Halftone
  294. {
  295. *rcNameID: =HALFTONING_DISPLAY
  296. *DefaultOption: HT_PATSIZE_AUTO
  297. *Option: HT_PATSIZE_AUTO
  298. {
  299. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  300. }
  301. *Option: HT_PATSIZE_SUPERCELL_M
  302. {
  303. *rcNameID: =HT_SUPERCELL_DISPLAY
  304. }
  305. *Option: HT_PATSIZE_6x6_M
  306. {
  307. *rcNameID: =HT_DITHER6X6_DISPLAY
  308. }
  309. *Option: HT_PATSIZE_8x8_M
  310. {
  311. *rcNameID: =HT_DITHER8X8_DISPLAY
  312. }
  313. }
  314. *Command: CmdStartDoc
  315. {
  316. *Order: DOC_SETUP.1
  317. *Cmd: "<1B>{A<1B>@<0D1B>t<011B>l<011B>6<1B>R<00>"
  318. }
  319. *Command: CmdStartPage
  320. {
  321. *Order: PAGE_SETUP.1
  322. *Cmd: "<0D>"
  323. }
  324. *Command: CmdEndJob
  325. {
  326. *Order: JOB_FINISH.1
  327. *Cmd: "<0D1B>{<020D>"
  328. }
  329. *RotateCoordinate?: FALSE
  330. *RotateRaster?: FALSE
  331. *RotateFont?: FALSE
  332. *switch: Orientation
  333. {
  334. *case: PORTRAIT
  335. {
  336. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  337. }
  338. *case: LANDSCAPE_CC270
  339. {
  340. *TextCaps: LIST(TC_RA_ABLE)
  341. }
  342. }
  343. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  344. *YMoveAttributes: LIST(SEND_CR_FIRST)
  345. *MaxLineSpacing: 255
  346. *YMoveThreshold: *
  347. *YMoveUnit: 216
  348. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  349. *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
  350. *Command: CmdCR { *Cmd : "<0D>" }
  351. *Command: CmdLF { *Cmd : "<0A>" }
  352. *Command: CmdFF { *Cmd : "<0C>" }
  353. *Command: CmdBackSpace { *Cmd : "<08>" }
  354. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  355. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  356. *EjectPageWithFF?: TRUE
  357. *OutputDataFormat: V_BYTE
  358. *OptimizeLeftBound?: FALSE
  359. *CursorXAfterSendBlockData: AT_GRXDATA_END
  360. *CursorYAfterSendBlockData: NO_MOVE
  361. *DefaultFont: 5
  362. *DefaultCTT: 1
  363. *switch: Orientation
  364. {
  365. *case: PORTRAIT
  366. {
  367. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  368. + 17,18,19)
  369. }
  370. *case: LANDSCAPE_CC270
  371. {
  372. *DeviceFonts: LIST()
  373. }
  374. }
  375. *Command: CmdBoldOn { *Cmd : "<1B>E" }
  376. *Command: CmdBoldOff { *Cmd : "<1B>F" }
  377. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  378. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  379. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  380. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }