Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

39 lines
835 B
C++

#ifndef HWPXFILE_H
#define HWPXFILE_H
#include "HWPSection.h"
#include "HwpFileHeader.h"
#include "../../OfficeUtils/src/ZipFolder.h"
namespace HWP
{
class CHWPXFile
{
HWP_STRING m_sFileName;
CZipFolderMemory *m_pZipFolder;
CHwpFileHeader m_oFileHeader;
CHWPDocInfo m_oDocInfo;
VECTOR<CHWPSection*> m_arSections;
public:
CHWPXFile(const HWP_STRING& sFileName);
~CHWPXFile();
VECTOR<const CHWPSection*> GetSections() const;
const CHWPDocInfo* GetDocInfo() const;
bool GetChildStream(const HWP_STRING& sFileName, CHWPStream& oBuffer);
bool Detect();
bool Open();
void Close();
private:
VECTOR<HWP_STRING> GetPathsToSections() const;
bool GetFileHeader();
bool ReadDocInfo();
bool ReadSection(const HWP_STRING& sName);
bool GetDocument(const HWP_STRING& sEntryName, CXMLReader& oReader);
};
}
#endif // HWPXFILE_H