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.

277 lines
7.9 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *Include: "STDNAMES.GPD"
  7. *GPDFileVersion: "1.0"
  8. *GPDFileName: "STJJ10J.GPD"
  9. *ModelName: "Star JJ-100"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "STNMJRES.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: Option1
  30. *Option: Option1
  31. {
  32. *rcNameID: 258
  33. *OptionID: 258
  34. }
  35. *Option: Option2
  36. {
  37. *rcNameID: 260
  38. *OptionID: 260
  39. }
  40. }
  41. *Feature: Resolution
  42. {
  43. *rcNameID: =RESOLUTION_DISPLAY
  44. *DefaultOption: Option1
  45. *Option: Option1
  46. {
  47. *Name: "360 x 360 " =DOTS_PER_INCH
  48. *DPI: PAIR(360, 360)
  49. *TextDPI: PAIR(360, 360)
  50. *PinsPerLogPass: 48
  51. *PinsPerPhysPass: 48
  52. *MinStripBlankPixels: 240
  53. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  54. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  55. *SpotDiameter: 120
  56. *Command: CmdSendBlockData { *Cmd : "<1C>bP,48," %4d{NumOfDataBytes / 6}"." }
  57. }
  58. *Option: Option2
  59. {
  60. *Name: "180 x 180 " =DOTS_PER_INCH
  61. *DPI: PAIR(180, 180)
  62. *TextDPI: PAIR(180, 180)
  63. *PinsPerLogPass: 24
  64. *PinsPerPhysPass: 24
  65. *MinStripBlankPixels: 360
  66. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  67. *% Error: this resolution has RES_BO_OEMGRXFILTER set in GPC. You must port over the custom code.
  68. *SpotDiameter: 140
  69. *Command: CmdSendBlockData { *Cmd : "<1B>J" %4d{NumOfDataBytes / 3} }
  70. }
  71. }
  72. *Feature: PaperSize
  73. {
  74. *rcNameID: =PAPER_SIZE_DISPLAY
  75. *DefaultOption: A4
  76. *Option: A4
  77. {
  78. *rcNameID: =A4_DISPLAY
  79. *PrintableArea: PAIR(2877, 3943)
  80. *PrintableOrigin: PAIR(50, 85)
  81. *switch: Resolution
  82. {
  83. *case: Option2
  84. {
  85. *% Warning: the following printable width is adjusted (2877->2876) so it is divisible by the resolution X scale.
  86. *% Warning: the following printable length is adjusted (3943->3942) so it is divisible by the resolution Y scale.
  87. *PrintableArea: PAIR(2876, 3942)
  88. *% Warning: the following printable origin Y is adjusted (85->86) so it is divisible by the resolution Y scale.
  89. *PrintableOrigin: PAIR(50, 86)
  90. }
  91. }
  92. *Command: CmdSelect
  93. {
  94. *Order: DOC_SETUP.3
  95. *Cmd: "<1B>v70."
  96. }
  97. }
  98. *Option: B5
  99. {
  100. *rcNameID: =B5_DISPLAY
  101. *PrintableArea: PAIR(2481, 3378)
  102. *PrintableOrigin: PAIR(50, 85)
  103. *switch: Resolution
  104. {
  105. *case: Option2
  106. {
  107. *% Warning: the following printable width is adjusted (2481->2480) so it is divisible by the resolution X scale.
  108. *% Warning: the following printable length is adjusted (3378->3376) so it is divisible by the resolution Y scale.
  109. *PrintableArea: PAIR(2480, 3376)
  110. *% Warning: the following printable origin Y is adjusted (85->86) so it is divisible by the resolution Y scale.
  111. *PrintableOrigin: PAIR(50, 86)
  112. }
  113. }
  114. *Command: CmdSelect
  115. {
  116. *Order: DOC_SETUP.3
  117. *Cmd: "<1B>v60."
  118. }
  119. }
  120. *Option: JAPANESE_POSTCARD
  121. {
  122. *rcNameID: =JAPANESE_POSTCARD_DISPLAY
  123. *PrintableArea: PAIR(1318, 1834)
  124. *PrintableOrigin: PAIR(50, 85)
  125. *switch: Resolution
  126. {
  127. *case: Option2
  128. {
  129. *% Warning: the following printable length is adjusted (1834->1832) so it is divisible by the resolution Y scale.
  130. *PrintableArea: PAIR(1318, 1832)
  131. *% Warning: the following printable origin Y is adjusted (85->86) so it is divisible by the resolution Y scale.
  132. *PrintableOrigin: PAIR(50, 86)
  133. }
  134. }
  135. *Command: CmdSelect
  136. {
  137. *Order: DOC_SETUP.3
  138. *Cmd: "<1B>v35."
  139. }
  140. }
  141. *Option: JAPANESE_POSTCARD_ROTATED
  142. {
  143. *rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
  144. *PrintableArea: PAIR(1999, 1153)
  145. *PrintableOrigin: PAIR(50, 85)
  146. *switch: Resolution
  147. {
  148. *case: Option2
  149. {
  150. *% Warning: the following printable width is adjusted (1999->1998) so it is divisible by the resolution X scale.
  151. *% Warning: the following printable length is adjusted (1153->1152) so it is divisible by the resolution Y scale.
  152. *PrintableArea: PAIR(1998, 1152)
  153. *% Warning: the following printable origin Y is adjusted (85->86) so it is divisible by the resolution Y scale.
  154. *PrintableOrigin: PAIR(50, 86)
  155. }
  156. }
  157. *Command: CmdSelect
  158. {
  159. *Order: DOC_SETUP.3
  160. *Cmd: "<1B>v23."
  161. }
  162. }
  163. *Option: CUSTOMSIZE
  164. {
  165. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  166. *MinSize: PAIR(1417, 1417)
  167. *MaxSize: PAIR(3061, 5952)
  168. *MaxPrintableWidth: 3061
  169. *MinLeftMargin: 0
  170. *CenterPrintable?: FALSE
  171. *TopMargin: 85
  172. *BottomMargin: 180
  173. *Command: CmdSelect
  174. {
  175. *Order: DOC_SETUP.3
  176. *Cmd: "<1B>v" %d{(PhysPaperLength / 60) }"."
  177. }
  178. }
  179. }
  180. *Feature: PrintQuality
  181. {
  182. *rcNameID: =TEXT_QUALITY_DISPLAY
  183. *DefaultOption: LETTER_QUALITY
  184. *Option: LETTER_QUALITY
  185. {
  186. *rcNameID: =LETTER_QUALITY_DISPLAY
  187. }
  188. *Option: DRAFT_QUALITY
  189. {
  190. *rcNameID: =DRAFT_QUALITY_DISPLAY
  191. }
  192. }
  193. *Feature: Halftone
  194. {
  195. *rcNameID: =HALFTONING_DISPLAY
  196. *DefaultOption: HT_PATSIZE_AUTO
  197. *Option: HT_PATSIZE_AUTO
  198. {
  199. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  200. }
  201. *Option: HT_PATSIZE_SUPERCELL_M
  202. {
  203. *rcNameID: =HT_SUPERCELL_DISPLAY
  204. }
  205. *Option: HT_PATSIZE_6x6_M
  206. {
  207. *rcNameID: =HT_DITHER6X6_DISPLAY
  208. }
  209. *Option: HT_PATSIZE_8x8_M
  210. {
  211. *rcNameID: =HT_DITHER8X8_DISPLAY
  212. }
  213. }
  214. *Command: CmdStartDoc
  215. {
  216. *Order: DOC_SETUP.1
  217. *Cmd: "<1A>C<1B>H<1A>G<1B>%"<1B>Y<1B>M<1B>]<1B>A<1B>f"
  218. }
  219. *Command: CmdStartPage
  220. {
  221. *Order: PAGE_SETUP.1
  222. *Cmd: "<0D1B>a"
  223. }
  224. *Command: CmdEndPage
  225. {
  226. *Order: PAGE_FINISH.1
  227. *Cmd: "<1B>b"
  228. }
  229. *RotateCoordinate?: FALSE
  230. *RotateRaster?: FALSE
  231. *RotateFont?: FALSE
  232. *switch: Orientation
  233. {
  234. *case: PORTRAIT
  235. {
  236. *TextCaps: LIST(TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  237. }
  238. *case: LANDSCAPE_CC270
  239. {
  240. *TextCaps: LIST(TC_RA_ABLE)
  241. }
  242. }
  243. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  244. *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
  245. *MaxLineSpacing: 297
  246. *XMoveThreshold: 0
  247. *XMoveUnit: 180
  248. *AbsXMovesRightOnly?: TRUE
  249. *Command: CmdXMoveAbsolute { *Cmd : "<1B>F" %4d[0,2448]{max_repeat((DestX / 2) )} }
  250. *LineSpacingMoveUnit: 120
  251. *Command: CmdSetLineSpacing { *Cmd : "<1B>T" %2d[0,99]{(LinefeedSpacing / 3) } }
  252. *Command: CmdCR { *Cmd : "<0D>" }
  253. *Command: CmdLF { *Cmd : "<0A>" }
  254. *Command: CmdFF { *Cmd : "<0C>" }
  255. *Command: CmdBackSpace { *Cmd : "<08>" }
  256. *EjectPageWithFF?: TRUE
  257. *switch: InputBin
  258. {
  259. *case: Option2
  260. {
  261. *EjectPageWithFF?: FALSE
  262. }
  263. }
  264. *OutputDataFormat: V_BYTE
  265. *OptimizeLeftBound?: FALSE
  266. *CursorXAfterSendBlockData: AT_GRXDATA_END
  267. *CursorYAfterSendBlockData: NO_MOVE
  268. *DefaultFont: 1
  269. *DefaultCTT: -1
  270. *DeviceFonts: LIST(1,2,3,4,6,7)
  271. *Command: CmdBoldOn { *Cmd : "<1B>!" }
  272. *Command: CmdBoldOff { *Cmd : "<1B>%"" }
  273. *Command: CmdItalicOn { *Cmd : "<1B>i1" }
  274. *Command: CmdItalicOff { *Cmd : "<1B>i0" }
  275. *Command: CmdUnderlineOn { *Cmd : "<1B>X" }
  276. *Command: CmdUnderlineOff { *Cmd : "<1B>Y" }
  277. *MirrorRasterByte?: TRUE