1 /*****************************************************************************\
\r
2 ljzjscolor.h : Interface for the LJZjsColor class
\r
4 Copyright (c) 1996 - 2006, Hewlett-Packard Co.
\r
7 Redistribution and use in source and binary forms, with or without
\r
8 modification, are permitted provided that the following conditions
\r
10 1. Redistributions of source code must retain the above copyright
\r
11 notice, this list of conditions and the following disclaimer.
\r
12 2. Redistributions in binary form must reproduce the above copyright
\r
13 notice, this list of conditions and the following disclaimer in the
\r
14 documentation and/or other materials provided with the distribution.
\r
15 3. Neither the name of Hewlett-Packard nor the names of its
\r
16 contributors may be used to endorse or promote products derived
\r
17 from this software without specific prior written permission.
\r
19 THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
\r
20 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
\r
21 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
\r
22 NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
\r
23 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
\r
24 TO, PATENT INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
\r
25 OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
\r
26 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
\r
27 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
\r
28 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\r
29 \*****************************************************************************/
\r
32 #ifndef APDK_LJZJS_COLOR_H
\r
33 #define APDK_LJZJS_COLOR_H
\r
35 APDK_BEGIN_NAMESPACE
\r
40 class LJZjsColor : public LJZjs
\r
43 LJZjsColor (SystemServices* pSS, int numfonts = 0, BOOL proto = FALSE);
\r
46 virtual DRIVER_ERROR VerifyPenInfo ();
\r
47 virtual DRIVER_ERROR ParsePenInfo (PEN_TYPE& ePen, BOOL QueryPrinter = TRUE);
\r
48 virtual DRIVER_ERROR Encapsulate (const RASTERDATA *pRasterData, BOOL bLastPlane);
\r
53 virtual LJZjsColor & operator = (Printer& rhs)
\r
60 bool IsLJZjsColor2Printer(SystemServices* pSS);
\r
61 virtual DRIVER_ERROR EndPage ();
\r
62 virtual DRIVER_ERROR SendPlaneData (int iPlaneNumber, HPLJZjsJbgEncSt *se, HPLJZjcBuff *pcBuff, BOOL bLastStride);
\r
63 virtual DRIVER_ERROR SendPlaneData_LJZjsColor (int iPlaneNumber, HPLJZjsJbgEncSt *se, HPLJZjcBuff *pcBuff, BOOL bLastStride);
\r
64 virtual DRIVER_ERROR SendPlaneData_LJZjsColor2 (int iPlaneNumber, HPLJZjsJbgEncSt *se, HPLJZjcBuff *pcBuff, BOOL bLastStride);
\r
68 class LJZjsColorDraftGrayMode : public GrayMode
\r
71 LJZjsColorDraftGrayMode ();
\r
72 }; // LJZjsColorDraftGrayMode
\r
74 class LJZjsColorNormalGrayMode : public GrayMode
\r
77 LJZjsColorNormalGrayMode ();
\r
78 }; // LJZjsColorNormalGrayMode
\r
80 class LJZjsColorDraftColorMode : public PrintMode
\r
83 LJZjsColorDraftColorMode ();
\r
84 }; // LJZjsColorDraftColorMode
\r
86 class LJZjsColorNormalColorMode : public PrintMode
\r
89 LJZjsColorNormalColorMode ();
\r
90 }; // LJZjsColorNormalColorMode
\r
94 ******************************************************************************/
\r
95 class LJZjsColorProxy : public PrinterProxy
\r
98 LJZjsColorProxy() : PrinterProxy(
\r
99 "LJZjsColor", // family name
\r
100 "HP Color LaserJet 1600\0" // models with null at end of each
\r
101 "HP Color LaserJet 2600n\0"
\r
102 "HP Color LaserJet CP1215\0"
\r
103 "HP LaserJet CP1025\0"
\r
104 "HP LaserJet CP1021\0"
\r
105 "HP LaserJet CP1022\0"
\r
106 "HP LaserJet CP1023\0"
\r
107 "HP LaserJet CP1025nw\0"
\r
108 "HP LaserJet CP1026nw\0"
\r
109 "HP LaserJet CP1027nw\0"
\r
110 "HP LaserJet CP1028nw\0"
\r
111 ) {m_iPrinterType = eLJZjsColor;}
\r
112 inline Printer* CreatePrinter(SystemServices* pSS) const { return new LJZjsColor(pSS); }
\r
113 inline PRINTER_TYPE GetPrinterType() const { return eLJZjsColor;}
\r
114 inline unsigned int GetModelBit() const { return 0x40;}
\r
119 #endif //APDK_LJZJS_COLOR_H
\r