mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
(1.0.0.104): XlsxSerializerCom
Default свойства row на открытие и сохранение. git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@54293 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
ac954a104a
commit
32b075d9c0
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user