mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 02:44:13 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58816 954022d7-b5bf-4e40-9824-e11837661b57
42 lines
896 B
C++
42 lines
896 B
C++
#include "precompiled_xls.h"
|
|
#include "CFStreamCacheWriter.h"
|
|
#include "CFRecord.h"
|
|
#include "CFStream.h"
|
|
#include <Logic/Biff_records/BOF.h>
|
|
//#include <Exception/RequestedRecordNotFound.h>
|
|
|
|
|
|
namespace XLS
|
|
{;
|
|
|
|
|
|
CFStreamCacheWriter::CFStreamCacheWriter(CFStreamPtr stream, GlobalWorkbookInfoPtr global_info)
|
|
: stream_(stream),
|
|
global_info_(global_info)
|
|
{
|
|
}
|
|
|
|
|
|
CFStreamCacheWriter::~CFStreamCacheWriter()
|
|
{
|
|
}
|
|
|
|
|
|
// Saves the next CFRecord to the CFStream or caches for later saving.
|
|
// Returns whether the record was saved to file or stored for later saving
|
|
bool CFStreamCacheWriter::storeNextRecord(CFRecordPtr record)
|
|
{
|
|
record->save(stream_);
|
|
return true;
|
|
}
|
|
|
|
|
|
// Actual transporting record to the CFStream and then to IStream
|
|
const size_t CFStreamCacheWriter::writeToStream(const size_t num_of_records_min_necessary)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
} // namespace XLS
|