mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 02:44:13 +08:00
28 lines
790 B
C++
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);
|
|
}
|
|
|
|
}
|