Commit 7ae87a2e authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

новый сборщик. полная реализация

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59515 954022d7-b5bf-4e40-9824-e11837661b57
parent c3753ea9
...@@ -321,6 +321,7 @@ function NativeApplyChangesData(data, isFull) ...@@ -321,6 +321,7 @@ function NativeApplyChangesData(data, isFull)
} }
else else
{ {
_api.asc_nativeApplyChanges2(data, isFull);
} }
} }
......
...@@ -3472,7 +3472,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -3472,7 +3472,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
var oBinaryFileWriter = new Asc.BinaryFileWriter(this.wbModel); var oBinaryFileWriter = new Asc.BinaryFileWriter(this.wbModel);
oBinaryFileWriter.Write2(); oBinaryFileWriter.Write2();
var _header = c_oSerFormat.Signature + ";v" + c_oSerFormat.Version + ";" + oBinaryFileWriter.Memory.GetCurPosition() + ";"; var _header = oBinaryFileWriter.WriteFileHeader(oBinaryFileWriter.Memory.GetCurPosition());
window["native"]["Save_End"](_header, oBinaryFileWriter.Memory.GetCurPosition()); window["native"]["Save_End"](_header, oBinaryFileWriter.Memory.GetCurPosition());
return oBinaryFileWriter.Memory.ImData.data; return oBinaryFileWriter.Memory.ImData.data;
......
...@@ -6713,6 +6713,8 @@ ...@@ -6713,6 +6713,8 @@
this.ReadData = function(data, wb) this.ReadData = function(data, wb)
{ {
History.TurnOff(); History.TurnOff();
this.stream = new FT_Stream2(data, data.length);
this.ReadFile(wb); this.ReadFile(wb);
ReadDefCellStyles(wb, wb.CellStyles.DefaultStyles); ReadDefCellStyles(wb, wb.CellStyles.DefaultStyles);
......
...@@ -1983,10 +1983,11 @@ Workbook.prototype.DeserializeHistoryNative = function(oRedoObjectParam, data, i ...@@ -1983,10 +1983,11 @@ Workbook.prototype.DeserializeHistoryNative = function(oRedoObjectParam, data, i
break; break;
} }
var _len = Loader.Reader.GetLong(); var _len = stream.GetLong();
_pos += 4; _pos += 4;
stream.size = _pos + _len; stream.size = _pos + _len;
stream.Seek(_pos);
stream.Seek2(_pos); stream.Seek2(_pos);
var item = new UndoRedoItemSerializable(); var item = new UndoRedoItemSerializable();
......
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