! Unzip \a document to a given folder of \a strPath. */
| 4680 | Unzip \a document to a given folder of \a strPath. |
| 4681 | */ |
| 4682 | bool WizDatabase::documentToHtmlFile(const WIZDOCUMENTDATA& document, |
| 4683 | const QString& strPath) |
| 4684 | { |
| 4685 | QMutexLocker locker(&m_mtxTempFile); |
| 4686 | // |
| 4687 | // |
| 4688 | //避免编辑的时候临时文件被删除导致图片等丢失 |
| 4689 | //::WizDeleteAllFilesInFolder(strPath); |
| 4690 | ::WizEnsurePathExists(strPath); |
| 4691 | if (!extractZiwFileToFolder(document, strPath)) |
| 4692 | return false; |
| 4693 | |
| 4694 | QString strTempHtmlFileName = strPath + "index.html"; |
| 4695 | return WizPathFileExists(strTempHtmlFileName); |
| 4696 | } |
| 4697 | |
| 4698 | bool WizDatabase::exportToHtmlFile(const WIZDOCUMENTDATA& document, const QString& strIndexFileName) |
| 4699 | { |
no test coverage detected