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.

195 lines
11 KiB

  1. ;=============================================================================
  2. ; Copyright (c) 1990-2003 Microsoft Corporation
  3. ;=============================================================================
  4. ;
  5. ; Plotter GPC data file format
  6. ;
  7. ; 1. All key value(s) for the keyword must be encloses by a {} brace pair.
  8. ; 2. Any Strings must be enclosed by quotes ("").
  9. ; 3. a ';' denotes a comment to the end of the current line.
  10. ; 4. Types
  11. ; a. FLAG - 1 or 0
  12. ; b. WORD - 16 bit number
  13. ; c. DWORD - 32 bit number
  14. ; d. STRING - ANSI character string, maximum size depends on keyword
  15. ; e. FORMSRC - 1. 31 byte string for the name of the form (paper source)
  16. ; 2. 2 DWORDs: size width/height (SIZEL) 1/1000mm
  17. ; ** if height is <= 25400 (1 inch) or it greater
  18. ; then DeviceSize CY then it is assumed that
  19. ; the form is variable length and the height
  20. ; will be reset to zero (0)
  21. ;
  22. ; 3. 4 DWORDs: Left/Top/Right/Bottom margins in 1/1000mm
  23. ;
  24. ; f. CONSTANT - Pick from a set of predefined strings in the header file
  25. ; g. COLORINFO - Windows 2000, Windows XP and Windows Server 2003 DDI COLORINFO data structure (30 DWORDs)
  26. ; h. PENDATA - 1. One word that specifies the location in the carousel
  27. ; of this pen (1=slot 1, 2=slot 2).
  28. ; 2. constant which specifies the predefined pen color
  29. ; PC_IDX_xxxx can be one of:
  30. ;
  31. ; Index R G B
  32. ; ------------------------------
  33. ; PC_IDX_WHITE 255 255 255
  34. ; PC_IDX_BLACK 0 0 0
  35. ; PC_IDX_RED 255 0 0
  36. ; PC_IDX_GREEN 0 255 0
  37. ; PC_IDX_YELLOW 255 255 0
  38. ; PC_IDX_BLUE 0 0 255
  39. ; PC_IDX_MAGENTA 255 0 255
  40. ; PC_IDX_CYAN 0 255 255
  41. ; PC_IDX_ORANGE 255 128 0
  42. ; PC_IDX_BROWN 255 192 0
  43. ; PC_IDX_VIOLET 128 0 255
  44. ;
  45. ; i. ROPLEVEL - One of following levels:
  46. ;
  47. ; ROP_LEVEL_0 - No Rop support
  48. ; ROP_LEVEL_1 - ROP1 support (SRC)
  49. ; ROP_LEVEL_2 - ROP2 support (SRC/DEST)
  50. ; ROP_LEVEL_3 - ROP3 support (SRC/DEST/PAT)
  51. ;
  52. ; *** if DeviceSize' height is <= 25400 (1 inch) then it is assumed that the
  53. ; device can handle variable length paper and the height will be reset to
  54. ; zero (0)
  55. ;
  56. ; *** RasterDPI must be defined for both raster and pen plotters. For raster
  57. ; plotters this should be the raster resolution of the device. For pen
  58. ; plotters it should be the ideal resolution for the device that GDI
  59. ; will report back to the calling windows application.
  60. ;
  61. ; Keyword Type Count Range/Size
  62. ; -------------------------------------------------------------------------
  63. ; DeviceName STRING 31 Device name as it appears in UI's
  64. ; DeviceSize DWORD 2 Device cx/cy in 1/1000mm
  65. ; DeviceMargin DWORD 4 Device L/T/R/B margin in 1/1000mm
  66. ; RasterCap Flag 1 0/1 (1=Raster Device, 2=Pen Device)
  67. ; ColorCap Flag 1 0/1 (1=Color Device, 2=Mono)
  68. ; BezierCap Flag 1 0/1 (1=Device supports HPGL2
  69. ; Beziers extension)
  70. ; RasterByteAlign Flag 1 0/1 (1=Device must receive all
  71. ; raster data on byte alligned
  72. ; x coordinates)
  73. ; PushPopPal Flag 1 0/1 (1=Driver must push/pop
  74. ; pallete when switching
  75. ; between RTL / HPGL2)
  76. ; TransparentCap Flag 1 0/1 (1=Device supports transp. cmd)
  77. ; WindingFillCap Flag 1 0/1 (1=Device can do winding fills)
  78. ; RollFeedCap Flag 1 0/1 (1=Device has roll paper src)
  79. ; PaperTrayCap Flag 1 0/1 has a main paper tray?
  80. ; NoBitmapFont Flag 1 0/1 Do not do bitmap font
  81. ; RTLMonoEncode5 Flag 1 0/1 RTL Mono Compress Mode 5?
  82. ; RTLNoDPIxy Flag 1 0/1 NO RTL DPI X,Y Move command
  83. ; RTLMonoNoCID Flag 1 0/1 RTL Mono No CID command
  84. ; RTLMonoFixPal Flag 1 0/1 RTL Mono PAL ONLY 0=W, 1=K
  85. ; PlotDPI DWORD 2 Plotter UNIT X/Y Dots per Inch
  86. ; RasterDPI WORD 2 Raster (RTL) X/Y Dots per Inch
  87. ; ROPLevel DWORD 1 0/1/2/3
  88. ; MaxScale WORD 1 0-10000 (100 times bigger)
  89. ; MaxPens WORD 1 Device max # of pens for pen plotter
  90. ; MaxCopies WORD 1 Device max # of copies of each
  91. ; page device can render by itself.
  92. ; MaxPolygonPts WORD 1 Device max # of points when defining
  93. ; a polygon to later be stroked or
  94. ; filled.
  95. ; MaxQuality WORD 1 Device maximum quality levels
  96. ; PaperTraySize DWORD 2 Paper Tray width/height in 1/1000mm
  97. ; COLORINFO DWORD 30 COLORINFO data structure
  98. ; DevicePelsDPI DWORD 1 Dots Per Inch
  99. ; HTPatternSize CONSTANT 1 HT_PATSIZE_xx
  100. ; InitString STRING 255 Standard string sent to device for
  101. ; initialization.
  102. ; PlotPenData PENDATA 32 (Max) Pen Plotter's carousel def.
  103. ; FormInfo FORMSRC 64 Device supported forms
  104. ;
  105. ; Following are example values for the PLOTTER characterization data:
  106. ;
  107. DeviceName { "HP DesignJet 650C (C2859B)" }; Device Name
  108. DeviceSize { 914400, 15240000 } ; Device Size (36" x 50')
  109. DeviceMargin { 25400, 25400, 5000, 36000 } ; Device Margin (in 1/1000mm)
  110. RasterCap { 1 } ; Pen/Raster plotter (0/1)
  111. ColorCap { 1 } ; Color plotter (0/1)
  112. BezierCap { 1 } ; Can do bezier curves (0/1)
  113. RasterByteAlign { 0 } ; need to byte aligned (0/1)
  114. PushPopPal { 1 } ; need to push/pop palette (0/1)
  115. TransparentCap { 0 } ; Has transparent mode (0/1)
  116. WindingFillCap { 0 } ; Can do winding fills (0/1)
  117. RollFeedCap { 1 } ; Can do RollPaper feed (0/1)
  118. PaperTrayCap { 0 } ; Has paper input tray (0/1)
  119. NoBitmapFont { 0 } ; Do not do bitmap font
  120. RTLMonoEncode5 { 1 } ; RTL Mono Adapt Compression
  121. RTLNoDPIxy { 0 } ; Has RTL DPI XY move comand
  122. RTLMonoNoCID { 0 } ; Has RTL MONO CID Command
  123. RTLMonoFixPal { 0 } ; Can change RTL Palette 0/1
  124. PlotDPI { 1016, 1016 } ; Pen Plotter X/Y DPI
  125. RasterDPI { 300, 300 } ; Raster Plotter X/Y DPI
  126. ROPLevel { ROP_LEVEL_2 } ; ROP levels (0/1/2/3)
  127. MaxScale { 1600 } ; Maximum allowed Scale %
  128. MaxPens { 256 } ; Maximum allowed pens
  129. MaxCopies { 1 } ; Maximum allowed copies
  130. MaxPolygonPts { 8192 } ; Maximum Polygon points
  131. MaxQuality { 3 } ; Maximum quality levels
  132. ;
  133. ; Only needed if PaperTrayCap = 1,
  134. ;
  135. PaperTraySize { 215900, 279400 } ; Letter size paper tray
  136. ;
  137. COLORINFO { 6810, 3050, 0, ; xr, yr, Yr
  138. 2260, 6550, 0, ; xg, yg, Yg
  139. 1810, 500, 0, ; xb, yb, Yb
  140. 2000, 2450, 0, ; xc, yc, Yc
  141. 5210, 2100, 0, ; xm, ym, Ym
  142. 4750, 5100, 0, ; xy, yy, Yy
  143. 3324, 3474, 10000, ; xw, yw, Yw
  144. 10000, 10000, 10000, ; RGB gamma
  145. 1422, 952, 787, ; Dye correction datas
  146. 495, 324, 248 }
  147. DevicePelsDPI { 0 } ; effective device DPI (default)
  148. HTPatternSize { HT_PATSIZE_6x6_M } ; GDI Halftone pattern size
  149. InitString { "\033E" }
  150. ;
  151. ; Only allowed if RasterCap = 0, and must define all pens (MaxPens)
  152. ;
  153. ; PlotPenData { 1, PC_WHITE }
  154. ; PlotPenData { 2, PC_BLACK }
  155. ; PlotPenData { 3, PC_RED }
  156. ; PlotPenData { 4, PC_GREEN }
  157. ; PlotPenData { 5, PC_YELLOW }
  158. ; PlotPenData { 6, PC_BLUE }
  159. ; PlotPenData { 7, PC_MAGENTA }
  160. ; PlotPenData { 8, PC_CYAN }
  161. ; PlotPenData { 9, PC_ORANGE }
  162. ; PlotPenData { 10, PC_BROWN }
  163. ; PlotPenData { 11, PC_VIOLET }
  164. ;
  165. FormInfo { "Roll Paper 24 in", 609600, 0, 0, 0, 0, 0 }
  166. FormInfo { "Roll Paper 36 in", 914400, 0, 0, 0, 0, 0 }
  167. FormInfo { "ANSI A 8.5 x 11 in", 215900, 279400, 0, 0, 0, 0 }
  168. FormInfo { "ANSI B 11 x 17 in", 279400, 431800, 0, 0, 0, 0 }
  169. FormInfo { "ANSI C 17 x 22 in", 431800, 558800, 0, 0, 0, 0 }
  170. FormInfo { "ANSI D 22 x 34 in", 558800, 863600, 0, 0, 0, 0 }
  171. FormInfo { "ANSI E 34 x 44 in", 863600, 1117600, 0, 0, 0, 0 }
  172. FormInfo { "ISO A4 210 x 297 mm", 210000, 297000, 0, 0, 0, 0 }
  173. FormInfo { "ISO A3 297 x 420 mm", 297000, 420000, 0, 0, 0, 0 }
  174. FormInfo { "ISO A2 420 x 594 mm", 420000, 594000, 0, 0, 0, 0 }
  175. FormInfo { "ISO A1 594 x 841 mm", 594000, 841000, 0, 0, 0, 0 }
  176. FormInfo { "ISO A0 841 x 1189 mm", 841000, 1189000, 0, 0, 0, 0 }
  177. FormInfo { "ISO OS A2 480 x 625 mm", 480000, 625000, 0, 0, 0, 0 }
  178. FormInfo { "ISO OS A1 625 x 900 mm", 625000, 900000, 0, 0, 0, 0 }
  179. FormInfo { "JIS B4 257 x 364 mm", 257000, 364000, 0, 0, 0, 0 }
  180. FormInfo { "JIS B3 364 x 515 mm", 364000, 515000, 0, 0, 0, 0 }
  181. FormInfo { "JIS B2 515 x 728 mm", 515000, 728000, 0, 0, 0, 0 }
  182. FormInfo { "JIS B1 728 x 1030 mm", 728000, 1030000, 0, 0, 0, 0 }
  183. FormInfo { "Arch A 9 x 12 in", 228600, 304800, 0, 0, 0, 0 }
  184. FormInfo { "Arch B 12 x 18 in", 304800, 457200, 0, 0, 0, 0 }
  185. FormInfo { "Arch C 18 x 24 in", 457200, 609600, 0, 0, 0, 0 }
  186. FormInfo { "Arch D 24 x 36 in", 609600, 914400, 0, 0, 0, 0 }
  187. FormInfo { "Arch E 36 x 48 in", 914400, 1219200, 0, 0, 0, 0 }
  188. FormInfo { "Arch E1 30 x 42 in", 762000, 1066800, 0, 0, 0, 0 }