Files
core/MsBinaryFile/PptFile/Records/MasterTextPropAtom.cpp
2022-11-28 17:37:12 +03:00

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);
}
}