Files
core/ASCOfficePPTFile/PPTFormatLib/Records/MasterTextPropAtom.h
Elen.Subbotina 7d511bb5c6 PPTFormat
удален лишний код, фиксы ошибок

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@65494 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:40:07 +03:00

61 lines
1.1 KiB
C++

#pragma once
#include "../Reader/Records.h"
class CRecordMasterTextPropAtom : public CUnknownRecord
{
public:
struct SMasterTextPropRun
{
DWORD lCount;
WORD lIndentLevel;
SMasterTextPropRun()
{
lCount = 0;
lIndentLevel = 0;
}
SMasterTextPropRun(const SMasterTextPropRun& oSrc)
{
lCount = oSrc.lCount;
lIndentLevel = oSrc.lIndentLevel;
}
SMasterTextPropRun& operator=(const SMasterTextPropRun& oSrc)
{
lCount = oSrc.lCount;
lIndentLevel = oSrc.lIndentLevel;
return *this;
}
};
std::vector<SMasterTextPropRun> m_arrProps;
CRecordMasterTextPropAtom()
{
}
~CRecordMasterTextPropAtom()
{
}
virtual void 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);
}
}
};