Commit d6793659 authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64122 954022d7-b5bf-4e40-9824-e11837661b57
parent 49fcce50
#include "Property.h"
#include <Binary/CFRecord.h>
namespace OSHARED
{
XLS::BiffStructurePtr Property::clone()
{
return XLS::BiffStructurePtr(new Property(*this));
}
void Property::store(XLS::CFRecord& record)
{
#pragma message("####################### Property record has no BiffStructure::store() implemented")
Log::error(" Error!!! Property record has no BiffStructure::store() implemented.");
//record << something;
}
void Property::load(XLS::CFRecord& record)
{
record >> keyIndex >> valueIndex;
}
} // namespace OSHARED
#pragma once
#include "BiffStructure.h"
namespace OSHARED
{
class CFRecord;
class Property : public XLS::BiffStructure
{
BASE_STRUCTURE_DEFINE_CLASS_NAME(Property)
public:
XLS::BiffStructurePtr clone();
static const XLS::ElementType type = XLS::typeProperty;
virtual void load(XLS::CFRecord& record);
virtual void store(XLS::CFRecord& record);
unsigned int keyIndex;
unsigned int valueIndex;
};
} // namespace OSHARED
#include "CodePage.h"
#include <Binary/CFStream.h>
namespace OLEPS
{
CodePage::CodePage(const unsigned short value_type, XLS::CFStreamPtr stream)
{
//ASSERT(value_type == Property::VT_I2);
*stream >> code_page;
}
const unsigned short CodePage::GetCodePage()
{
return code_page;
}
} // namespace OLEPS
#pragma once
#include "Property.h"
#include <Binary/BinSmartPointers.h>
namespace OLEPS
{
class CodePage : public Property
{
public:
CodePage(const unsigned short value_type, XLS::CFStreamPtr stream);
static const unsigned int Type = 0x0001;
static const unsigned short DefaultCodePage = 1250;
const unsigned short GetCodePage();
private:
unsigned short code_page;
};
typedef boost::shared_ptr<CodePage> CodePagePropertyPtr;
} // namespace OLEPS
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment