1
/*****************************************************************************\
2
ljcolor.h : Interface for the LJColor class
4
Copyright (c) 1996 - 2015, HP 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 HP 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_LJCOLOR_H
33
#define APDK_LJCOLOR_H
40
class LJColor : public Printer
43
LJColor (SystemServices* pSS,int numfonts=0, BOOL proto=FALSE);
46
virtual Header* SelectHeader (PrintContext* pc);
47
virtual DRIVER_ERROR VerifyPenInfo ();
48
virtual DRIVER_ERROR ParsePenInfo (PEN_TYPE& ePen, BOOL QueryPrinter=TRUE);
49
virtual DISPLAY_STATUS ParseError (BYTE status_reg);
50
inline virtual BOOL SupportSeparateBlack (PrintMode *pCurrentMode) {return FALSE;}
51
DRIVER_ERROR SkipRasters (int nBlankRasters);
52
virtual DRIVER_ERROR Flush (int FlushSize)
57
virtual BOOL GetMargins (PAPER_SIZE ps, float *fMargins)
59
fMargins[0] = (float) 0.25;
60
fMargins[1] = (float) 0.25;
61
fMargins[2] = (float) 0.2;
62
fMargins[3] = (float) 0.2;
66
virtual BOOL UseCMYK (unsigned int iPrintMode) { return FALSE;}
67
virtual DRIVER_ERROR Encapsulate (const RASTERDATA* InputRaster, BOOL bLastPlane);
69
#ifdef APDK_AUTODUPLEX
72
* Note that we are returning TRUE here not to say there is a Hagaki Feed tray
73
* and Hagaki Card duplexer. Some non-HP Lasers number their input trays
74
* differently and try 5 (sourceHagakiFeedNDuplexer) can be a valid input tray.
75
* In order to allow selection of this tray, we will return TRUE for all lasers.
78
virtual BOOL HagakiFeedDuplexerPresent (BOOL bQueryPrinter)
84
Compressor* CreateCompressor (unsigned int RasterSize);
92
virtual LJColor & operator = (Printer& rhs)
100
Compressor *m_pCompressor;
104
class LJColorKDraftMode : public GrayMode
107
LJColorKDraftMode ();
108
}; // LJColorDraftMode
110
class LJColorGrayMode : public GrayMode
114
}; // LJColorGrayMode
116
class LJColor150DPIMode : public PrintMode
119
LJColor150DPIMode ();
120
}; // LJColor150DPIMode
122
class LJColor300DPIMode : public PrintMode
125
LJColor300DPIMode ();
126
}; // LJColor300DPIMode
128
class LJColor600DPIMode : public PrintMode
131
LJColor600DPIMode ();
132
}; // LJColor600DPIMode
134
#ifdef APDK_EXTENDED_MEDIASIZE
135
class LJColorPlainBestMode : public PrintMode
138
LJColorPlainBestMode ();
145
******************************************************************************/
146
class LJColorProxy : public PrinterProxy
149
LJColorProxy() : PrinterProxy(
150
"ColorLaser", // family name
151
"hp color LaserJet\0"
152
"HP Color LaserJet\0"
153
"hp business inkjet 2600\0"
154
"hp business inkjet 3000\0"
155
"hp business inkjet 2300\0"
157
#ifdef APDK_MLC_PRINTER
159
) {m_iPrinterType = eLJColor;}
160
inline Printer* CreatePrinter(SystemServices* pSS) const { return new LJColor(pSS); }
161
inline PRINTER_TYPE GetPrinterType() const { return eLJColor;}
162
inline unsigned int GetModelBit() const { return 0x20;}
168
#endif //APDK_LJCOLOR_H