1 /*****************************************************************************\
2 dj690.h : Interface for the DJ6xxPhoto class
4 Copyright (c) 1996 - 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 \*****************************************************************************/
37 //extern char *ModelString[MAX_ID_STRING];
42 class DJ6xxPhoto : public Printer
45 DJ6xxPhoto(SystemServices* pSS, BOOL proto=FALSE);
47 Header* SelectHeader(PrintContext* pc);
48 virtual DRIVER_ERROR VerifyPenInfo();
49 virtual DRIVER_ERROR ParsePenInfo(PEN_TYPE& ePen, BOOL QueryPrinter=TRUE);
50 virtual BOOL GetMargins (PAPER_SIZE ps, float *fMargins)
53 fMargins[0] = (float) 0.135;
55 fMargins[0] = (float) 0.25; // Left Margin
56 fMargins[1] = fMargins[0]; // Right Margin
57 fMargins[2] = (float) 0.125; // Top Margin
58 fMargins[3] = (float) 0.67; // Bottom Margin
64 virtual DJ6xxPhoto & operator = (Printer& rhs)
75 class Mode690 : public PrintMode
82 class GrayMode690 : public PrintMode
88 #ifdef APDK_EXTENDED_MEDIASIZE
89 class Mode690DraftGrayK : public GrayMode
93 }; //Mode690DraftGrayK
95 class Mode690DraftColor : public PrintMode
99 }; //Mode690DraftColor
101 class Mode690BestGrayK : public GrayMode
105 }; //Mode690BestGrayK
106 #endif // APDK_EXTENDED_MEDIASIZE
108 #ifdef APDK_DJ6xxPhoto
111 ******************************************************************************/
112 class DJ6xxPhotoProxy : public PrinterProxy
115 DJ6xxPhotoProxy() : PrinterProxy(
116 "DJ6xxPhoto", // family name
117 "DESKJET 61\0" // DeskJet 61x Series
118 "DESKJET 64\0" // DeskJet 64x Series
119 "DESKJET 69\0" // DeskJet 69x Series
120 #ifdef APDK_MLC_PRINTER
122 ) {m_iPrinterType = eDJ6xxPhoto;}
123 inline Printer* CreatePrinter(SystemServices* pSS) const { return new DJ6xxPhoto(pSS); }
124 inline PRINTER_TYPE GetPrinterType() const { return eDJ6xxPhoto;}
125 inline unsigned int GetModelBit() const { return 0x80000;}
131 #endif //APDK_DJ690_H