mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 02:44:13 +08:00
27 lines
690 B
C++
27 lines
690 B
C++
#include "TimeConditionContainer.h"
|
|
|
|
|
|
void CRecordTimeConditionContainer::ReadFromStream(SRecordHeader &oHeader, POLE::Stream *pStream)
|
|
{
|
|
m_oHeader = oHeader;
|
|
|
|
LONG lPos = 0; StreamUtils::StreamPosition ( lPos, pStream );
|
|
|
|
SRecordHeader header;
|
|
|
|
if ( header.ReadFromStream(pStream) )
|
|
{
|
|
m_oTimeConditionAtom.ReadFromStream ( header, pStream );
|
|
|
|
if ( TL_TOT_VisualElement == m_oTimeConditionAtom.m_TriggerObject )
|
|
{
|
|
if ( header.ReadFromStream(pStream) )
|
|
{
|
|
m_oVisualElement.ReadFromStream ( header, pStream );
|
|
}
|
|
}
|
|
}
|
|
|
|
StreamUtils::StreamSeek ( lPos + m_oHeader.RecLen, pStream );
|
|
}
|