Commit 32b075d9 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander Trofimov

(1.0.0.104): XlsxSerializerCom

Default свойства row на открытие и сохранение.

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@54293 954022d7-b5bf-4e40-9824-e11837661b57
parent ac954a10
......@@ -218,7 +218,9 @@ namespace BinXlsxRW
{
DefaultColWidth = 0,
DefaultRowHeight = 1,
BaseColWidth = 2
BaseColWidth = 2,
CustomHeight = 3,
ZeroHeight = 4
};}
namespace c_oSerRowTypes{enum c_oSerRowTypes
{
......
......@@ -2485,6 +2485,20 @@ namespace BinXlsxRW {
m_oBcw.m_oStream.WriteByte(c_oSerPropLenType::Long);
m_oBcw.m_oStream.WriteLong(oSheetFormatPr.m_oBaseColWidth->GetValue());
}
//CustomHeight
if(oSheetFormatPr.m_oCustomHeight.IsInit())
{
m_oBcw.m_oStream.WriteByte(c_oSerSheetFormatPrTypes::CustomHeight);
m_oBcw.m_oStream.WriteByte(c_oSerPropLenType::Byte);
m_oBcw.m_oStream.WriteByte(oSheetFormatPr.m_oCustomHeight->ToBool());
}
//ZeroHeight
if(oSheetFormatPr.m_oZeroHeight.IsInit())
{
m_oBcw.m_oStream.WriteByte(c_oSerSheetFormatPrTypes::ZeroHeight);
m_oBcw.m_oStream.WriteByte(c_oSerPropLenType::Byte);
m_oBcw.m_oStream.WriteByte(oSheetFormatPr.m_oZeroHeight->ToBool());
}
}
void WritePageMargins(const OOX::Spreadsheet::CPageMargins& oPageMargins)
{
......
......@@ -2831,6 +2831,16 @@ namespace BinXlsxRW {
pSheetFormatPr->m_oBaseColWidth.Init();
pSheetFormatPr->m_oBaseColWidth->SetValue(m_oBufferedStream.ReadLong());
}
else if (c_oSerSheetFormatPrTypes::CustomHeight == type)
{
pSheetFormatPr->m_oCustomHeight.Init();
pSheetFormatPr->m_oCustomHeight->FromBool(m_oBufferedStream.ReadBool());
}
else if (c_oSerSheetFormatPrTypes::ZeroHeight == type)
{
pSheetFormatPr->m_oZeroHeight.Init();
pSheetFormatPr->m_oZeroHeight->FromBool(m_oBufferedStream.ReadBool());
}
else
res = c_oSerConstants::ReadUnknown;
return res;
......
......@@ -2,6 +2,6 @@
//1
//0
//0
//102
#define INTVER 1,0,0,102
#define STRVER "1,0,0,102\0"
//104
#define INTVER 1,0,0,104
#define STRVER "1,0,0,104\0"
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