Commit 9ed3af2d authored by Sergey Konovalov's avatar Sergey Konovalov

tab leader

parent f49dd938
......@@ -237,7 +237,8 @@ var c_oSerProp_pPrType = {
SectPr: 31,
numPr_Ins: 32,
pPrChange: 33,
outlineLvl: 34
outlineLvl: 34,
Tab_Item_Leader: 35
};
var c_oSerProp_rPrType = {
Bold:0,
......@@ -1849,6 +1850,10 @@ function Binary_pPrWriter(memory, oNumIdMap, oBinaryHeaderFooterTableWriter, sav
this.memory.WriteByte(c_oSerProp_pPrType.Tab_Item_Pos);
this.memory.WriteByte(c_oSerPropLenType.Double);
this.memory.WriteDouble(TabItem.Pos);
this.memory.WriteByte(c_oSerProp_pPrType.Tab_Item_Leader);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteByte(TabItem.Leader);
};
this.WriteNumPr = function(id, lvl)
{
......@@ -7536,7 +7541,7 @@ function Binary_pPrReader(doc, oReadResult, stream)
this.ReadTabItem = function(type, length, tab)
{
var res = c_oSerConstants.ReadOk;
if(c_oSerProp_pPrType.Tab_Item_Val == type)
if(c_oSerProp_pPrType.Tab_Item_Val === type)
{
switch(this.stream.GetUChar())
{
......@@ -7546,8 +7551,10 @@ function Binary_pPrReader(doc, oReadResult, stream)
default : tab.Value = tab_Left;
}
}
else if(c_oSerProp_pPrType.Tab_Item_Pos == type)
else if(c_oSerProp_pPrType.Tab_Item_Pos === type)
tab.Pos = this.bcr.ReadDouble();
else if(c_oSerProp_pPrType.Tab_Item_Leader === type)
tab.Leader = this.bcr.GetUChar();
else
res = c_oSerConstants.ReadUnknown;
return res;
......
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