# $ApsCVS: src/apsfilter/driver/alc2000,v 1.1 2001/11/17 15:21:54 andreas Exp $

case "$QUALITY" in
	draft)	RESOLUTION=300x300
		GS_FEATURES="$GS_FEATURES -dTonerSaving" ;;
	low)	RESOLUTION=300x300 ;;
	medium)	RESOLUTION=600x600 ;;
	*)	RESOLUTION=1200x1200 ;;
esac

# this is a bit of a kludge
case "$PAPERTRAY" in
	"")	;;
	0)	GS_FEATURES="$GS_FEATURES -dManualFeed" ;;
	*)	GS_FEATURES="$GS_FEATURES -dCasset=$PAPERTRAY" ;;
esac

[ "$MEDIA" = trans ] && GS_FEATURES="$GS_FEATURES -sMediaType=TRANS"

[ "$HARDWARE_COPIES" ] && GS_FEATURES="$GS_FEATURES -dNumCopies=$COPIES"

if [ -n "$HARDWARE_DUPLEX" -a -n "$DUPLEX" ]; then
	if [ "$BINDING" = short ]; then
		GS_FEATURES="$GS_FEATURES -dDuplex -dTumble"
	else
		GS_FEATURES="$GS_FEATURES -dDuplex"
	fi
fi
