Files
core/ASCOfficeXlsFile2/source/XlsFormat/Logic/CompositeObject.cpp
Elen.Subbotina cf9d55e913 XlsFile2 bug 13912
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63941 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:21:15 +03:00

53 lines
879 B
C++

#include "CompositeObject.h"
#include "BinProcessor.h"
namespace XLS
{;
CompositeObject::CompositeObject()
{
}
CompositeObject::~CompositeObject()
{
}
const bool CompositeObject::read(CFStreamCacheReader& reader, BaseObject* parent, const bool is_mandatory)
{
BinReaderProcessor reader_proc(reader, this, is_mandatory);
if(loadContentRead(reader_proc))
{
parent->add_child(this->clone());
return true;
}
return false;
}
const bool CompositeObject::loadContentRead(BinReaderProcessor& proc)
{
return loadContent(proc);
}
const bool ABNFParenthesis::read(CFStreamCacheReader& reader, BaseObject* parent, const bool is_mandatory)
{
BinReaderProcessor reader_proc(reader, parent, is_mandatory);
bool res = loadContentRead(reader_proc);
//parent->add_child(this);
return res;
};
} // namespace XLS