Files
core/HwpFile/HwpDoc/Paragraph/CtrlShapeArc.cpp
2024-12-06 15:18:32 +03:00

28 lines
795 B
C++

#include "CtrlShapeArc.h"
namespace HWP
{
CCtrlShapeArc::CCtrlShapeArc(const std::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);
}
}