📄 ljmono.h
字号:
/*****************************************************************************\ ljmono.h : Interface for the LJMono 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_LJMONO_H#define APDK_LJMONO_HAPDK_BEGIN_NAMESPACE#ifdef APDK_HIGH_RES_MODES#define LJ_BASE_RES 300#else#define LJ_BASE_RES 150#endif/*!\internal*/class LJMono : public Printer{public: LJMono (SystemServices* pSS,int numfonts=0, BOOL proto=FALSE); ~LJMono (); virtual Header* SelectHeader (PrintContext* pc); virtual DRIVER_ERROR VerifyPenInfo (); virtual DRIVER_ERROR ParsePenInfo (PEN_TYPE& ePen, BOOL QueryPrinter=TRUE); virtual DISPLAY_STATUS ParseError (BYTE status_reg); virtual DRIVER_ERROR Flush (int FlushSize) { return NO_ERROR; } virtual BOOL GetMargins (PAPER_SIZE ps, float *fMargins) { fMargins[0] = (float) 0.25; fMargins[1] = (float) 0.25; fMargins[2] = (float) 0.2; fMargins[3] = (float) 0.2; return TRUE; } Compressor* CreateCompressor (unsigned int RasterSize);protected: BOOL m_bJobStarted;}; // LJMonoclass LJMonoDraftMode : public GrayMode{public: LJMonoDraftMode ();}; // LJMonoDraftModeclass LJMonoNormalMode : public GrayMode{public: LJMonoNormalMode ();}; // LJMonoNormalModeclass LJMonoBestMode : public GrayMode{public: LJMonoBestMode ();}; // LJMonoBestMode#ifdef APDK_LJMONO//! LJMonoProxy/*!******************************************************************************/class LJMonoProxy : public PrinterProxy{public: LJMonoProxy() : PrinterProxy( "Mono Laser", // family name "HP LaserJet\0" // models "hp LaserJet\0" // LaserJet#ifdef APDK_MLC_PRINTER#endif ) {m_iPrinterType = eLJMono;} inline Printer* CreatePrinter(SystemServices* pSS) const { return new LJMono(pSS); } inline PRINTER_TYPE GetPrinterType() const { return eLJMono;} inline unsigned int GetModelBit() const { return 0x40;}};#endifAPDK_END_NAMESPACE#endif //APDK_LJMono_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -