ExportReportManager.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef EXPORTREPORTMANAGER_H
  2. # define EXPORTREPORTMANAGER_H
  3. # include <QObject>
  4. class ProjectInfo;
  5. class QWord;
  6. class ExportReportManager : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit ExportReportManager(QObject *parent = nullptr);
  11. ~ExportReportManager();
  12. ProjectInfo *proj() const;
  13. void setProj(ProjectInfo *proj);
  14. int evalType() const;
  15. void setEvalType(int type);
  16. bool exportReport();
  17. bool createWord();
  18. void configWord();
  19. void addCover(); // 封面
  20. void insertWraps(int count = 1); // 换行
  21. signals:
  22. private:
  23. ProjectInfo *m_proj = nullptr; // 项目
  24. int m_evalType = 0; // 报告评估类型
  25. QWord *m_word = nullptr;
  26. };
  27. #endif // EXPORTREPORTMANAGER_H
  28. /**
  29. 【中文字号】 【英文字号】 【毫米】 【像素】
  30. 1英寸 72pt 25.30mm 95.6px
  31. 大特号 63pt 22.14mm 83.7px
  32. 特号 54pt 18.97mm 71.7px
  33. 初号 42pt 14.82mm 56px
  34. 小初 36pt 12.70mm 48px
  35. 一号 26pt 9.17mm 34.7px
  36. 小一 24pt 8.47mm 32px
  37. 二号 22pt 7.76mm 29.3px
  38. 小二 18pt 6.35mm 24px
  39. 三号 16pt 5.64mm 21.3px
  40. 小三 15pt 5.29mm 20px
  41. 四号 14pt 4.94mm 18.7px
  42. 小四 12pt 4.23mm 16px
  43. 五号 10.5pt 3.70mm 14px
  44. 小五 9pt 3.18mm 12px
  45. 六号 7.5pt 2.56mm 10px
  46. 小六 6.5pt 2.29mm 8.7px
  47. 七号 5.5pt 1.94mm 7.3px
  48. 八号 5pt 1.76mm 6.7px
  49. * 2023-12-12 by chengxr
  50. */