Files
core/HwpFile/HwpDoc/Paragraph/CtrlShapeArc.cpp
2024-12-10 22:19:37 +03:00

28 lines
790 B
C++

#include "CtrlShapeArc.h"
namespace HWP
{
CCtrlShapeArc::CCtrlShapeArc(const STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion)
: CCtrlGeneralShape(sCtrlID, nSize, oBuffer, nOff, nVersion)
{}
int CCtrlShapeArc::ParseElement(CCtrlShapeArc& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion)
{
oObj.m_eType = GetArcType(oBuffer.ReadByte());
oBuffer.ReadInt(oObj.m_nCenterX);
oBuffer.ReadInt(oObj.m_nCenterY);
oBuffer.ReadInt(oObj.m_nAxixX1);
oBuffer.ReadInt(oObj.m_nAxixY1);
oBuffer.ReadInt(oObj.m_nAxixX2);
oBuffer.ReadInt(oObj.m_nAxixY2);
return nSize;
}
int CCtrlShapeArc::ParseCtrl(CCtrlShapeArc& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion)
{
return CCtrlGeneralShape::ParseCtrl(oObj, nSize, oBuffer, nOff, nVersion);
}
}