mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 01:52:24 +08:00
24 lines
570 B
C++
24 lines
570 B
C++
#include "HWPRecordFormObject.h"
|
|
|
|
namespace HWP
|
|
{
|
|
CHWPRecordFormObject::CHWPRecordFormObject(int nTagNum, int nLevel, int nSize)
|
|
: CHWPRecord(nTagNum, nLevel, nSize)
|
|
{}
|
|
|
|
int CHWPRecordFormObject::ParseCtrl(CCtrlForm& oForm, int nSize, CHWPStream& oBuffer, int nOff, int nVersion)
|
|
{
|
|
oBuffer.SavePosition();
|
|
|
|
oBuffer.Skip(4); // tbp+
|
|
oBuffer.Skip(4); // tbp+
|
|
oBuffer.Skip(4); // String length?
|
|
|
|
short shLen = oBuffer.ReadShort() * 2;
|
|
oBuffer.Skip(shLen);
|
|
// oBuffer.ReadString(m_sFormStr, EStringCharacter::UTF16);
|
|
|
|
return oBuffer.GetDistanceToLastPos(true);
|
|
}
|
|
}
|