123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /************************************************************************/
- /* Copyright (C), 2016-2020, [Jeff], 保留所有权利;
- /* 模 块 名:;
- /* 描 述:;
- /*
- /* 版 本:[V];
- /* 作 者:[Jeff];
- /* 日 期:[3/17/2017];
- /*
- /*
- /* 注 意:;
- /*
- /* 修改记录:[Jeff];
- /* 修改日期:;
- /* 修改版本:;
- /* 修改内容:;
- /************************************************************************/
- #pragma once
- #include "EasyPrinter.h"
- class CEasyPrinterV2:public CEasyPrinter
- {
- public:
- CEasyPrinterV2();
- ~CEasyPrinterV2();
- void Set72DPITextFont(IN INT nTextFontSize, IN BOOL bBold, IN BOOL bItalic, IN TString strTextFontName);
- SIZE GetFontSize();
- void TextDownwards(IN TString strText, IN const INT& nRectWide, OUT vector<TString>& vtSubText);
- INT DrawRectange(IN CRect rc, IN INT nLineWide, IN INT leftLineType, IN INT topLineType, IN INT rightLineType, IN INT bottomLineType);
- void DrawText(IN TString strText, IN CRect rcText, IN INT nTextWide, IN INT nAlignType = 0);
- void CalcPrinterCell(IN STPrintCell &PrintCell);
- void CellTBTypesetting();// TB=Top & Bottom;
- void CellBBTypesetting();// BB=Bottom & Bottom;
- INT DrawCell(IN STPrintCell& PrtCell);
- void AutoChangePage();
- void PrintChangePage();
- CDC &GetPrinterDC() { return m_dcPrinter; }
- public:
- BOOL PrintByJson();
- };
|