Tizen 2.1 base
[platform/upstream/hplip.git] / prnt / hpijs / ljzjscolor.h
1 /*****************************************************************************\\r
2   ljzjscolor.h : Interface for the LJZjsColor class\r
3 \r
4   Copyright (c) 1996 - 2006, Hewlett-Packard Co.\r
5   All rights reserved.\r
6 \r
7   Redistribution and use in source and binary forms, with or without\r
8   modification, are permitted provided that the following conditions\r
9   are met:\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
18 \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
30 \r
31 \r
32 #ifndef APDK_LJZJS_COLOR_H\r
33 #define APDK_LJZJS_COLOR_H\r
34 \r
35 APDK_BEGIN_NAMESPACE\r
36 \r
37 /*!\r
38 \internal\r
39 */\r
40 class LJZjsColor : public LJZjs\r
41 {\r
42 public:\r
43     LJZjsColor (SystemServices* pSS, int numfonts = 0, BOOL proto = FALSE);\r
44     ~LJZjsColor ();\r
45 \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
49 \r
50 protected:\r
51 \r
52 #ifdef APDK_HP_UX\r
53     virtual LJZjsColor & operator = (Printer& rhs)\r
54     {\r
55         return *this;\r
56     }\r
57 #endif\r
58 \r
59 private:\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
65 \r
66 }; // LJZjsColor\r
67 \r
68 class LJZjsColorDraftGrayMode : public GrayMode\r
69 {\r
70 public:\r
71         LJZjsColorDraftGrayMode ();\r
72 };      // LJZjsColorDraftGrayMode\r
73 \r
74 class LJZjsColorNormalGrayMode : public GrayMode\r
75 {\r
76 public:\r
77     LJZjsColorNormalGrayMode ();\r
78 }; // LJZjsColorNormalGrayMode\r
79 \r
80 class LJZjsColorDraftColorMode : public PrintMode\r
81 {\r
82 public:\r
83     LJZjsColorDraftColorMode ();\r
84 }; // LJZjsColorDraftColorMode\r
85 \r
86 class LJZjsColorNormalColorMode : public PrintMode\r
87 {\r
88 public:\r
89     LJZjsColorNormalColorMode ();\r
90 }; // LJZjsColorNormalColorMode\r
91 \r
92 //! LJZjsColorProxy\r
93 /*!\r
94 ******************************************************************************/\r
95 class LJZjsColorProxy : public PrinterProxy\r
96 {\r
97 public:\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
115 };\r
116 \r
117 APDK_END_NAMESPACE\r
118 \r
119 #endif //APDK_LJZJS_COLOR_H\r