| 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 |
#ifndef APDK_APOLLO2xxx_H |
| 33 |
#define APDK_APOLLO2xxx_H |
| 34 |
|
| 35 |
APDK_BEGIN_NAMESPACE |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
class Apollo2xxx : public Printer |
| 40 |
{ |
| 41 |
public: |
| 42 |
Apollo2xxx(SystemServices* pSS, BOOL proto=FALSE); |
| 43 |
|
| 44 |
Header* SelectHeader(PrintContext* pc); |
| 45 |
virtual DRIVER_ERROR VerifyPenInfo(); |
| 46 |
virtual DRIVER_ERROR ParsePenInfo(PEN_TYPE& ePen, BOOL QueryPrinter=TRUE); |
| 47 |
virtual BOOL GetMargins (PAPER_SIZE ps, float *fMargins) |
| 48 |
{ |
| 49 |
if (ps == A4) |
| 50 |
fMargins[0] = (float) 0.135; |
| 51 |
else |
| 52 |
fMargins[0] = (float) 0.25; |
| 53 |
fMargins[1] = fMargins[0]; |
| 54 |
fMargins[2] = (float) 0.125; |
| 55 |
fMargins[3] = (float) 0.67; |
| 56 |
return TRUE; |
| 57 |
} |
| 58 |
|
| 59 |
#ifdef APDK_HP_UX |
| 60 |
protected: |
| 61 |
virtual Apollo2xxx & operator = (Printer &rhs) |
| 62 |
{ |
| 63 |
return *this; |
| 64 |
} |
| 65 |
#endif |
| 66 |
|
| 67 |
}; |
| 68 |
|
| 69 |
|
| 70 |
class Mode2xxxPhoto : public PrintMode |
| 71 |
{ |
| 72 |
public: |
| 73 |
Mode2xxxPhoto(); |
| 74 |
}; |
| 75 |
|
| 76 |
|
| 77 |
class Mode2xxxColor : public PrintMode |
| 78 |
{ |
| 79 |
public: |
| 80 |
Mode2xxxColor(); |
| 81 |
|
| 82 |
}; |
| 83 |
|
| 84 |
|
| 85 |
class GrayMode2xxx : public PrintMode |
| 86 |
{ |
| 87 |
public: |
| 88 |
GrayMode2xxx(); |
| 89 |
}; |
| 90 |
|
| 91 |
#ifdef APDK_EXTENDED_MEDIASIZE |
| 92 |
class Mode2xxxDraftGrayK : public PrintMode |
| 93 |
{ |
| 94 |
public: |
| 95 |
Mode2xxxDraftGrayK(); |
| 96 |
}; |
| 97 |
|
| 98 |
class Mode2xxxDraftColorKCMY : public PrintMode |
| 99 |
{ |
| 100 |
public: |
| 101 |
Mode2xxxDraftColorKCMY(); |
| 102 |
}; |
| 103 |
|
| 104 |
class Mode2xxxDraftColorCMY : public PrintMode |
| 105 |
{ |
| 106 |
public: |
| 107 |
Mode2xxxDraftColorCMY(); |
| 108 |
}; |
| 109 |
|
| 110 |
class Mode2xxxBestGrayK : public GrayMode |
| 111 |
{ |
| 112 |
public: |
| 113 |
Mode2xxxBestGrayK(); |
| 114 |
}; |
| 115 |
#endif |
| 116 |
|
| 117 |
#ifdef APDK_APOLLO2XXX |
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
class Apollo2xxxProxy : public PrinterProxy |
| 122 |
{ |
| 123 |
public: |
| 124 |
Apollo2xxxProxy() : PrinterProxy( |
| 125 |
"AP2xxx", |
| 126 |
"APOLLO P-22\0" |
| 127 |
) {m_iPrinterType = eAP2xxx;} |
| 128 |
inline Printer* CreatePrinter(SystemServices* pSS) const { return new Apollo2xxx(pSS); } |
| 129 |
inline PRINTER_TYPE GetPrinterType() const { return eAP2xxx;} |
| 130 |
inline unsigned int GetModelBit() const { return 0x4000;} |
| 131 |
}; |
| 132 |
#endif |
| 133 |
|
| 134 |
APDK_END_NAMESPACE |
| 135 |
|
| 136 |
#endif |