*%============================================================================
*% Copyright (c) 2005 SAGEM Communication
*% All Rights Reserved.
*%
*% LFx driver
*%============================================================================

*GPDSpecVersion: "1.0"
*GPDFileName: "LFXGPN2K.gpd"
*GPDFileVersion: "1.0"
*Include: "StdNames.gpd"
*ModelName: "Laser Pro LL"
*MasterUnits: PAIR(600, 600)
*ResourceDLL: "LFXGPU2K.dll"
*MaxCopies: 99
*PrinterType: PAGE
*PrintRatePPM: 16

*% Color
*%----------------------------------------------------------------------------
*Feature: ColorMode
{
    *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
    *DefaultOption: GrayLevels
    *Option: GrayLevels
    {
        *Name: "Gray Levels"
        *DevNumOfPlanes: 1
        *DevBPP: 1
        *DrvBPP: 8
        *Color? : FALSE
        *IPCallbackID: 1
    }
}

*% Orientation
*%----------------------------------------------------------------------------
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd:"<00>"
        }
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.2
            *Cmd:"<00>"			*% Page is rotated by the driver
					*% So orientation parameter is always set to 0
        }
    }
}


*% Media Source
*%----------------------------------------------------------------------------
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: SourceAuto
    *Option: SourceAuto
    {
        *rcNameID: =AUTO_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<00>"
        }
    }
    *Option: SourceStandard
    {
        *rcNameID: 305
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<01>"
        }
        *%Constraints: PaperSize.A4
        *%Constraints: PaperSize.B5
        *Constraints: PaperSize.B6
        *%Constraints: PaperSize.A5
        *Constraints: PaperSize.JAPANESE_POSTCARD
        *%Constraints: PaperSize.LETTER
        *%Constraints: PaperSize.LEGAL
        *Constraints: PaperSize.A6
        *Constraints: PaperSize.DBL_JAPANESE_POSTCARD
        *Constraints: PaperSize.ENV_MONARCH
    }
    *Option: SourceManual
    {
        *rcNameID: =MANUAL_FEED_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.3
            *Cmd: "<03>"
        }
    }
}

*% Resolution
*%----------------------------------------------------------------------------
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "600 x 600 " =DOTS_PER_INCH
        *DPI: PAIR(600, 600)
        *TextDPI: PAIR(600, 600)
        *PinsPerLogPass: 1
        *%MinStripBlankPixels: 1
        *SpotDiameter: 100
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.4
            *Cmd: "<04><04><0000>"			*% + compression + Page Number
        }
        *Command:CmdCopies
        {
                *Order: PAGE_SETUP.9
                *Cmd : %c{NumOfCopies}"<00>"		*% + duplex OFF
        }
        *Command: CmdSendBlockData { *Cmd : "<1200>"}
        *Command: CmdEndBlockData { *Cmd : "" }
    }
}

*% Media Size
*%----------------------------------------------------------------------------
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: A4
    *Option: A4
    {
        *rcNameID: =A4_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<9A127A1A><00>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(4762,6778)
    }
    *Option: B5
    {
        *rcNameID: =B5_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<0610CC16><05>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(4102,5836)
    }
    *Option: B6
    {
        *rcNameID: 304
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<140BE20F><0D>"
        }
        *PageDimensions: PAIR(3036,4302)
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(2836,4066)
    }
    *Option: A5
    {
        *rcNameID: =A5_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<E20C7612><04>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(3298,4726)
    }
    *Option: JAPANESE_POSTCARD
    {
        *rcNameID: =JAPANESE_POSTCARD_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<7408BE0C>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(2164,3262)
    }
    *Option: LETTER
    {
        *rcNameID: =LETTER_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<2413DC18><01>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(4900,6364 )
    }
    *Option: LEGAL
    {
        *rcNameID: =LEGAL_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<2413E41F><02>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(4900,8164 )
    }
    *Option: A6
    {
        *rcNameID: =A6_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<E908BE0C><0E>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(2281,3262 )
    }
    *Option: DBL_JAPANESE_POSTCARD
    {
        *rcNameID: =DBL_JAPANESE_POSTCARD_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<B011BE0C><0F>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(4528,3262 )
    }
    *Option: ENV_MONARCH
    {
        *rcNameID: =ENV_MONARCH_DISPLAY
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.7
            *Cmd: "<5008A810><08>"
        }
        *CursorOrigin: PAIR(100,100)
        *PrintableOrigin: PAIR(100,100)
        *PrintableArea: PAIR(2128,4264 )
    }
}

*% Media Type
*%----------------------------------------------------------------------------
*Feature: MediaType
{
    *rcNameID: =MEDIA_TYPE_DISPLAY
    *DefaultOption: Standard
    *Option: Standard
    {
        *rcNameID: 285
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.8
            *Cmd: "<00>"
        }
    }
    *Option: Thick
    {
        *rcNameID: 286
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.8
            *Cmd: "<03>"
        }
    }
}

*% Eco Mode
*%----------------------------------------------------------------------------
*Feature: EconoMode
{
    *rcNameID: 282
    *FeatureType: JOB_PROPERTY
    *DefaultOption: EconoModeOff
    *Option: EconoModeOff
    {
        *rcNameID: 284
        *Command: CmdSelect
         {
             *Order: PAGE_SETUP.11
             *Cmd: "<00>"
         }
    }
    *Option: EconoModeOn
    {
        *rcNameID: 283
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.11
            *Cmd: "<01>"
        }
    }
}

*Feature: EcoModeOption
{
    *ConflictPriority: 3   *% Make priority higher than Eco Mode feature
    *rcNameID: 301
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: Installed
    *Option: Installed
    {
        *rcNameID: 302
    }
    *Option: NotInstalled
    {
        *rcNameID: 303
        *DisabledFeatures: LIST(EconoMode)
        *Constraints: LIST (EconoMode.EconoModeOn)
    }
}

*% Start/End Job/Doc/Page
*%----------------------------------------------------------------------------
*Command: CmdStartJob
{
    *Order: JOB_SETUP.1
    *CallbackID: 3
}

*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *CallbackID: 4
}

*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *CallbackID: 1
    *%Cmd: ") SAG-GDI RL;0;0;Comment Copyright Sagem Communication 2005. Version 1.0.0.0<0D><0A><1000><02000000><0000>"
}
*Command: CmdEndDoc
{
    *Order: DOC_FINISH.1
    *CallbackID: 2
    *%Cmd: "<1400><00000000>"
}
*Command: CmdStartPage
{
    *Order: PAGE_SETUP.1
    *Cmd: "<1100><0F000000>"
}
*Command: CmdEndPage
{
    *Order: PAGE_FINISH.1
    *Cmd: "<1300><00000000>"
}

*%*Command: CmdEnableOEMComp
*%{
*%    *Order: PAGE_SETUP.100
*%    *Cmd: ""
*%}

*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 600
*YMoveUnit: 600
*%Command: CmdYMoveRelDown { *Cmd : "<1B>*c" %d{DestYRel}"Y"}
*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "" }
*Command: CmdFF { *Cmd : "" }
*OutputDataFormat: H_BYTE
*DefaultCTT: 0
*SendMultipleRows?: TRUE
*RasterSendAllData?: TRUE
