Tizen 2.1 base
[platform/upstream/hplip.git] / prnt / hpijs / dj690.h
1 /*****************************************************************************\
2   dj690.h : Interface for the DJ6xxPhoto class
3
4   Copyright (c) 1996 - 2001, 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_DJ690_H
33 #define APDK_DJ690_H
34
35 APDK_BEGIN_NAMESPACE
36
37 //extern char *ModelString[MAX_ID_STRING];
38
39 /*!
40 \internal
41 */
42 class DJ6xxPhoto : public Printer
43 {
44 public:
45     DJ6xxPhoto(SystemServices* pSS, BOOL proto=FALSE);
46
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)
51         {
52                 if (ps == A4)
53                         fMargins[0] = (float) 0.135;
54                 else
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
59                 return TRUE;
60         }
61
62 protected:
63 #ifdef APDK_HP_UX
64     virtual DJ6xxPhoto & operator = (Printer& rhs)
65     {
66         return *this;
67     }
68 #endif
69
70     BOOL PhotoPenOK;
71
72 }; //DJ6xxPhoto
73
74
75 class Mode690 : public PrintMode
76 {
77 public:
78     Mode690();
79 }; //Mode690
80
81
82 class GrayMode690 : public PrintMode
83 {
84 public:
85     GrayMode690();
86 }; //GrayMode690
87
88 #ifdef APDK_EXTENDED_MEDIASIZE
89 class Mode690DraftGrayK : public GrayMode
90 {
91 public:
92     Mode690DraftGrayK();
93 }; //Mode690DraftGrayK
94
95 class Mode690DraftColor : public PrintMode
96 {
97 public:
98     Mode690DraftColor();
99 }; //Mode690DraftColor
100
101 class Mode690BestGrayK : public GrayMode
102 {
103 public:
104     Mode690BestGrayK();
105 }; //Mode690BestGrayK
106 #endif // APDK_EXTENDED_MEDIASIZE
107
108 #ifdef APDK_DJ6xxPhoto
109 //! DJ690Proxy
110 /*!
111 ******************************************************************************/
112 class DJ6xxPhotoProxy : public PrinterProxy
113 {
114 public:
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
121 #endif
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;}
126 };
127 #endif
128
129 APDK_END_NAMESPACE
130
131 #endif //APDK_DJ690_H