EasyPrinterV1.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /************************************************************************/
  2. /* Copyright (C), 2016-2020, [Jeff], 保留所有权利;
  3. /* 模 块 名:;
  4. /* 描 述:;
  5. /*
  6. /* 版 本:[V];
  7. /* 作 者:[Jeff];
  8. /* 日 期:[3/17/2017];
  9. /*
  10. /*
  11. /* 注 意:;
  12. /*
  13. /* 修改记录:[Jeff];
  14. /* 修改日期:;
  15. /* 修改版本:;
  16. /* 修改内容:;
  17. /************************************************************************/
  18. #pragma once
  19. #include "EasyPrinter.h"
  20. class CEasyPrinterV1:public CEasyPrinter
  21. {
  22. public:
  23. CEasyPrinterV1();
  24. ~CEasyPrinterV1();
  25. void TextDownwards(IN TString strText, IN const INT& nRectWide, OUT vector<TString>& vtSubText);
  26. INT DrawRectange(IN CRect rc, IN INT nLineWide, IN INT leftLineType, IN INT topLineType, IN INT rightLineType, IN INT bottomLineType);
  27. void DrawText(IN TString strText, IN CRect rcText, IN INT nTextWide, IN INT nAlignType = 0);
  28. void CalcPrinterCell(IN STPrintCell &PrintCell);
  29. void CellTBTypesetting();// TB=Top & Bottom;
  30. void CellBBTypesetting();// BB=Bottom & Bottom;
  31. INT DrawCell(IN STPrintCell& PrtCell);
  32. void AutoChangePage();
  33. void PrintChangePage();
  34. public:
  35. BOOL PrintByJson();
  36. };