Files
core/HwpFile/HwpDoc/Conversion/WriterContext.h
2025-01-17 02:42:21 +03:00

49 lines
1.4 KiB
C++

#ifndef WRITERCONTEXT_H
#define WRITERCONTEXT_H
#include "../HanType.h"
#include "../HWPFile_Private.h"
#include "../HWPXFile_Private.h"
#include "../HWPElements/HWPRecordParaShape.h"
#include "../HWPElements/HWPRecordStyle.h"
#include "../HWPElements/HWPRecordCharShape.h"
#include "../HWPElements/HWPRecordNumbering.h"
#include "../HWPElements/HWPRecordBullet.h"
#include "../HWPElements/HwpRecordTabDef.h"
namespace HWP
{
class CWriterContext
{
EHanType m_eType;
CHWPFile_Private* m_pHWPFile;
CHWPXFile_Private* m_pHWPXFile;
int m_nVersion;
public:
CWriterContext();
~CWriterContext();
VECTOR<const CHWPSection*> GetSections();
static EHanType DetectHancom(const HWP_STRING& sPathToFile);
bool Detect();
bool Open(const HWP_STRING& sPathToFile, EHanType eHanType);
void Close();
const CHWPDocInfo* GetDocInfo();
const CHWPRecordBorderFill* GetBorderFill(short shId);
const CHWPRecordParaShape* GetParaShape(int nId);
const CHWPRecordStyle* GetParaStyle(short shId);
const CHWPRecordCharShape* GetCharShape(int nId);
const CHWPRecordNumbering* GetNumbering(short shId);
const CHWPRecordBullet* GetBullet(short shId);
const CHwpRecordTabDef* GetTabDef(short shId);
HWP_STRING GetBinFilename(const HWP_STRING& sId);
bool GetBinBytes(const HWP_STRING& sId, CHWPStream& oBuffer, HWP_STRING& sFormat);
HWP_STRING GetBinFormat(const HWP_STRING& sId);
};
}
#endif // WRITERCONTEXT_H