*%
*% Copyright (c) 2015 Das Ltd.
*%
*% All rights reserved.
*%
*% THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
*% ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
*% THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
*% PARTICULAR PURPOSE.
*%
*% File Name:
*%
*%    DC630.GPD
*%
*% Abstract:
*%
*%    DC630 Printer Driver
*%

*%-------------------------------------------------------------------------
*% Version Section
*%-------------------------------------------------------------------------
*GPDFileName: "DC630.gpd"
*GPDSpecVersion: "1.0"
*GPDFileVersion: "2.0"

*%-------------------------------------------------------------------------
*% Include Section
*%-------------------------------------------------------------------------
*%%% GPD files	 
*Include: "StdNames.gpd"

*%-------------------------------------------------------------------------
*%% Model Specific Global Entries
*%-------------------------------------------------------------------------
*ModelName:      "DASCOM DC-630"
*ResourceDLL:		"DS600RC.DLL"
*MasterUnits:    PAIR(1200, 1200)
*PrinterType:    PAGE
*MaxCopies:      250
*PrintRateUnit:	 PPM

*%-------------------------------------------------------------------------
*% Features and Options
*%-------------------------------------------------------------------------
*%******************************************************************************************
*%                                      Orientation
*%******************************************************************************************
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
      *rcNameID: =PORTRAIT_DISPLAY
			*Command: CmdSelect
			{
				*Order: DOC_SETUP.6
				*Cmd: ""
			}
		}
	    
	  *Option: LANDSCAPE_CC90
	  {
	      *rcNameID: =LANDSCAPE_DISPLAY 
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.8
					*Cmd: ""
				}
    }
}


*%******************************************************************************************
*%                                      Input Bin
*%******************************************************************************************

*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: AUTO
    *Option: AUTO
    {
			*rcNameID: =AUTO_DISPLAY
			*Command: CmdSelect
			{
				*Order: DOC_SETUP.11
				*Cmd: ""
			} 
    }
}

*%******************************************************************************************
*%                                      Resolution
*%******************************************************************************************

*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Normal
    *Option: Normal
    {
					*Name: "600 x 600" =DOTS_PER_INCH
	        *DPI: PAIR(600, 600)
	        *TextDPI: PAIR(600, 600)
	        *MinStripBlankPixels: 32
	        EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
	        *SpotDiameter: 100
					*Command: CmdBeginRaster { *Cmd : "" }
					*Command: CmdEndRaster { *Cmd : "" }
					*Command: CmdSendBlockData { *Cmd : "" }
					*Command: CmdSelect
					{
						*Order: DOC_SETUP.7
						*Cmd: ""
					}

    }
}
*%******************************************************************************************
*%                                      Paper Size
*%******************************************************************************************

*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: RETRANSF
    *ConflictPriority: 1
    
    *Option: RETRANSF
    {
        *rcNameID: 111
        *PageDimensions: PAIR(2648,4224)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(2648, 4224)
                *PrintableOrigin: PAIR(0, 0)
                *CursorOrigin: PAIR(0, 0)
								*Command: CmdSelect
								{
									*Order: DOC_SETUP.12
									*Cmd: ""
								}
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(2648, 4224)
                *PrintableOrigin: PAIR(0, 0)
                *CursorOrigin: PAIR(0, 4224)
								*Command: CmdSelect
								{
									*Order: DOC_SETUP.12
									*Cmd: ""
								}
            }
        }
    } 
    
}  


*%===================================
*%%% Color
*%===================================
*Feature: ColorMode
{
	*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
	*DefaultOption: Color
	*Option: Mono
	{
		*rcNameID: =MONO_DISPLAY
		*DevNumOfPlanes: 0
		*DevBPP: 0
		*DrvBPP: 24
		*%Color?: FALSE
		*IPCallbackID: 5
		*PaletteSize: 256
		*PaletteProgrammable? : TRUE
		*Command: CmdEnableDRC { *Cmd : "" }
		*Command: CmdDefinePaletteEntry { *Cmd : "" }
		*Command: CmdSelectPaletteEntry { *Cmd : "" }
		*Command: CmdSetSrcBmpWidth { *Cmd : "" }
		*Command: CmdSelect
		{
			*Order: PAGE_SETUP.16
			*Cmd: ""
		}
	}
	*Option: Color
	{
		*rcNameID: =24BPP_DISPLAY
		*DevNumOfPlanes: 0
		*DevBPP: 0
		*DrvBPP: 24
		*IPCallbackID: 5
		*PaletteSize: 256
		*PaletteProgrammable? : TRUE
		*Command: CmdEnableDRC { *Cmd : "" }
		*Command: CmdDefinePaletteEntry { *Cmd : "" }
		*Command: CmdSelectPaletteEntry { *Cmd : "" }
		*Command: CmdSetSrcBmpWidth { *Cmd : "" }
		*Command: CmdSelect
		{
			*Order: PAGE_SETUP.16
			*Cmd: ""
		}
	}
}
*%===================================
*%%% 
*%%% Collate
*%===================================
*Feature: Collate
{
    *Name: "Collate"
    *DefaultOption: ON
    *Option: OFF
    {
        *rcNameID: =OFF_DISPLAY
    }
    *Option: ON
    {
        *rcNameID: =ON_DISPLAY
    }
}
*%******************************************************************************************
*%                                      Duplex Type
*%******************************************************************************************
*Feature: Duplex
{
	*rcNameID: =TWO_SIDED_PRINTING_DISPLAY
	*DefaultOption: NONE
	*Option: NONE
	{
		*rcNameID: =NONE_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.9
			*Cmd: ""
		}
	}
	*Option: VERTICAL
	{
		*rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.9
			*Cmd: ""
		}
	}
	*Option: HORIZONTAL
	{
		*rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
		*Command: CmdSelect
		{
			*Order: DOC_SETUP.9
			*Cmd: ""
		}
	}
}



*%******************************************************************************************
*%                                      Doc setup commands
*%******************************************************************************************
*Command: CmdStartDoc
{
	*Order: DOC_SETUP.7
	*Cmd: ""
}
*Command: CmdStartPage
{
	*Order: PAGE_SETUP.1
	*Cmd: ""
}
*Command: CmdEndJob
{
	*Order: JOB_FINISH.1
	*Cmd: ""
}
*Command: CmdCopies
{
	*Order: DOC_SETUP.13
	*Cmd: ""
}

*%******************************************************************************************
*%                                      Cursor and Page Commands
*%******************************************************************************************
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*TextCaps: LIST(TC_CR_90,TC_UA_ABLE)
*MemoryUsage: LIST(FONT, RASTER, VECTOR)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 600
*YMoveUnit: 600
*EjectPageWithFF?: TRUE
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: TRUE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT

*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "" }
*Command: CmdFF { *Cmd : "" }

