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.

241 lines
6.2 KiB

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileName: "IBP5183.GPD"
  7. *GPDFileVersion: "1.0"
  8. *Include: "StdNames.gpd"
  9. *ModelName: "IBM Portable 5183"
  10. *MasterUnits: PAIR(360, 360)
  11. *ResourceDLL: "ibmptres.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: MANUAL
  31. {
  32. *rcNameID: =MANUAL_FEED_DISPLAY
  33. *Command: CmdSelect
  34. {
  35. *Order: DOC_SETUP.7
  36. *Cmd: "<1B1900>"
  37. }
  38. }
  39. }
  40. *Feature: Resolution
  41. {
  42. *rcNameID: =RESOLUTION_DISPLAY
  43. *DefaultOption: Option1
  44. *Option: Option1
  45. {
  46. *Name: "180 x 180 " =DOTS_PER_INCH
  47. *DPI: PAIR(180, 180)
  48. *TextDPI: PAIR(180, 180)
  49. *PinsPerLogPass: 24
  50. *PinsPerPhysPass: 24
  51. *MinStripBlankPixels: 135
  52. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  53. *SpotDiameter: 140
  54. *Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
  55. }
  56. *Option: Option2
  57. {
  58. *Name: "360 x 360 " =DOTS_PER_INCH
  59. *DPI: PAIR(360, 360)
  60. *TextDPI: PAIR(360, 360)
  61. *PinsPerLogPass: 48
  62. *PinsPerPhysPass: 24
  63. *MinStripBlankPixels: 270
  64. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  65. *SpotDiameter: 283
  66. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  67. }
  68. *Option: Option3
  69. {
  70. *Name: "360 x 180 " =DOTS_PER_INCH
  71. *DPI: PAIR(360, 180)
  72. *TextDPI: PAIR(360, 180)
  73. *PinsPerLogPass: 24
  74. *PinsPerPhysPass: 24
  75. *MinStripBlankPixels: 270
  76. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  77. *SpotDiameter: 200
  78. *Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
  79. }
  80. *Option: Option4
  81. {
  82. *Name: "120 x 180 " =DOTS_PER_INCH
  83. *DPI: PAIR(120, 180)
  84. *TextDPI: PAIR(120, 180)
  85. *PinsPerLogPass: 24
  86. *PinsPerPhysPass: 24
  87. *MinStripBlankPixels: 90
  88. EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  89. *SpotDiameter: 115
  90. *Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
  91. }
  92. }
  93. *Feature: PaperSize
  94. {
  95. *rcNameID: =PAPER_SIZE_DISPLAY
  96. *DefaultOption: A4
  97. *Option: A4
  98. {
  99. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  100. *PrintableArea: PAIR(2880, 3848)
  101. *PrintableOrigin: PAIR(90, 180)
  102. *CursorOrigin: PAIR(0, 0)
  103. *Command: CmdSelect
  104. {
  105. *Order: DOC_SETUP.8
  106. *Cmd: "<1B>2<1B>CF"
  107. }
  108. }
  109. *Option: LETTER
  110. {
  111. *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  112. *PrintableArea: PAIR(2880, 3600)
  113. *PrintableOrigin: PAIR(90, 180)
  114. *CursorOrigin: PAIR(0, 300)
  115. *Command: CmdSelect
  116. {
  117. *Order: DOC_SETUP.8
  118. *Cmd: "<1B>C<000B>"
  119. }
  120. }
  121. *Option: CUSTOMSIZE
  122. {
  123. *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  124. *MinSize: PAIR(360, 360)
  125. *MaxSize: PAIR(3060, 7920)
  126. *MaxPrintableWidth: 2880
  127. *MinLeftMargin: 90
  128. *CenterPrintable?: FALSE
  129. *TopMargin: 180
  130. *BottomMargin: 180
  131. }
  132. }
  133. *Feature: PrintQuality
  134. {
  135. *rcNameID: =TEXT_QUALITY_DISPLAY
  136. *DefaultOption: LETTER_QUALITY
  137. *Option: LETTER_QUALITY
  138. {
  139. *rcNameID: =LETTER_QUALITY_DISPLAY
  140. *Command: CmdSelect
  141. {
  142. *Order: DOC_SETUP.6
  143. *Cmd: "<1B>x<01>"
  144. }
  145. }
  146. *Option: DRAFT_QUALITY
  147. {
  148. *rcNameID: =DRAFT_QUALITY_DISPLAY
  149. *Command: CmdSelect
  150. {
  151. *Order: DOC_SETUP.6
  152. *Cmd: "<1B>x<00>"
  153. }
  154. }
  155. }
  156. *Feature: Halftone
  157. {
  158. *rcNameID: =HALFTONING_DISPLAY
  159. *DefaultOption: HT_PATSIZE_AUTO
  160. *Option: HT_PATSIZE_AUTO
  161. {
  162. *rcNameID: =HT_AUTO_SELECT_DISPLAY
  163. }
  164. *Ifdef: WINNT_50
  165. *Option: HT_PATSIZE_SUPERCELL_M
  166. {
  167. *rcNameID: =HT_SUPERCELL_DISPLAY
  168. }
  169. *Endif:
  170. *Option: HT_PATSIZE_6x6_M
  171. {
  172. *rcNameID: =HT_DITHER6X6_DISPLAY
  173. }
  174. *Option: HT_PATSIZE_8x8_M
  175. {
  176. *rcNameID: =HT_DITHER8X8_DISPLAY
  177. }
  178. }
  179. *Command: CmdStartDoc
  180. {
  181. *Order: DOC_SETUP.1
  182. *Cmd: "<1B>t<011B>6<1B>R<001B>8"
  183. }
  184. *Command: CmdEndJob
  185. {
  186. *Order: JOB_FINISH.1
  187. *Cmd: "<1B>9<1B>@"
  188. }
  189. *RotateCoordinate?: FALSE
  190. *RotateRaster?: FALSE
  191. *RotateFont?: FALSE
  192. *switch: Orientation
  193. {
  194. *case: PORTRAIT
  195. {
  196. *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
  197. }
  198. *case: LANDSCAPE_CC270
  199. {
  200. *TextCaps: LIST(TC_RA_ABLE)
  201. }
  202. }
  203. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  204. *XMoveThreshold: 0
  205. *YMoveThreshold: *
  206. *XMoveUnit: 60
  207. *YMoveUnit: 180
  208. *Command: CmdXMoveAbsolute { *Cmd : "<1B>$" %l[0,816]{max_repeat((DestX / 6) )} }
  209. *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
  210. *Command: CmdYMoveRelUp { *Cmd : "<1B>j" %c[0,255]{max_repeat((DestYRel / 2) )} }
  211. *Command: CmdCR { *Cmd : "<0D>" }
  212. *Command: CmdLF { *Cmd : "<0A>" }
  213. *Command: CmdFF { *Cmd : "<0C>" }
  214. *Command: CmdBackSpace { *Cmd : "<08>" }
  215. *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
  216. *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
  217. *EjectPageWithFF?: TRUE
  218. *OutputDataFormat: V_BYTE
  219. *OptimizeLeftBound?: FALSE
  220. *CursorXAfterSendBlockData: AT_GRXDATA_END
  221. *CursorYAfterSendBlockData: NO_MOVE
  222. *DefaultFont: 5
  223. *DefaultCTT: 1
  224. *switch: Orientation
  225. {
  226. *case: PORTRAIT
  227. {
  228. *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
  229. + 17,18,19,20,21,22,23,24)
  230. }
  231. *case: LANDSCAPE_CC270
  232. {
  233. *DeviceFonts: LIST()
  234. }
  235. }
  236. *Command: CmdBoldOn { *Cmd : "<1B>G" }
  237. *Command: CmdBoldOff { *Cmd : "<1B>H" }
  238. *Command: CmdItalicOn { *Cmd : "<1B>4" }
  239. *Command: CmdItalicOff { *Cmd : "<1B>5" }
  240. *Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
  241. *Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }