*% GPDSpecVersion:表示当前GPD说明的版本，必须，对Windows2000值为1.0
*GPDSpecVersion: "1.0"
*GPDFileVersion: "4.00"
*GPDFileName: "Common6.GPD"
*Include: "STDNAMES.GPD"
*MasterUnits: PAIR(360, 360)

*Define:SUPPORT_AUTOSTOP
*%支持页面上移调整选项
*Define:SUPPORT_AdjustUp
*%支持页面左移调整选项
*Define:SUPPORT_AdjustLeft


	
*%-------------------页面旋转-------------------------*%
*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: TRACTOR
    *Option: TRACTOR
    {
        *rcNameID: =TRACTOR_DISPLAY
    }
    *Option: MANUAL
    {
        *rcNameID: =MANUAL_FEED_DISPLAY
        *switch: Emulation
        {
             *case: OKI5320
             {
                  *Command: CmdSelect
                  {
                      *Order: DOC_SETUP.3
                      *Cmd: "<1B>F<0002>"
                  }
             }
        }
    }
}



*%-------------------打印分辨率-------------------------*%
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
		*Name: "180 x 180 " =DOTS_PER_INCH
        *switch: Emulation
		{
			*case: LQ1600KPlus
			{
				*switch: PrintQuality
				{
					*case: LETTER_QUALITY
					{
						*DPI: PAIR(180, 180)
						*TextDPI: PAIR(180, 180)
						*PinsPerLogPass: 24
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 180
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 120
						
						*Ifdef:SUPPORT_AdjustLeft
						*switch:AdjustLeft
						{
							*case:Zero
							{
								*Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_2_5
							{
								*Command: CmdSendBlockData { *Cmd : "<081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_5
							{
								*Command: CmdSendBlockData { *Cmd : "<08081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_7_5
							{
								*Command: CmdSendBlockData { *Cmd : "<0808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_10
							{
								*Command: CmdSendBlockData { *Cmd : "<080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_12_5
							{
								*Command: CmdSendBlockData { *Cmd : "<08080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_15
							{
								*Command: CmdSendBlockData { *Cmd : "<0808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_17_5
							{
								*Command: CmdSendBlockData { *Cmd : "<080808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_20
							{
								*Command: CmdSendBlockData { *Cmd : "<08080808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
						}
						*Else:
						*Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
						*Endif:
					}
					*case: DRAFT_QUALITY
					{
						*DPI: PAIR(180, 180)
						*TextDPI: PAIR(180, 180)
						*PinsPerLogPass: 24
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 180
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 120
						
						*Ifdef:SUPPORT_AdjustLeft
						*switch:AdjustLeft
						{
							*case:Zero
							{
								*Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_2_5
							{
								*Command: CmdSendBlockData { *Cmd : "<081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_5
							{
								*Command: CmdSendBlockData { *Cmd : "<08081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_7_5
							{
								*Command: CmdSendBlockData { *Cmd : "<0808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_10
							{
								*Command: CmdSendBlockData { *Cmd : "<080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_12_5
							{
								*Command: CmdSendBlockData { *Cmd : "<08080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_15
							{
								*Command: CmdSendBlockData { *Cmd : "<0808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_17_5
							{
								*Command: CmdSendBlockData { *Cmd : "<080808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_20
							{
								*Command: CmdSendBlockData { *Cmd : "<08080808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
						}
						*Else:
						*Command: CmdSendBlockData { *Cmd : "<1B>*'" %l{NumOfDataBytes / 3} }
						*Endif:
					}
					*case: SUPER_QUALITY
					{
						*DPI: PAIR(120, 180)
						*TextDPI: PAIR(120, 180)
						*PinsPerLogPass: 24
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 120
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 100
						*Command: CmdBeginRaster { *Cmd: "<1B>{<00>"}
						*Command: CmdEndRaster { *Cmd: "<1B>{<01>"}
						
						*Ifdef:SUPPORT_AdjustLeft
						*switch:AdjustLeft
						{
							*case:Zero
							{
								*Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_2_5
							{
								*Command: CmdSendBlockData { *Cmd : "<081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_5
							{
								*Command: CmdSendBlockData { *Cmd : "<08081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_7_5
							{
								*Command: CmdSendBlockData { *Cmd : "<0808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_10
							{
								*Command: CmdSendBlockData { *Cmd : "<080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_12_5
							{
								*Command: CmdSendBlockData { *Cmd : "<08080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_15
							{
								*Command: CmdSendBlockData { *Cmd : "<0808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_17_5
							{
								*Command: CmdSendBlockData { *Cmd : "<080808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
							*case:PAGE_LEFT_20
							{
								*Command: CmdSendBlockData { *Cmd : "<08080808080808081B>*'" %l{NumOfDataBytes / 3} }
							}
						}
						*Else:
						*Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
						*Endif:
					}
				}
			}
			*case: OKI5320
			{
				*DPI: PAIR(180, 180)
				*TextDPI: PAIR(180, 180)
				*PinsPerLogPass: 24
				*PinsPerPhysPass: 24
				*MinStripBlankPixels: 180
				EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
				*SpotDiameter: 120
				*switch: PrintQuality
				{
					*case: SUPER_QUALITY
					{
						*Command: CmdBeginRaster { *Cmd: "<1B>{<00>"}
						*Command: CmdEndRaster { *Cmd: "<0D1B>{<01>"}
					}
				}
				*Command: CmdSendBlockData { *Cmd : "<1B><25><25>1" %m{NumOfDataBytes / 3} }
			}
		}
    }
    
    *Option: Option2
    {
        *Name: "120 x 180 dots per inch"
        *switch: Emulation
		{
			*case: LQ1600KPlus
			{
				*switch: PrintQuality
				{
					*case: LETTER_QUALITY
					{
						*Name: "120 x 180 dots per inch"
						*DPI: PAIR(120, 180)
						*TextDPI: PAIR(120, 180)
						*PinsPerLogPass: 24
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 120
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 100
						*Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
					}
					*case: DRAFT_QUALITY
					{
						*Name: "120 x 180 dots per inch"
						*DPI: PAIR(120, 180)
						*TextDPI: PAIR(120, 180)
						*PinsPerLogPass: 24
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 120
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 100
						*Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
					}
					*case: SUPER_QUALITY
					{
						*Name: "120 x 180 dots per inch"
						*DPI: PAIR(120, 180)
						*TextDPI: PAIR(120, 180)
						*PinsPerLogPass: 24
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 120
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 100
						*Command: CmdBeginRaster { *Cmd: "<1B>{<00>"}
						*Command: CmdEndRaster { *Cmd: "<1B>{<01>"}
						*Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
					}
				}
			}
			*case: OKI5320
			{
				*DPI: PAIR(180, 180)
				*TextDPI: PAIR(180, 180)
				*PinsPerLogPass: 24
				*PinsPerPhysPass: 24
				*MinStripBlankPixels: 180
				EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
				*SpotDiameter: 120
				*switch: PrintQuality
				{
					*case: SUPER_QUALITY
					{
						*Command: CmdBeginRaster { *Cmd: "<1B>{<00>"}
						*Command: CmdEndRaster { *Cmd: "<0D1B>{<01>"}
					}
				}
				*Command: CmdSendBlockData { *Cmd : "<1B><25><25>1" %m{NumOfDataBytes / 3} }
			}
		}
    }
    
    *Option: Option3
    {
		*Name: "360 x 360 dots per inch"
        *switch: Emulation
		{
			*case: LQ1600KPlus
			{
				*switch: PrintQuality
				{
					*case: LETTER_QUALITY
					{
						*Name: "360 x 360 dots per inch"
						*DPI: PAIR(360, 360)
						*TextDPI: PAIR(360, 360)
						*PinsPerLogPass: 48
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 360
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 170
						*Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
					}
					*case: DRAFT_QUALITY
					{
						*Name: "360 x 360 dots per inch"
						*DPI: PAIR(360, 360)
						*TextDPI: PAIR(360, 360)
						*PinsPerLogPass: 48
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 360
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 170
						*Command: CmdSendBlockData { *Cmd : "<1B>*(" %l{NumOfDataBytes / 3} }
					}
					*case: SUPER_QUALITY
					{
						*Name: "120 x 180 dots per inch"
						*DPI: PAIR(120, 180)
						*TextDPI: PAIR(120, 180)
						*PinsPerLogPass: 24
						*PinsPerPhysPass: 24
						*MinStripBlankPixels: 120
						EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
						*SpotDiameter: 100
						*Command: CmdBeginRaster { *Cmd: "<1B>{<00>"}
						*Command: CmdEndRaster { *Cmd: "<1B>{<01>"}
						*Command: CmdSendBlockData { *Cmd : "<1B>*!" %l{NumOfDataBytes / 3} }
					}
				}
			}
			*case: OKI5320
			{
				*DPI: PAIR(180, 180)
				*TextDPI: PAIR(180, 180)
				*PinsPerLogPass: 24
				*PinsPerPhysPass: 24
				*MinStripBlankPixels: 180
				EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
				*SpotDiameter: 120
				*switch: PrintQuality
				{
					*case: SUPER_QUALITY
					{
						*Command: CmdBeginRaster { *Cmd: "<1B>{<00>"}
						*Command: CmdEndRaster { *Cmd: "<0D1B>{<01>"}
					}
				}
				*Command: CmdSendBlockData { *Cmd : "<1B><25><25>1" %m{NumOfDataBytes / 3} }
			}
		}
    }
}



*%-------------------页面向上调整-------------------------*%
*Ifdef:USE_UI_SETTING
*Else:

*Ifdef:SUPPORT_AdjustUp
*Feature: AdjustUp
{
	*rcNameID:302
	*DefaultOption: Zero
			
	*%-----------0mm---------*%
	*Option:Zero
	{						
		*rcNameID:500
	}	

	*%-----------1mm---------*%	
	*Option:PAGE_UP_1
	{
		*rcNameID:501
	}	

	*%-----------2mm---------*%	
	*Option:PAGE_UP_2
	{
		*rcNameID:502
	}	

	*%-----------3mm---------*%	
	*Option:PAGE_UP_3
	{
		*rcNameID:503
	}	

	*%-----------4mm---------*%	
	*Option:PAGE_UP_4
	{
		*rcNameID:504
	}	

	*%-----------5mm---------*%	
	*Option:PAGE_UP_5
	{
		*rcNameID:505
	}	

	*%-----------6mm---------*%	
	*Option:PAGE_UP_6
	{
		*rcNameID:506
	}	

	*%-----------7mm---------*%	
	*Option:PAGE_UP_7
	{
		*rcNameID:507
	}	

	*%-----------8mm---------*%	
	*Option:PAGE_UP_8
	{
		*rcNameID:508
	}	

	*%-----------9mm---------*%	
	*Option:PAGE_UP_9
	{
		*rcNameID:509
	}
	
	*%-----------10mm---------*%	
	*Option:PAGE_UP_10
	{
		*rcNameID:510
	}
	
	*%-----------11mm---------*%	
	*Option:PAGE_UP_11
	{
		*rcNameID:511
	}
	
	*%-----------12mm---------*%	
	*Option:PAGE_UP_12
	{
		*rcNameID:512
	}
	
	*%-----------13mm---------*%	
	*Option:PAGE_UP_13
	{
		*rcNameID:513
	}
	
	*%-----------14mm---------*%	
	*Option:PAGE_UP_14
	{
		*rcNameID:514
	}
	
	*%-----------15mm---------*%	
	*Option:PAGE_UP_15
	{
		*rcNameID:515
	}
	
	*%-----------16mm---------*%	
	*Option:PAGE_UP_16
	{
		*rcNameID:516
	}
	
	*%-----------17mm---------*%	
	*Option:PAGE_UP_17
	{
		*rcNameID:517
	}
	
	*%-----------18mm---------*%	
	*Option:PAGE_UP_18
	{
		*rcNameID:518
	}
	
	*%-----------19mm---------*%	
	*Option:PAGE_UP_19
	{
		*rcNameID:519
	}
	
	*%-----------20mm---------*%	
	*Option:PAGE_UP_20
	{
		*rcNameID:520
	}	

	*%-----------21mm---------*%	
	*Option:PAGE_UP_21
	{
		*rcNameID:521
	}	

	*%-----------22mm---------*%	
	*Option:PAGE_UP_22
	{
		*rcNameID:522
	}	

	*%-----------23mm---------*%	
	*Option:PAGE_UP_23
	{
		*rcNameID:523
	}	

	*%-----------24mm---------*%	
	*Option:PAGE_UP_24
	{
		*rcNameID:524
	}	

	*%-----------25mm---------*%	
	*Option:PAGE_UP_25
	{
		*rcNameID:525
	}	

	*%-----------26mm---------*%	
	*Option:PAGE_UP_26
	{
		*rcNameID:526
	}	

	*%-----------27mm---------*%	
	*Option:PAGE_UP_27
	{
		*rcNameID:527
	}	

	*%-----------28mm---------*%	
	*Option:PAGE_UP_28
	{
		*rcNameID:528
	}	

	*%-----------29mm---------*%	
	*Option:PAGE_UP_29
	{
		*rcNameID:529
	}
	
	*%-----------30mm---------*%	
	*Option:PAGE_UP_30
	{
		*rcNameID:530
	}
}
*Endif:
*Endif:



*%-------------------页面向下调整-------------------------*%
*%	*Feature: AdjustDown
*%{
*%	*rcNameID:303
*%	*DefaultOption: Zero
*%		*%-----------0mm---------*%
*%	*Option:Zero
*%	{						
*%		*rcNameID:314
*%	}	
*%					*%-----------1mm---------*%
*%	*Option:One
*%	{
*%		*rcNameID:305
*%	}
*%		*%-----------5mm---------*%	
*%		*Option:PAGE_DOWN_5
*%	{
*%		*rcNameID:309
*%	}
*%					*%-----------10mm---------*%	
*%		*Option:PAGE_DOWN_10
*%	{
*%		*rcNameID:311
*%	}
*%						*%-----------15mm---------*%	
*%		*Option:PAGE_DOWN_15
*%	{
*%		*rcNameID:315
*%	}
*%						*%-----------20mm---------*%	
*%		*Option:PAGE_DOWN_20
*%	{
*%		*rcNameID:316
*%	}
*%}



*%-------------------页面向左调整-------------------------*%
*Ifdef:USE_UI_SETTING
*Else:

*Ifdef:SUPPORT_AdjustLeft
*Feature: AdjustLeft
{
	*rcNameID:304
	*DefaultOption: Zero
			
	*%-----------0mm---------*%
	*Option:Zero
	{						
		*rcNameID:500
	}	
	
	*%-----------2.5mm---------*%	
	*Option:PAGE_LEFT_2_5
	{
		*rcNameID:541
	}	
	
	*%-----------5mm---------*%	
	*Option:PAGE_LEFT_5
	{
		*rcNameID:542
	}
	
	*%-----------7.5mm---------*%	
	*Option:PAGE_LEFT_7_5
	{
		*rcNameID:543
	}
	
	*%-----------10mm---------*%	
	*Option:PAGE_LEFT_10
	{
		*rcNameID:544
	}
	
	*%-----------12.5mm---------*%	
	*Option:PAGE_LEFT_12_5
	{
		*rcNameID:545
	}
	
	*%-----------15mm---------*%	
	*Option:PAGE_LEFT_15
	{
		*rcNameID:546
	}
	
	*%-----------17.5mm---------*%	
	*Option:PAGE_LEFT_17_5
	{
		*rcNameID:547
	}
	
	*%-----------20mm---------*%	
	*Option:PAGE_LEFT_20
	{
		*rcNameID:548
	}
}
*Endif:
*Endif:



*%-------------------即打即停-------------------------*%
*Ifdef:USE_UI_SETTING
*Else:
*Ifdef:SUPPORT_AUTOSTOP
*Feature: Stop
{
	*rcNameID:326
	*DefaultOption: NO
				*%-----------否---------*%
	*Option:NO
	{						
		*rcNameID:285
	}	
				*%-----------是---------*%
	*Option:YES
	{						
		*rcNameID:284
	}	
				*%-----------1行---------*%	
	*Option:OneLine
	{
		*rcNameID:327
	}
				*%-----------3行---------*%	
	*Option:ThreeLines
	{
		*rcNameID:328
	}
				*%-----------5行---------*%	
	*Option:FiveLines
	{
		*rcNameID:329
	}
}
*Endif:
*Endif:



*Ifdef:NOT_USE
*%*Feature: Copy
*%{
*%	*rcNameID: 286
*%	*DefaultOption: Normal
*%	*Option: Normal
*%	{
*%		*rcNameID: 288
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%	*Option:Low
*%	{
*%		*rcNameID:287
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%		*Option:High
*%	{
*%		*rcNameID:289
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%}



*%*Feature: Cut
*%{
*%	*rcNameID: 290
*%	*DefaultOption: Manual
*%	*Option: Manual
*%	{
*%		*rcNameID: 291
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%	*Option:Auto
*%	{
*%		*rcNameID:292
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%}
*%*Feature: Compress
*%{
*%	*rcNameID: 293
*%	*DefaultOption: Normal
*%	*Option: Normal
*%	{
*%		*rcNameID: 299
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%	*Option:Auto
*%	{
*%		*rcNameID:294
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%	*Option:onehalf
*%   1/2
*%	{
*%		*rcNameID:295
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%		*Option:twothirds 
*%		2/3
*%	{
*%		*rcNameID:296
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%		*Option:threequarter
		*%    3/4
*%	{
*%		*rcNameID:297
*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%		*Option:Fourfifths
	*%   4/5
*%	{
*%		*rcNameID:298
	*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%			*Option:Force
*%	{
*%		*rcNameID:300
	*%		*case: LQ1600KPlus
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B>U<01>"
*%				}
*%			}
*%			*case: OKI5320
*%			{
*%				*Command: CmdSelect
*%				{
*%					*Order: DOC_SETUP.2
*%					*Cmd: "<1B><25><25>U"
*%				}
*%			}
*%	}
*%}
*%*InvalidCombination:LIST(Emulation.OKI5320,PrintQuality.SUPER_QUALITY)
*Endif:


*%-------------------单/双向打印选项-------------------------*%
*Ifdef:USE_UI_SETTING
*Else:
*Feature: UniDirection
{
	*rcNameID: 283
	*DefaultOption: no
	*Option: yes
	{
		*rcNameID: 284
		*switch: Emulation
		{
			*case: LQ1600KPlus
			{
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.2
					*Cmd: "<1B>U<01>"
				}
			}
			*case: OKI5320
			{
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.2
					*Cmd: "<1B><25><25>U"
				}
			}
		}
	}
	*Option: no
	{
		*rcNameID: 285
		*switch: Emulation
		{
			*case: LQ1600KPlus
			{
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.2
					*Cmd: "<1B>U<00>"
				}
			}
			*case: OKI5320
			{
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.2
					*Cmd: "<1B><25><25>B"
				}
			}
		}
	}
}
*Endif:


*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
    }
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER,TC_SA_DOUBLE,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE,TC_RA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST(TC_RA_ABLE)
    }
}
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*YMoveAttributes: LIST(SEND_CR_FIRST)
*MaxLineSpacing: 255
*XMoveThreshold: 0
*YMoveThreshold: *
*switch: Emulation
{
	*case: LQ1600KPlus
	{
		*Ifdef:USE_UI_SETTING
			*Command: CmdStartJob
			{
				*%*Order: JOB_SETUP.1
				*%*CallbackID: 25  *%suker  命令回调 同uni.dll文件匹配使用 NFCP_CALLBACK_SPEED_LQ
			}
			*Command: CmdStartDoc
			{
				*Order: DOC_SETUP.1
				*Cmd: "<1B7DB101><1B>t<011B>6<1B>R<001B>r<00><1B>(U<01000A>"
	
			}
			*Command: CmdStartPage
			{
			  	*Order: PAGE_SETUP.1
				*CallbackID: 20  *%suker  命令回调 同uni.dll文件匹配使用 NFCP_CALLBACK_STARTPAGE_LQ
				*%*Order: PAGE_SETUP.30
				*%*CallbackID: 25  *%suker  命令回调 同uni.dll文件匹配使用 NFCP_CALLBACK_SPEED_LQ
			
			}	
		*Else:
			*Command: CmdStartDoc
			{
				*Order: DOC_SETUP.1
				*Cmd: "<1B7DB101><1B>t<011B>6<1B>R<001B>r<00><1B>(U<01000A>"
			}
			
			*Ifdef:SUPPORT_AdjustUp
			*switch: AdjustUp
			{
				*case:Zero
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<0D>"
					}		
				}
				*case:PAGE_UP_1
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<07><0D>"
					}		
				}
				*case:PAGE_UP_2
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<0E><0D>"
					}		
				}
				*case:PAGE_UP_3
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<15><0D>"
					}		
				}
				*case:PAGE_UP_4
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<1C><0D>"
					}		
				}
				*case:PAGE_UP_5
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<23><0D>"
					}		
				}
				*case:PAGE_UP_6
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<2B><0D>"
					}		
				}
				*case:PAGE_UP_7
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<32><0D>"
					}		
				}
				*case:PAGE_UP_8
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<39><0D>"
					}		
				}
				*case:PAGE_UP_9
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<40><0D>"
					}		
				}
				*case:PAGE_UP_10
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<47><0D>"
					}		
				}
				*case:PAGE_UP_11
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<4E><0D>"
					}		
				}
				*case:PAGE_UP_12
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<55><0D>"
					}		
				}
				*case:PAGE_UP_13
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<5C><0D>"
					}		
				}
				*case:PAGE_UP_14
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<63><0D>"
					}		
				}
				*case:PAGE_UP_15
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<6A><0D>"
					}		
				}
				*case:PAGE_UP_16
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<72><0D>"
					}		
				}
				*case:PAGE_UP_17
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<79><0D>"
					}		
				}
				*case:PAGE_UP_18
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<80><0D>"
					}		
				}
				*case:PAGE_UP_19
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<87><0D>"
					}		
				}
				*case:PAGE_UP_20
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<8E><0D>"
					}		
				}
				*case:PAGE_UP_21
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<95><0D>"
					}		
				}
				*case:PAGE_UP_22
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<9C><0D>"
					}		
				}
				*case:PAGE_UP_23
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<A3><0D>"
					}		
				}
				*case:PAGE_UP_24
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<AA><0D>"
					}		
				}
				*case:PAGE_UP_25
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<B1><0D>"
					}		
				}
				*case:PAGE_UP_26
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<B9><0D>"
					}		
				}
				*case:PAGE_UP_27
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<C0><0D>"
					}		
				}
				*case:PAGE_UP_28
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<C7><0D>"
					}		
				}
				*case:PAGE_UP_29
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<CE><0D>"
					}		
				}
				*case:PAGE_UP_30
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<1B>j<D5><0D>"
					}		
				}
			}
			*Endif:			
		*Endif:
			
			
		*IgnoreBlock
		{
			*Command: CmdEndJob
			{
				*Order: JOB_FINISH.1
				*Cmd: ""
			}
		}
        *XMoveUnit: 360
        *YMoveUnit: 180
        *Command: CmdXMoveAbsolute {*Cmd : "<1B>$" %l[0,4890]{max_repeat(DestX  )} }
        *Command: CmdYMoveRelDown { *Cmd : "<1B>J" %c[0,255]{max_repeat((DestYRel / 2) )} }
        *Command: CmdSetLineSpacing { *Cmd : "<1B>3" %c[0,255]{(LinefeedSpacing / 2) } }
        *Command: CmdUniDirectionOn { *Cmd : "<1B>U<01>" }
        *Command: CmdUniDirectionOff { *Cmd : "<1B>U<00>" }
        *Command: CmdBoldOn { *Cmd : "<1B>E" }
		*Command: CmdBoldOff { *Cmd : "<1B>F" }
		*Command: CmdItalicOn { *Cmd : "<1B>4" }
		*Command: CmdItalicOff { *Cmd : "<1B>5" }
		*Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
		*Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
	}
    *case: OKI5320
    {
    	*Ifdef:USE_UI_SETTING
		    *Command: CmdStartJob
			{
				*%*Order: JOB_SETUP.1
				*%*CallbackID: 26  *%suker  命令回调 同uni.dll文件匹配使用 NFCP_CALLBACK_SPEED_OKI
			}
			*Command: CmdStartDoc
			{
				*Order: DOC_SETUP.1
				*Cmd: "<1B7DB0011B><4E>"
			}
			*Command: CmdStartPage
			{
				*Order: PAGE_SETUP.1
				*CallbackID: 21  *%suker  命令回调 同uni.dll文件匹配使用 NFCP_CALLBACK_STARTPAGE_OKI
				*%*Order: PAGE_SETUP.30
				*%*CallbackID: 26  *%suker  命令回调 同uni.dll文件匹配使用 NFCP_CALLBACK_SPEED_OKI
			}		
		*Else:
			*Command: CmdStartDoc
			{
				*Order: DOC_SETUP.1
				*Cmd: "<1B7DB0011B><4E>"
			}
			
			*Ifdef:SUPPORT_AdjustUp
			*switch: AdjustUp
			{
				*case:Zero
				{
					*Command: CmdStartPage
					{
						*Order: PAGE_SETUP.1
						*Cmd: "<0D>"
					}		
				}
			}
			*Endif:
		*Endif:
		
        *XMoveUnit: 180
        *YMoveUnit: 120
        *Command: CmdXMoveRelRight { *Cmd : "<1B><25><25>3" %m[0,255]{max_repeat((DestXRel / 2)) } }
		*Command: CmdYMoveRelDown { *Cmd : "<1B><25><25>5" %c[0,255]{max_repeat((DestYRel / 3) )} }
		*Command: CmdSetLineSpacing { *Cmd : "<1B><25><25>9<00>" %c[0,255]{(LinefeedSpacing / 3) } }
		*Command: CmdUniDirectionOff { *Cmd : "<1B><25><25>B" }
		*Command: CmdUniDirectionOn { *Cmd : "<1B><25><25>U" }
		*Command: CmdBoldOn { *Cmd : "<1B>i" }
		*Command: CmdBoldOff { *Cmd : "<1B>j" }
		*Command: CmdUnderlineOn { *Cmd : "<1B>X" }
		*Command: CmdUnderlineOff { *Cmd : "<1B>Y"}
	}
}

