mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-10 23:03:14 +08:00
40 lines
929 B
C++
40 lines
929 B
C++
#include "MasterTextPropAtom.h"
|
|
|
|
|
|
CRecordMasterTextPropAtom::SMasterTextPropRun::SMasterTextPropRun()
|
|
{
|
|
|
|
}
|
|
|
|
CRecordMasterTextPropAtom::SMasterTextPropRun::SMasterTextPropRun(const SMasterTextPropRun &oSrc)
|
|
{
|
|
lCount = oSrc.lCount;
|
|
lIndentLevel = oSrc.lIndentLevel;
|
|
}
|
|
|
|
CRecordMasterTextPropAtom::SMasterTextPropRun &CRecordMasterTextPropAtom::SMasterTextPropRun::operator=(const SMasterTextPropRun &oSrc)
|
|
{
|
|
lCount = oSrc.lCount;
|
|
lIndentLevel = oSrc.lIndentLevel;
|
|
|
|
return *this;
|
|
}
|
|
|
|
void CRecordMasterTextPropAtom::ReadFromStream(SRecordHeader &oHeader, POLE::Stream *pStream)
|
|
{
|
|
m_oHeader = oHeader;
|
|
m_arrProps.clear();
|
|
|
|
size_t nCount = m_oHeader.RecLen / 6;
|
|
while (nCount != 0)
|
|
{
|
|
--nCount;
|
|
|
|
SMasterTextPropRun oRun;
|
|
oRun.lCount = StreamUtils::ReadDWORD(pStream);
|
|
oRun.lIndentLevel = StreamUtils::ReadWORD(pStream);
|
|
|
|
m_arrProps.push_back(oRun);
|
|
}
|
|
}
|