mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 00:04:04 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63941 954022d7-b5bf-4e40-9824-e11837661b57
53 lines
879 B
C++
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
|