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.
 
 
 
 
 
 

454 lines
14 KiB

*%
*% Copyright (c) 1997 - 1999 Microsoft Corporation
*% All Rights Reserved.
*%
*GPDSpecVersion: "1.0"
*GPDFileVersion: "1.00"
*GPDFileName: "NCJ11RCJ.GPD"
*Include: "STDNAMES.GPD"
*CodePage: 1252
*ModelName: "NEC PC-PR101/J110R (Color)"
*MasterUnits: PAIR(300, 300)
*ResourceDLL: "hpdjjres.dll"
*PrinterType: SERIAL
*OutputOrderReversed?: TRUE
*Feature: Orientation
{
*rcNameID: =ORIENTATION_DISPLAY
*DefaultOption: PORTRAIT
*Option: PORTRAIT
{
*rcNameID: =PORTRAIT_DISPLAY
}
*Option: LANDSCAPE_CC270
{
*rcNameID: =LANDSCAPE_DISPLAY
}
}
*Feature: InputBin
{
*rcNameID: =PAPER_SOURCE_DISPLAY
*DefaultOption: AUTO
*Option: AUTO
{
*rcNameID: =AUTO_DISPLAY
}
*Option: MANUAL
{
*rcNameID: =MANUAL_FEED_DISPLAY
*% Warning: this input bin has PSRC_MAN_PROMPT set in GPC, which is ignored by GPD.
}
}
*Feature: Resolution
{
*rcNameID: =RESOLUTION_DISPLAY
*DefaultOption: Option1
*Option: Option1
{
*Name: "300 x 300 dots per inch"
*DPI: PAIR(300, 300)
*TextDPI: PAIR(300, 300)
*MinStripBlankPixels: 8
EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
*SpotDiameter: 100
*Command: CmdBeginRaster { *Cmd : "<1B>_A<01>" }
*Command: CmdEndRaster { *Cmd : "<1B>_C" }
*Command: CmdSendBlockData { *Cmd : "<1B>_W" %l{NumOfDataBytes} }
*Command: CmdSelect
{
*Order: PAGE_SETUP.7
*Cmd: "<1B>_R,<011B>_P<040D>"
}
}
*Option: Option2
{
*Name: "150 x 150 dots per inch"
*DPI: PAIR(150, 150)
*TextDPI: PAIR(300, 300)
*MinStripBlankPixels: 8
EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
*SpotDiameter: 100
*Command: CmdBeginRaster { *Cmd : "<1B>_A<01>" }
*Command: CmdEndRaster { *Cmd : "<1B>_C" }
*Command: CmdSendBlockData { *Cmd : "<1B>_W" %l{NumOfDataBytes} }
*Command: CmdSelect
{
*Order: PAGE_SETUP.7
*Cmd: "<1B>_R<96001B>_P<040D>"
}
}
*Option: Option3
{
*Name: "75 x 75 dots per inch"
*DPI: PAIR(75, 75)
*TextDPI: PAIR(300, 300)
*MinStripBlankPixels: 8
EXTERN_GLOBAL: *StripBlanks: LIST(TRAILING)
*SpotDiameter: 100
*Command: CmdBeginRaster { *Cmd : "<1B>_A<01>" }
*Command: CmdEndRaster { *Cmd : "<1B>_C" }
*Command: CmdSendBlockData { *Cmd : "<1B>_W" %l{NumOfDataBytes} }
*Command: CmdSelect
{
*Order: PAGE_SETUP.7
*Cmd: "<1B>_RK<001B>_P<040D>"
}
}
}
*Feature: PaperSize
{
*rcNameID: =PAPER_SIZE_DISPLAY
*DefaultOption: A4
*Option: A4
{
*rcNameID: =A4_DISPLAY
*PrintableArea: PAIR(2400, 3220)
*PrintableOrigin: PAIR(38, 113)
*switch: Resolution
{
*case: Option2
{
*% Warning: the following printable length is adjusted (3220->3218) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(2400, 3218)
*% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(38, 114)
}
*case: Option3
{
*% Warning: the following printable width is adjusted (2400->2396) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (3220->3216) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(2396, 3216)
*% Warning: the following printable origin X is adjusted (38->40) so it is divisible by the resolution X scale.
*% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(40, 116)
}
}
*Command: CmdSelect
{
*Order: PAGE_SETUP.3
*Cmd: "<1B>_l<1A1B>_N<00>"
}
}
*Option: B5
{
*rcNameID: =B5_DISPLAY
*PrintableArea: PAIR(2071, 2749)
*PrintableOrigin: PAIR(38, 113)
*switch: Resolution
{
*case: Option2
{
*% Warning: the following printable width is adjusted (2071->2070) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (2749->2748) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(2070, 2748)
*% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(38, 114)
}
*case: Option3
{
*% Warning: the following printable width is adjusted (2071->2068) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (2749->2744) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(2068, 2744)
*% Warning: the following printable origin X is adjusted (38->40) so it is divisible by the resolution X scale.
*% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(40, 116)
}
}
*Command: CmdSelect
{
*Order: PAGE_SETUP.3
*Cmd: "<1B>_l-<1B>_N<00>"
}
}
*Option: LETTER
{
*rcNameID: =LETTER_DISPLAY
*PrintableArea: PAIR(2391, 3013)
*PrintableOrigin: PAIR(76, 113)
*switch: Resolution
{
*case: Option2
{
*% Warning: the following printable width is adjusted (2391->2390) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (3013->3012) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(2390, 3012)
*% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(76, 114)
}
*case: Option3
{
*% Warning: the following printable width is adjusted (2391->2388) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (3013->3008) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(2388, 3008)
*% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(76, 116)
}
}
*Command: CmdSelect
{
*Order: PAGE_SETUP.3
*Cmd: "<1B>_l<021B>_N<00>"
}
}
*Option: LEGAL
{
*rcNameID: =LEGAL_DISPLAY
*PrintableArea: PAIR(2388, 3913)
*PrintableOrigin: PAIR(76, 113)
*switch: Resolution
{
*case: Option2
{
*% Warning: the following printable length is adjusted (3913->3912) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(2388, 3912)
*% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(76, 114)
}
*case: Option3
{
*% Warning: the following printable length is adjusted (3913->3908) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(2388, 3908)
*% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(76, 116)
}
}
*Command: CmdSelect
{
*Order: PAGE_SETUP.3
*Cmd: "<1B>_l<031B>_N<00>"
}
}
*Option: JAPANESE_POSTCARD
{
*rcNameID: =JAPANESE_POSTCARD_DISPLAY
*PrintableArea: PAIR(1084, 1462)
*PrintableOrigin: PAIR(38, 113)
*switch: Resolution
{
*case: Option2
{
*% Warning: the following printable length is adjusted (1462->1460) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(1084, 1460)
*% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(38, 114)
}
*case: Option3
{
*% Warning: the following printable width is adjusted (1084->1080) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (1462->1456) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(1080, 1456)
*% Warning: the following printable origin X is adjusted (38->40) so it is divisible by the resolution X scale.
*% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(40, 116)
}
}
*Command: CmdSelect
{
*Order: PAGE_SETUP.3
*Cmd: "<1B>_l_<1B>_N<00>"
}
}
*Option: JAPANESE_POSTCARD_ROTATED
{
*rcNameID: =JAPANESE_POSTCARD_ROTATED_DISPLAY
*PrintableArea: PAIR(1626, 895)
*PrintableOrigin: PAIR(38, 113)
*switch: Resolution
{
*case: Option2
{
*% Warning: the following printable length is adjusted (895->894) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(1626, 894)
*% Warning: the following printable origin Y is adjusted (113->114) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(38, 114)
}
*case: Option3
{
*% Warning: the following printable width is adjusted (1626->1624) so it is divisible by the resolution X scale.
*% Warning: the following printable length is adjusted (895->892) so it is divisible by the resolution Y scale.
*PrintableArea: PAIR(1624, 892)
*% Warning: the following printable origin X is adjusted (38->40) so it is divisible by the resolution X scale.
*% Warning: the following printable origin Y is adjusted (113->116) so it is divisible by the resolution Y scale.
*PrintableOrigin: PAIR(40, 116)
}
}
*Command: CmdSelect
{
*Order: PAGE_SETUP.3
*Cmd: "<1B>_l`<1B>_N<00>"
}
}
}
*Feature: MediaType
{
*rcNameID: =MEDIA_TYPE_DISPLAY
*DefaultOption: Option2
*Option: Option1
{
*rcNameID: 260
*Command: CmdSelect
{
*Order: PAGE_SETUP.8
*Cmd: "<1B>_D<021B>_E<021B>_Q<02>"
}
}
*Option: Option2
{
*rcNameID: 261
*Command: CmdSelect
{
*Order: PAGE_SETUP.8
*Cmd: "<1B>_D<021B>_E<011B>_Q<02>"
}
}
*Option: Option3
{
*rcNameID: 262
*Command: CmdSelect
{
*Order: PAGE_SETUP.8
*Cmd: "<1B>_D<011B>_E<001B>_Q<01>"
}
}
*Option: Option4
{
*rcNameID: 301
*Command: CmdSelect
{
*Order: PAGE_SETUP.8
*Cmd: "<1B>_D<011B>_E<021B>_Q<02>"
}
}
*Option: Option5
{
*rcNameID: 263
*Command: CmdSelect
{
*Order: PAGE_SETUP.8
*Cmd: "<1B>_D<011B>_E<021B>_Q<02>"
}
}
*Option: Option6
{
*rcNameID: 264
*Command: CmdSelect
{
*Order: PAGE_SETUP.8
*Cmd: "<1B>_D<011B>_E<011B>_Q<02>"
}
}
}
*Feature: ColorMode
{
*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
*DefaultOption: Color
*Option: Mono
{
*rcNameID: =MONO_DISPLAY
*DevNumOfPlanes: 1
*DevBPP: 1
*Color? : FALSE
}
*Option: Color
{
*rcNameID: =COLOR_DISPLAY
*DevNumOfPlanes: 3
*DevBPP: 1
*DrvBPP: 4
EXTERN_GLOBAL: *RasterSendAllData? : TRUE
*ColorPlaneOrder: LIST(CYAN, MAGENTA, YELLOW)
*Command: CmdSendCyanData { *Cmd : "<1B>_V" %l{NumOfDataBytes} }
*Command: CmdSendMagentaData { *Cmd : "<1B>_V" %l{NumOfDataBytes} }
*Command: CmdSendYellowData { *Cmd : "<1B>_W" %l{NumOfDataBytes } }
*Command: CmdSelect
{
*Order: PAGE_SETUP.9
*Cmd: "<1B>_U<FDFF>"
}
}
}
*Feature: Halftone
{
*rcNameID: =HALFTONING_DISPLAY
*DefaultOption: HT_PATSIZE_AUTO
*Option: HT_PATSIZE_AUTO
{
*rcNameID: =HT_AUTO_SELECT_DISPLAY
}
*Option: HT_PATSIZE_SUPERCELL_M
{
*rcNameID: =HT_SUPERCELL_DISPLAY
}
*Option: HT_PATSIZE_6x6_M
{
*rcNameID: =HT_DITHER6X6_DISPLAY
}
*Option: HT_PATSIZE_8x8_M
{
*rcNameID: =HT_DITHER8X8_DISPLAY
}
}
*Command: CmdStartDoc
{
*Order: DOC_SETUP.1
*Cmd: "<0C>"
}
*Command: CmdStartPage
{
*Order: PAGE_SETUP.1
*Cmd: "<1B>@<0C>"
}
*Command: CmdEndJob
{
*Order: JOB_FINISH.1
*Cmd: "<1B>@"
}
*Command: CmdEndPage
{
*Order: PAGE_FINISH.1
*Cmd: "<0D>"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*TextCaps: LIST(TC_OP_CHARACTER,TC_OP_STROKE)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*XMoveThreshold: 0
*YMoveThreshold: *
*XMoveUnit: 300
*AbsXMovesRightOnly?: TRUE
*% YMoveUnit: 300
*Command: CmdXMoveAbsolute { *Cmd : "<1B>_$" %l{DestX} }
*Command: CmdXMoveRelRight { *Cmd : "<1B>_\" %l{DestXRel} }
*% Error: the above *YMoveUnit value is wrong. It should be dependent on the resolution. Correct it manually.
*switch: Resolution
{
*case: Option1
{
*YMoveUnit: 300
*Command: CmdYMoveRelDown { *Cmd : "<1B>_Y" %l{DestYRel} }
}
*case: Option2
{
*YMoveUnit: 150
*Command: CmdYMoveRelDown { *Cmd : "<1B>_Y" %l{DestYRel / 2} }
}
*case: Option3
{
*YMoveUnit: 75
*Command: CmdYMoveRelDown { *Cmd : "<1B>_Y" %l{DestYRel / 4} }
}
}
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
*EjectPageWithFF?: TRUE
*Command: CmdEnableTIFF4 { *Cmd : "<1B>_M<02>" }
*Command: CmdDisableCompression { *Cmd : "<1B>_M<00>" }
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*LookAheadRegion: 120
*DefaultCTT: 0
*CharPosition: BASELINE