/******************************************************************** created: 2018/03/27 author: wangyuanyuan@vishee.com edit_by: description: 生成训练报告 *********************************************************************/ #ifndef CREATREPORT_H #define CREATEREPORT_H #include "WordOperate.h" #include "global.h" class CreateReport { public: CreateReport(); ~CreateReport(); public: void GetReport(REPORT_INFO& reportInfo,QStringList& strImagePathList); private: WordOperate *m_wordOperate; QString hospitalName; bool CreateWord();//创建word bool InitWord();//初始化word void ReleaseWord();//释放word void SetPageMargin();//设置边距 void DrawTitle();//画标题 void DrawPatientInfo(); void DrawTable(); void DrawMark(); void DrawExplain(); void DrawPic(); QString titleFontName; QString infoFontName; QString tableFontName; QString wordFontName; double titleFontSize; double infoFontSize; double tableFontSize; double wordFontSize; REPORT_INFO _reportInfo; QStringList _strImagePathList; }; #endif // CREATEREPORT_H