Commit 6b18f22e authored by Oleg.Korshul's avatar Oleg.Korshul

новый формат изменений

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59581 954022d7-b5bf-4e40-9824-e11837661b57
parent a5baf498
......@@ -7780,13 +7780,12 @@ window["asc_docs_api"].prototype["asc_nativeApplyChanges2"] = function(data, isF
var stream = new FT_Stream2(data, data.length);
stream.obj = null;
var Loader = { Reader : stream, Reader2 : null };
var Loader = { Reader : stream };
var _color = new CDocumentColor( 191, 255, 199 );
// Применяем изменения, пока они есть
var _count = Loader.Reader.GetLong();
//console.log("count:" + _count);
var _pos = 4;
for (var i = 0; i < _count; i++)
{
......@@ -7795,15 +7794,14 @@ window["asc_docs_api"].prototype["asc_nativeApplyChanges2"] = function(data, isF
if (!window["native"]["CheckNextChange"]())
break;
}
var _id = Loader.Reader.GetLong();
var _len = Loader.Reader.GetLong();
//console.log("change: [" + _id + ", " + _len + "]");
_pos += 4;
stream.size = _pos + _len;
var _id = Loader.Reader.GetString2();
var _read_pos = Loader.Reader.GetCurPos();
_pos += 8;
stream.size = _pos + _len;
var Type = Loader.Reader.GetLong();
var Class = null;
......@@ -7812,9 +7810,10 @@ window["asc_docs_api"].prototype["asc_nativeApplyChanges2"] = function(data, isF
Class = editor.WordControl.m_oLogicDocument.HdrFtr;
}
else
Class = g_oTableId.Get_ById( "" + _id );
Class = g_oTableId.Get_ById( _id );
stream.Seek2(_pos);
stream.Seek(_read_pos);
stream.Seek2(_read_pos);
if ( null != Class )
Class.Load_Changes( Loader.Reader, Loader.Reader2, _color );
......
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