⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dj9xx.h

📁 HP喷墨打印机驱动代码 HP内部资料! 珍贵 珍贵 珍贵
💻 H
字号:
/*****************************************************************************\  dj9xx.h : Interface for the DJ9xx class  Copyright (c) 1996 - 2001, Hewlett-Packard Co.  All rights reserved.  Redistribution and use in source and binary forms, with or without  modification, are permitted provided that the following conditions  are met:  1. Redistributions of source code must retain the above copyright     notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright     notice, this list of conditions and the following disclaimer in the     documentation and/or other materials provided with the distribution.  3. Neither the name of Hewlett-Packard nor the names of its     contributors may be used to endorse or promote products derived     from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN  NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED  TO, PATENT INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\*****************************************************************************/#ifndef APDK_DJ9XX_H#define APDK_DJ9XX_HAPDK_BEGIN_NAMESPACE//extern char *ModelString[MAX_ID_STRING];/*!\internal*/class DJ9xx : public Printer{public:    DJ9xx(SystemServices* pSS, BOOL proto=FALSE);    virtual ~DJ9xx();    BOOL UseGUIMode(PrintMode* pPrintMode);    Header* SelectHeader(PrintContext* pc);    Compressor* CreateCompressor(unsigned int RasterSize);    DISPLAY_STATUS ParseError(BYTE status_reg);    DRIVER_ERROR VerifyPenInfo();#if defined(APDK_FONTS_NEEDED)    Font* RealizeFont(const int index,const BYTE bSize,                        const TEXTCOLOR eColor=BLACK_TEXT,                        const BOOL bBold=FALSE,const BOOL bItalic=FALSE,                        const BOOL bUnderline=FALSE);#endif    virtual DRIVER_ERROR ParsePenInfo(PEN_TYPE& ePen, BOOL QueryPrinter=TRUE);    PAPER_SIZE MandatoryPaperSize();    DRIVER_ERROR CleanPen();    virtual BOOL PhotoTrayPresent(BOOL bQueryPrinter);    virtual PHOTOTRAY_STATE PhotoTrayEngaged (BOOL bQueryPrinter);protected:    virtual BYTE PhotoTrayStatus(BOOL bQueryPrinter);}; //DJ9xxclass BroadwayMode1 : public PrintMode{public:    BroadwayMode1();}; //BroadwayMode1class BroadwayMode2 : public PrintMode{public:    BroadwayMode2();}; //BroadwayMode2#ifdef APDK_EXTENDED_MEDIASIZEclass BroadwayMode3 : public GrayMode{public:    BroadwayMode3 ();}; //BroadwayMode3class BroadwayMode4 : public PrintMode{public:    BroadwayMode4 ();};class BroadwayMode5 : public PrintMode{public:    BroadwayMode5 ();};class BroadwayModePres : public PrintMode{public:    BroadwayModePres();};class BroadwayModePhotoPres : public PrintMode{public:    BroadwayModePhotoPres();};#endif // APDK_EXTENDED_MEDIASIZE#ifdef APDK_DJ9xx//! DJ9xxProxy/*!******************************************************************************/class DJ9xxProxy : public PrinterProxy{public:    DJ9xxProxy() : PrinterProxy(        "DJ9xx",                    // family name        "DESKJET 91\0"                              // DeskJet 91x Series        "DESKJET 92\0"                              // DeskJet 920 - Thriftway Lite        "DESKJET 93\0"                              // DeskJet 93x Series        "DESKJET 94\0"                              // DeskJet 94x Series        "DESKJET 95\0"                              // DeskJet 95x Series        "DESKJET 97\0"                              // DeskJet 97x Series        "DESKJET 1120\0"                        // DeskJet 1120 - Young Einstein        "DESKJET 1125\0"                        // DeskJet 1125 - Young Einstein        "DESKJET 3810\0"                            // DeskJet 3810 - Subway        "DESKJET 3816\0"                            // DeskJet 3816 - Subway        "DESKJET 3820\0"                            // DeskJet 3820 - Subway        "DESKJET 3822\0"                            // DeskJet 3822 - Subway        "PHOTOSMART P1000\0"                        // PSP 1000        "PHOTOSMART P1100\0"                        // PSP 1100        "DESKJET 1220\0"                            // DeskJet 1220 - Escher		"hp deskjet 9300\0"                         // deskjet 9300 - Escher +#ifdef APDK_MLC_PRINTER        "OfficeJet K\0"                             // OfficeJet K Series        "OfficeJet V\0"                             // OfficeJet V Series        "OfficeJet G\0"                             // OfficeJet G Series        "PSC 7\0"                                   // PSC 750        "PSC 9\0"                                   // PSC 900 Series		"officejet 5100 series\0"                   // officejet 5100 series#endif    ) {m_iPrinterType = eDJ9xx;}    inline Printer* CreatePrinter(SystemServices* pSS) const { return new DJ9xx(pSS); }	inline PRINTER_TYPE GetPrinterType() const { return eDJ9xx;}	inline unsigned int GetModelBit() const { return 0x20000;}};#endifAPDK_END_NAMESPACE#endif //APDK_DJ9XX_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -