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

30 lines
832 B
C++

#include "CtrlShapeVideo.h"
namespace HWP
{
CCtrlShapeVideo::CCtrlShapeVideo(const STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion)
: CCtrlGeneralShape(sCtrlID, nSize, oBuffer, nOff, nVersion)
{}
int CCtrlShapeVideo::ParseElement(CCtrlShapeVideo& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion)
{
oBuffer.ReadInt(oObj.m_nVideoType);
if (0 == oObj.m_nVideoType)
oBuffer.ReadShort(oObj.m_shVidoeBinID);
else if (1 == oObj.m_nVideoType)
oBuffer.ReadString(oObj.m_sObjDesc);
short m_sBinID;
oBuffer.ReadShort(m_sBinID);
oObj.m_sThumnailBinID = std::to_string(m_sBinID - 1);
return nSize;
}
int CCtrlShapeVideo::ParseCtrl(CCtrlShapeVideo& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion)
{
return CCtrlObjElement::ParseCtrl(oObj, nSize, oBuffer, nOff, nVersion);
}
}