1 /*****************************************************************************\
2 apollo2xxx.h : Interface for the Apollo2xxx class
4 Copyright (c) 2000, 2001, Hewlett-Packard Co.
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions
10 1. Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15 3. Neither the name of Hewlett-Packard nor the names of its
16 contributors may be used to endorse or promote products derived
17 from this software without specific prior written permission.
19 THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
20 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
22 NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24 TO, PATENT INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
25 OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
26 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 \*****************************************************************************/
32 #ifndef APDK_APOLLO2xxx_H
33 #define APDK_APOLLO2xxx_H
39 class Apollo2xxx : public Printer
42 Apollo2xxx(SystemServices* pSS, BOOL proto=FALSE);
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)
50 fMargins[0] = (float) 0.135;
52 fMargins[0] = (float) 0.25; // Left Margin
53 fMargins[1] = fMargins[0]; // Right Margin
54 fMargins[2] = (float) 0.125; // Top Margin
55 fMargins[3] = (float) 0.67; // Bottom Margin
61 virtual Apollo2xxx & operator = (Printer &rhs)
70 class Mode2xxxPhoto : public PrintMode
77 class Mode2xxxColor : public PrintMode
85 class GrayMode2xxx : public PrintMode
91 #ifdef APDK_EXTENDED_MEDIASIZE
92 class Mode2xxxDraftGrayK : public PrintMode
96 }; //Mode2xxxDraftGrayK
98 class Mode2xxxDraftColorKCMY : public PrintMode
101 Mode2xxxDraftColorKCMY();
102 }; //Mode2xxxDraftKCMYColor
104 class Mode2xxxDraftColorCMY : public PrintMode
107 Mode2xxxDraftColorCMY();
108 }; //Mode2xxxDraftCMYColor
110 class Mode2xxxBestGrayK : public GrayMode
114 }; //Mode2xxxBestGrayK
115 #endif // APDK_EXTENDED_MEDIASIZE
117 #ifdef APDK_APOLLO2XXX
120 ******************************************************************************/
121 class Apollo2xxxProxy : public PrinterProxy
124 Apollo2xxxProxy() : PrinterProxy(
125 "AP2xxx", // family name
126 "APOLLO P-22\0" // Apollo P-22xx series
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;}
136 #endif //APDK_APOLLO2xx_H