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