Commit dd61d3ee authored by konovalovsergey's avatar konovalovsergey

freeze pane m_oState revert to string

parent 3a44f872
...@@ -268,9 +268,9 @@ var c_oAscCanChangeColWidth = { ...@@ -268,9 +268,9 @@ var c_oAscCanChangeColWidth = {
}; };
var c_oAscPaneState = { var c_oAscPaneState = {
Frozen: 0, Frozen: "frozen",
FrozenSplit: 1, FrozenSplit: "frozenSplit",
Split: 2 Split: "split"
}; };
var c_oAscFindLookIn = { var c_oAscFindLookIn = {
......
...@@ -630,11 +630,10 @@ ...@@ -630,11 +630,10 @@
/** @enum */ /** @enum */
var c_oSer_Pane = { var c_oSer_Pane = {
ActivePane : 0, ActivePane : 0,
//State : 1, State : 1,
TopLeftCell : 2, TopLeftCell : 2,
XSplit : 3, XSplit : 3,
YSplit : 4, YSplit : 4
State : 5
}; };
/** @enum */ /** @enum */
var c_oSer_Selection = { var c_oSer_Selection = {
...@@ -2653,7 +2652,7 @@ ...@@ -2653,7 +2652,7 @@
var oThis = this; var oThis = this;
//this.bs.WriteItem(c_oSer_Pane.ActivePane, function(){oThis.memory.WriteByte();}); //this.bs.WriteItem(c_oSer_Pane.ActivePane, function(){oThis.memory.WriteByte();});
// Всегда пишем Frozen // Всегда пишем Frozen
this.bs.WriteItem(c_oSer_Pane.State, function(){oThis.memory.WriteByte(AscCommonExcel.c_oAscPaneState.Frozen);}); this.bs.WriteItem(c_oSer_Pane.State, function(){oThis.memory.WriteString3(AscCommonExcel.c_oAscPaneState.Frozen);});
this.bs.WriteItem(c_oSer_Pane.TopLeftCell, function(){oThis.memory.WriteString3(oPane.topLeftFrozenCell.getID());}); this.bs.WriteItem(c_oSer_Pane.TopLeftCell, function(){oThis.memory.WriteString3(oPane.topLeftFrozenCell.getID());});
var col = oPane.topLeftFrozenCell.getCol0(); var col = oPane.topLeftFrozenCell.getCol0();
...@@ -6589,7 +6588,7 @@ ...@@ -6589,7 +6588,7 @@
if (c_oSer_Pane.ActivePane === type) if (c_oSer_Pane.ActivePane === type)
this.stream.GetUChar(); this.stream.GetUChar();
else if (c_oSer_Pane.State === type) else if (c_oSer_Pane.State === type)
oPane.state = this.stream.GetUChar(); oPane.state = this.stream.GetString2LE(length);
else if (c_oSer_Pane.TopLeftCell === type) else if (c_oSer_Pane.TopLeftCell === type)
oPane.topLeftCell = this.stream.GetString2LE(length); oPane.topLeftCell = this.stream.GetString2LE(length);
else if (c_oSer_Pane.XSplit === type) else if (c_oSer_Pane.XSplit === type)
......
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