1 /*****************************************************************************\
2 djgenericvip.h : Interface for the generic VIP printer class
4 Copyright (c) 2001 - 2006, 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_DJ_GENERIC_VIP_H
33 #define APDK_DJ_GENERIC_VIP_H
41 ******************************************************************************/
42 class DJGenericVIP : public DJ9xxVIP
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; }
57 #ifdef APDK_AUTODUPLEX
58 //!Returns TRUE if duplexer and hagaki feed (combined) unit is present in printer.
60 virtual BOOL HagakiFeedDuplexerPresent(BOOL bQueryPrinter);
62 virtual BOOL GetMargins (PAPER_SIZE ps, float *fMargins);
64 virtual DRIVER_ERROR SendSpeedMechCmd (BOOL bLastPage);
68 virtual void AdjustModeSettings (BOOL bDoFullBleed, MEDIATYPE ReqMedia,
69 MediaType *medium, Quality *quality);
73 class VIPFastDraftMode : public PrintMode
77 }; // VIPFastDraftMode
79 class VIPGrayFastDraftMode : public GrayMode
82 VIPGrayFastDraftMode ();
83 }; // VIPGrayFastDraftMode
85 class VIPFastPhotoMode : public PrintMode
89 }; // VIPFastPhotoMode
91 class VIPAutoPQMode : public PrintMode
97 class VIPCDDVDMode : public PrintMode
103 class VIPBrochureNormalMode : public PrintMode
\r
106 VIPBrochureNormalMode ();
\r
107 }; // VIPBrochureNormalMode
\r
109 class VIPPremiumNormalMode : public PrintMode
\r
112 VIPPremiumNormalMode ();
\r
113 }; // VIPPremiumNormalMode
\r
115 class VIPPlainBestMode : public PrintMode
\r
118 VIPPlainBestMode ();
\r
119 }; // VIPPlainBestMode
\r
121 class VIPBrochureBestMode : public PrintMode
\r
124 VIPBrochureBestMode ();
\r
125 }; // VIPBrochureBestMode
\r
127 class VIPPremiumBestMode : public PrintMode
\r
130 VIPPremiumBestMode ();
\r
131 }; // VIPPremiumBestMode
\r
133 #if defined(APDK_DJGENERICVIP) && defined (APDK_DJ9xxVIP)
134 //! DJGenericVIPProxy
136 ******************************************************************************/
137 class DJGenericVIPProxy : public PrinterProxy
140 DJGenericVIPProxy() : PrinterProxy(
141 "GenericVIP", // family name
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"
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"
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
236 "Photosmart A440\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
272 "Photosmart Wireless B109\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;}
284 #endif // APDK_DJ_GENERIC_VIP_H