Tizen 2.1 base
[platform/upstream/hplip.git] / prnt / hpijs / djgenericvip.h
1 /*****************************************************************************\
2   djgenericvip.h : Interface for the generic VIP printer class
3
4   Copyright (c) 2001 - 2006, Hewlett-Packard Co.
5   All rights reserved.
6
7   Redistribution and use in source and binary forms, with or without
8   modification, are permitted provided that the following conditions
9   are met:
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.
18
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 \*****************************************************************************/
30
31
32 #ifndef APDK_DJ_GENERIC_VIP_H
33 #define APDK_DJ_GENERIC_VIP_H
34
35 APDK_BEGIN_NAMESPACE
36
37 //DJGenericVIP
38 //!
39 /*!
40 \internal
41 ******************************************************************************/
42 class DJGenericVIP : public DJ9xxVIP
43 {
44 public:
45     DJGenericVIP (SystemServices* pSS, BOOL proto = FALSE);
46     Header *SelectHeader (PrintContext *pc);
47     DRIVER_ERROR VerifyPenInfo ();
48     virtual BOOL FullBleedCapable (PAPER_SIZE ps, FullbleedType  *fbType, float *xOverSpray, float *yOverSpray,
49                                    float *fLeftOverSpray, float *fTopOverSpray);
50         virtual BOOL UseGUIMode (PrintMode *pPrintMode);
51         virtual PAPER_SIZE MandatoryPaperSize ();
52     virtual PHOTOTRAY_STATE PhotoTrayEngaged (BOOL bQueryPrinter);
53     //! Returns TRUE if a hagaki feed is present in printer.
54     virtual BOOL HagakiFeedPresent(BOOL bQueryPrinter);
55         virtual DATA_FORMAT GetDataFormat () { return RASTER_STRIP; }
56
57 #ifdef APDK_AUTODUPLEX
58     //!Returns TRUE if duplexer and hagaki feed (combined) unit is present in printer.
59
60     virtual BOOL HagakiFeedDuplexerPresent(BOOL bQueryPrinter);
61 #endif
62     virtual BOOL GetMargins (PAPER_SIZE ps, float *fMargins);
63 #ifdef APDK_LINUX
64     virtual DRIVER_ERROR    SendSpeedMechCmd (BOOL bLastPage);
65 #endif // APDK_LINUX
66
67 private:
68         virtual void AdjustModeSettings (BOOL bDoFullBleed, MEDIATYPE ReqMedia,
69                                                                          MediaType *medium, Quality *quality);
70
71 }; //DJGenericVIP
72
73 class VIPFastDraftMode : public PrintMode
74 {
75 public:
76     VIPFastDraftMode ();
77 }; // VIPFastDraftMode
78
79 class VIPGrayFastDraftMode : public GrayMode
80 {
81 public:
82     VIPGrayFastDraftMode ();
83 }; // VIPGrayFastDraftMode
84
85 class VIPFastPhotoMode : public PrintMode
86 {
87 public:
88     VIPFastPhotoMode ();
89 }; // VIPFastPhotoMode
90
91 class VIPAutoPQMode : public PrintMode
92 {
93 public:
94     VIPAutoPQMode ();
95 }; // VIPAutoPQMode
96
97 class VIPCDDVDMode : public PrintMode
98 {
99 public:
100     VIPCDDVDMode ();
101 }; // VIPCDDVDMode
102 \r
103 class VIPBrochureNormalMode : public PrintMode\r
104 {\r
105 public:\r
106     VIPBrochureNormalMode ();\r
107 }; // VIPBrochureNormalMode\r
108 \r
109 class VIPPremiumNormalMode : public PrintMode\r
110 {\r
111 public:\r
112     VIPPremiumNormalMode ();\r
113 }; // VIPPremiumNormalMode\r
114 \r
115 class VIPPlainBestMode : public PrintMode\r
116 {\r
117 public:\r
118     VIPPlainBestMode ();\r
119 }; // VIPPlainBestMode\r
120 \r
121 class VIPBrochureBestMode : public PrintMode\r
122 {\r
123 public:\r
124     VIPBrochureBestMode ();\r
125 }; // VIPBrochureBestMode\r
126 \r
127 class VIPPremiumBestMode : public PrintMode\r
128 {\r
129 public:\r
130     VIPPremiumBestMode ();\r
131 }; // VIPPremiumBestMode\r
132
133 #if defined(APDK_DJGENERICVIP) && defined (APDK_DJ9xxVIP)
134 //! DJGenericVIPProxy
135 /*!
136 ******************************************************************************/
137 class DJGenericVIPProxy : public PrinterProxy
138 {
139 public:
140     DJGenericVIPProxy() : PrinterProxy(
141         "GenericVIP",                       // family name
142         "deskjet 5100\0"
143         "Deskjet 5400\0"
144         "deskjet 5600\0"
145         "Deskjet 5700\0"
146         "deskjet 5800\0"
147         "Deskjet 5900\0"
148         "Deskjet 6500\0"
149         "Deskjet 6600\0"
150         "Deskjet 6800\0"
151         "Deskjet 6940\0"
152         "Deskjet 6980\0"
153         "Deskjet 6988\0"
154         "deskjet 9600\0"
155         "Deskjet 9800\0"\r
156         "Deskjet D25\0"\r
157         "Deskjet D55\0"\r
158         "Deskjet F24\0"\r
159         "Deskjet F42\0"\r
160         "Deskjet F44\0"\r
161         "Deskjet F45\0"
162         "Deskjet 2050 J510\0"
163         "Deskjet 1050 J410\0"
164         "Business Inkjet 1000\0"
165         "hp business inkjet 1100\0"
166         "HP Business Inkjet 1200\0"\r
167         "Officejet Pro 8500\0"
168         "photosmart 7150\0"
169         "photosmart 7350\0"
170         "photosmart 7345\0"
171         "photosmart 7550\0"
172         "photosmart 7960\0"
173         "photosmart 7760\0"
174         "photosmart 7660\0"
175         "photosmart 7260\0"
176         "photosmart 7268\0"
177         "Photosmart 7400\0"
178         "Photosmart 7800\0"
179         "Photosmart 8000\0"
180         "Photosmart 8100\0"
181         "Photosmart 8400\0"
182         "Photosmart 8700\0"
183         "Photosmart 8200\0"
184         "Photosmart 320\0"
185         "Photosmart 370\0"
186         "Photosmart 380\0"
187         "Photosmart 330\0"
188         "Photosmart 420\0"
189         "Photosmart A430\0"
190         "Photosmart A510\0"
191         "Photosmart A520\0"
192         "PSC 1500\0"
193         "PSC 1600\0"
194         "psc 2300\0"
195         "PSC 2350\0"
196         "psc 2400\0"
197         "psc 2500\0"\r
198         "Officejet 4400 K410\0"
199         "Officejet 4500 All-in-One Printer - K710\0"
200         "Officejet 4500 G510\0"
201         "Officejet 6000 E609\0"\r
202         "Officejet 6500 E709\0"\r
203         "Officejet 7000 E809\0"
204         "Officejet 74\0"
205         "Officejet 73\0"
206         "Officejet 72\0"\r
207         "Officejet 60\0"
208         "Officejet 62\0"
209         "Officejet 63\0"
210         "Officejet J35\0"
211         "Officejet J36\0"\r
212         "Officejet J46\0"
213         "Officejet J55\0"
214         "Officejet J57\0"
215         "Officejet J64\0"
216         "Officejet K71\0"\r
217         "Officejet Pro K53\0"\r
218         "Officejet Pro K54\0"\r
219         "Officejet Pro K56\0"\r
220         "Officejet Pro K86\0"\r
221         "Officejet Pro L73\0"\r
222         "Officejet Pro L75\0"\r
223         "Officejet Pro L76\0"\r
224         "Officejet Pro L77\0"\r
225         "Officejet Pro L82\0"\r
226         "Officejet Pro L83\0"\r
227         "Officejet Pro L84\0"\r
228         "Photosmart 2570\0"
229         "Photosmart 2600\0"
230         "Photosmart 2700\0"
231         "Photosmart 3100\0"
232         "Photosmart 3200\0"
233         "Photosmart 3300\0"
234         "Photosmart A310\0"
235         "Photosmart A320\0"
236         "Photosmart A440\0"\r
237         "Photosmart B85\0"\r
238         "Photosmart B109\0"\r
239         "Photosmart Plus B209\0"\r
240         "Photosmart Prem-Web C309\0"
241         "Photosmart Pro B8300\0"
242         "Photosmart Pro B88\0"\r
243         "Photosmart C309\0"
244         "Photosmart C31\0"
245         "Photosmart C41\0"
246         "Photosmart C42\0"
247         "Photosmart C43\0"\r
248         "Photosmart C44\0"\r
249         "Photosmart C45\0"\r
250         "Photosmart C46\0"\r
251         "Photosmart C47\0"
252         "Photosmart C51\0"
253         "Photosmart C52\0"\r
254         "Photosmart C53\0"
255         "Photosmart C61\0"
256         "Photosmart C62\0"\r
257         "Photosmart C63\0"
258         "Photosmart C71\0"
259         "Photosmart C72\0"
260         "Photosmart C81\0"
261         "Photosmart D5060\0"
262         "Photosmart D51\0"
263         "Photosmart D53\0"\r
264         "Photosmart D54\0"
265         "Photosmart D61\0"
266         "Photosmart D71\0"
267         "Photosmart D72\0"
268         "Photosmart D73\0"
269         "Photosmart D74\0"
270         "Photosmart D73\0"\r
271         "Photosmart D110\0"
272         "Photosmart Wireless B109\0"
273         "Photosmart B010\0"
274         "Photosmart B110\0"
275     ) {m_iPrinterType = eDJGenericVIP;}
276     inline Printer* CreatePrinter(SystemServices* pSS) const { return new DJGenericVIP(pSS); }
277         inline PRINTER_TYPE GetPrinterType() const { return eDJGenericVIP;}
278         inline unsigned int GetModelBit() const { return 0x80;}
279 };
280 #endif
281
282 APDK_END_NAMESPACE
283
284 #endif  // APDK_DJ_GENERIC_VIP_H