Fixed bugs in reading hwp format and added test example

This commit is contained in:
Green
2024-12-18 15:13:43 +03:00
parent 328e379ec2
commit 4a110d68c1
43 changed files with 505 additions and 324 deletions

28
HwpFile/HWPFile.cpp Normal file
View File

@ -0,0 +1,28 @@
#include "HWPFile.h"
#include "HwpDoc/HWPFile_Private.h"
#include "../DesktopEditor/common/File.h"
CHWPFile::CHWPFile(const std::wstring& wsFileName)
: m_pInternal(new HWP::CHWPFile_Private(wsFileName))
{}
CHWPFile::~CHWPFile()
{
if (nullptr != m_pInternal)
delete m_pInternal;
}
bool CHWPFile::Open()
{
if (nullptr == m_pInternal)
return false;
return m_pInternal->Open();
}
void CHWPFile::Close()
{
if (nullptr != m_pInternal)
m_pInternal->Close();
}