/* Copyright 2000 Compaq Computer Corporation COMPAQ Registered in U.S. Patent and Trademark Office. Confidential computer software. Valid license from Compaq required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. */ #ifndef X_NOT_STDC_ENV #include #else char *malloc(), *realloc(), *calloc(); #endif #if defined(macII) && !defined(__STDC__) /* stdlib.h fails to define these */ char *malloc(), *realloc(), *calloc(); #endif /* macII */ /* 3812 PagePrinter macros */ #define PPI 240 #define inch2pel(inches) ((int) ((inches) * PPI)) #define DEFAULT_WIDTH 8.5 #define X_MAX_PELS inch2pel(DEFAULT_WIDTH) #define DEFAULT_LENGTH 11 #define Y_MAX_PELS inch2pel(DEFAULT_LENGTH) #define INTENSITY(color) (30L*(int)(color)->red + \ 59L*(int)(color)->green + \ 11L*(int)(color)->blue) #define INTENSITYPER(per) (((1<<16)-1)*((long)per)) #define HALFINTENSITY INTENSITYPER(50) enum orientation { UNSPECIFIED = -1, PORTRAIT = 0, LANDSCAPE = 1, UPSIDE_DOWN = 2, LANDSCAPE_LEFT = 3 }; enum device {LN01, LN03, LA100, PS, PP, LJET, PJET, PJETXL};