mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 07:41:12 +08:00
Added .cpp files for all records
This commit is contained in:
39
MsBinaryFile/PptFile/Records/MasterTextPropAtom.cpp
Normal file
39
MsBinaryFile/PptFile/Records/MasterTextPropAtom.cpp
Normal file
@ -0,0 +1,39 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user