MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / documentToHtmlFile

Method documentToHtmlFile

src/database/WizDatabase.cpp:4682–4696  ·  view source on GitHub ↗

! Unzip \a document to a given folder of \a strPath. */

Source from the content-addressed store, hash-verified

4680 Unzip \a document to a given folder of \a strPath.
4681*/
4682bool 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
4698bool WizDatabase::exportToHtmlFile(const WIZDOCUMENTDATA& document, const QString& strIndexFileName)
4699{

Callers 4

exportNoteMethod · 0.80
SaveToFolderMethod · 0.80

Calls 2

WizEnsurePathExistsFunction · 0.85
WizPathFileExistsFunction · 0.85

Tested by

no test coverage detected