*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }

*Ifdef:USE_UI_SETTING
*Command: CmdFF 
{
	*CallbackID: 23  *%suker  命令回调 同uni.dll文件匹配使用 NFCP_CALLBACK_STOP
}		
*Else:
*Ifdef:SUPPORT_AUTOSTOP
*switch: Stop
{
	*case:NO
	{
		*Command: CmdFF { *Cmd : "<0C>" }	
	}
	*case:YES
	{
		*Command: CmdFF { *Cmd : "<0D>" }	
	}
	*case:OneLine
	{
		*Command: CmdFF { *Cmd : "<0A>" }	
	}
	*case:ThreeLines
	{
		*Command: CmdFF { *Cmd : "<0A0A0A>" }	
	}
	*case:FiveLines
	{
		*Command: CmdFF { *Cmd : "<0A0A0A0A0A>" }	
	}
}
*Else:
*Command: CmdFF { *Cmd : "<0C>" }
*Endif:
*Endif:

*Command: CmdBackSpace { *Cmd : "<08>" }
*EjectPageWithFF?: TRUE
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*CursorYAfterSendBlockData: NO_MOVE
*DefaultFont: 3
*DefaultCTT: 1
*switch: Orientation
{
    *case: PORTRAIT
    {
        *DeviceFonts: LIST(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
+                   17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
+                   33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,
+                   49,50,51,52,53,54,55)
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST()
    }
}
