Add fonts to OnlyOffice apps

master
yflory 3 years ago
parent 71124b7d15
commit f0e5128b3c

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *
@ -2363,6 +2363,6 @@ prot.asc_beforeInsertSlicer;prot["asc_insertSlicer"]=prot.asc_insertSlicer;prot[
function CSpellchecker(settings){this.api=settings.api;this.useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")this.useWasm=true;this.enginePath="./spell/";if(settings&&settings.enginePath){this.enginePath=settings.enginePath;if(this.enginePath.substring(this.enginePath.length-1)!="/")this.enginePath+="/"}var dictionariesPath= function CSpellchecker(settings){this.api=settings.api;this.useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")this.useWasm=true;this.enginePath="./spell/";if(settings&&settings.enginePath){this.enginePath=settings.enginePath;if(this.enginePath.substring(this.enginePath.length-1)!="/")this.enginePath+="/"}var dictionariesPath=
"./../dictionaries";if(settings&&settings.dictionariesPath){dictionariesPath=settings.dictionariesPath;if(dictionariesPath.substring(dictionariesPath.length-1)=="/")dictionariesPath=dictionariesPath.substr(0,dictionariesPath.length-1)}this.isUseSharedWorker=!!window.SharedWorker;if(this.isUseSharedWorker&&false===settings.useShared)this.isUseSharedWorker=false;this.worker=null;this.languages={1068:"az_Latn_AZ",1026:"bg_BG",1027:"ca_ES",2051:"ca_ES_valencia",1029:"cs_CZ",1030:"da_DK",3079:"de_AT", "./../dictionaries";if(settings&&settings.dictionariesPath){dictionariesPath=settings.dictionariesPath;if(dictionariesPath.substring(dictionariesPath.length-1)=="/")dictionariesPath=dictionariesPath.substr(0,dictionariesPath.length-1)}this.isUseSharedWorker=!!window.SharedWorker;if(this.isUseSharedWorker&&false===settings.useShared)this.isUseSharedWorker=false;this.worker=null;this.languages={1068:"az_Latn_AZ",1026:"bg_BG",1027:"ca_ES",2051:"ca_ES_valencia",1029:"cs_CZ",1030:"da_DK",3079:"de_AT",
2055:"de_CH",1031:"de_DE",1032:"el_GR",3081:"en_AU",4105:"en_CA",2057:"en_GB",1033:"en_US",7177:"en_ZA",3082:"es_ES",1069:"eu_ES",1036:"fr_FR",1110:"gl_ES",1050:"hr_HR",1038:"hu_HU",1057:"id_ID",1040:"it_IT",1087:"kk_KZ",1042:"ko_KR",1134:"lb_LU",1063:"lt_LT",1062:"lv_LV",1104:"mn_MN",1044:"nb_NO",1043:"nl_NL",2068:"nn_NO",1045:"pl_PL",1046:"pt_BR",2070:"pt_PT",1048:"ro_RO",1049:"ru_RU",1051:"sk_SK",1060:"sl_SI",10266:"sr_Cyrl_RS",9242:"sr_Latn_RS",1053:"sv_SE",1055:"tr_TR",1058:"uk_UA",1066:"vi_VN", 2055:"de_CH",1031:"de_DE",1032:"el_GR",3081:"en_AU",4105:"en_CA",2057:"en_GB",1033:"en_US",7177:"en_ZA",3082:"es_ES",1069:"eu_ES",1036:"fr_FR",1110:"gl_ES",1050:"hr_HR",1038:"hu_HU",1057:"id_ID",1040:"it_IT",1087:"kk_KZ",1042:"ko_KR",1134:"lb_LU",1063:"lt_LT",1062:"lv_LV",1104:"mn_MN",1044:"nb_NO",1043:"nl_NL",2068:"nn_NO",1045:"pl_PL",1046:"pt_BR",2070:"pt_PT",1048:"ro_RO",1049:"ru_RU",1051:"sk_SK",1060:"sl_SI",10266:"sr_Cyrl_RS",9242:"sr_Latn_RS",1053:"sv_SE",1055:"tr_TR",1058:"uk_UA",1066:"vi_VN",
2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker= 2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){return;this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker=
new Worker(worker_src);creator._start(creator.worker)};this._start(this.worker.port)}else{this.worker=new Worker(worker_src);var _t=this;this.worker.onerror=function(e){AscCommon.stopEvent(e);if(_t.useWasm){_t.useWasm=false;_t.restart();_t.api.asc_restartCheckSpelling()}};this._start(this.worker)}};this.oncommand=function(message){console.log(message)};this.checkDictionary=function(lang){return undefined!==this.languages[""+lang]?true:false};this.getLanguages=function(){var ret=[];for(var lang in this.languages)ret.push(lang); new Worker(worker_src);creator._start(creator.worker)};this._start(this.worker.port)}else{this.worker=new Worker(worker_src);var _t=this;this.worker.onerror=function(e){AscCommon.stopEvent(e);if(_t.useWasm){_t.useWasm=false;_t.restart();_t.api.asc_restartCheckSpelling()}};this._start(this.worker)}};this.oncommand=function(message){console.log(message)};this.checkDictionary=function(lang){return undefined!==this.languages[""+lang]?true:false};this.getLanguages=function(){var ret=[];for(var lang in this.languages)ret.push(lang);
return ret};this._start=function(_port){var _worker=this;_port.onmessage=function(message){_worker.oncommand&&_worker.oncommand(message.data)};_port.postMessage({"type":"init","dictionaries_path":dictionariesPath,"languages":this.languages});this.command=function(message){_port&&_port.postMessage(message)}};this.restart()} return ret};this._start=function(_port){var _worker=this;_port.onmessage=function(message){_worker.oncommand&&_worker.oncommand(message.data)};_port.postMessage({"type":"init","dictionaries_path":dictionariesPath,"languages":this.languages});this.command=function(message){_port&&_port.postMessage(message)}};this.restart()}

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *
@ -19303,8 +19303,8 @@ if(!oRun.m_oContentChanges)return;for(var Index=0,Count=this.Items.length;Index<
AscCommon.CollaborativeEditing.Update_DocumentPositionsOnAdd(oRun,Pos);if(Element.SetParent)Element.SetParent(oRun)}}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunAddItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunAddItem.prototype.CreateReverseChange= AscCommon.CollaborativeEditing.Update_DocumentPositionsOnAdd(oRun,Pos);if(Element.SetParent)Element.SetParent(oRun)}}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunAddItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunAddItem.prototype.CreateReverseChange=
function(){return this.private_CreateReverseChange(CChangesRunRemoveItem)};function CChangesRunRemoveItem(Class,Pos,Items){AscDFH.CChangesBaseContentChange.call(this,Class,Pos,Items,false)}CChangesRunRemoveItem.prototype=Object.create(AscDFH.CChangesBaseContentChange.prototype);CChangesRunRemoveItem.prototype.constructor=CChangesRunRemoveItem;CChangesRunRemoveItem.prototype.Type=AscDFH.historyitem_ParaRun_RemoveItem;CChangesRunRemoveItem.prototype.Undo=function(){var oRun=this.Class;var Array_start= function(){return this.private_CreateReverseChange(CChangesRunRemoveItem)};function CChangesRunRemoveItem(Class,Pos,Items){AscDFH.CChangesBaseContentChange.call(this,Class,Pos,Items,false)}CChangesRunRemoveItem.prototype=Object.create(AscDFH.CChangesBaseContentChange.prototype);CChangesRunRemoveItem.prototype.constructor=CChangesRunRemoveItem;CChangesRunRemoveItem.prototype.Type=AscDFH.historyitem_ParaRun_RemoveItem;CChangesRunRemoveItem.prototype.Undo=function(){var oRun=this.Class;var Array_start=
oRun.Content.slice(0,this.Pos);var Array_end=oRun.Content.slice(this.Pos);oRun.Content=Array_start.concat(this.Items,Array_end);oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);for(var nIndex=0,nCount=this.Items.length;nIndex<nCount;++nIndex)if(this.Items[nIndex].SetParent)this.Items[nIndex].SetParent(oRun)};CChangesRunRemoveItem.prototype.Redo=function(){var oRun=this.Class;oRun.Content.splice(this.Pos,this.Items.length);oRun.RecalcInfo.Measure= oRun.Content.slice(0,this.Pos);var Array_end=oRun.Content.slice(this.Pos);oRun.Content=Array_start.concat(this.Items,Array_end);oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);for(var nIndex=0,nCount=this.Items.length;nIndex<nCount;++nIndex)if(this.Items[nIndex].SetParent)this.Items[nIndex].SetParent(oRun)};CChangesRunRemoveItem.prototype.Redo=function(){var oRun=this.Class;oRun.Content.splice(this.Pos,this.Items.length);oRun.RecalcInfo.Measure=
true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false)};CChangesRunRemoveItem.prototype.private_WriteItem=function(Writer,Item){Item.Write_ToBinary(Writer)};CChangesRunRemoveItem.prototype.private_ReadItem=function(Reader){return ParagraphContent_Read_FromBinary(Reader)};CChangesRunRemoveItem.prototype.Load=function(){var oRun=this.Class;var nLastChangesPos=null;var nChangesCount=0;for(var Index=0,Count=this.PosArray.length;Index<Count;Index++){var nChangesPos= true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false)};CChangesRunRemoveItem.prototype.private_WriteItem=function(Writer,Item){Item.Write_ToBinary(Writer)};CChangesRunRemoveItem.prototype.private_ReadItem=function(Reader){return ParagraphContent_Read_FromBinary(Reader)};CChangesRunRemoveItem.prototype.Load=function(){var oRun=this.Class;if(!oRun.m_oContentChanges)return;var nLastChangesPos=null;var nChangesCount=0;for(var Index=0,Count=this.PosArray.length;Index<
oRun.m_oContentChanges.Check(AscCommon.contentchanges_Remove,this.PosArray[Index]);if(false===nChangesPos)continue;if(null===nLastChangesPos){nLastChangesPos=nChangesPos;nChangesCount=1}else if(nLastChangesPos===nChangesPos)nChangesCount++;else{oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos, Count;Index++){var nChangesPos=oRun.m_oContentChanges.Check(AscCommon.contentchanges_Remove,this.PosArray[Index]);if(false===nChangesPos)continue;if(null===nLastChangesPos){nLastChangesPos=nChangesPos;nChangesCount=1}else if(nLastChangesPos===nChangesPos)nChangesCount++;else{oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,
nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,nLastChangesPos,nChangesCount);nLastChangesPos=nChangesPos;nChangesCount=1}}if(nChangesCount){oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun, nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,nLastChangesPos,nChangesCount);nLastChangesPos=nChangesPos;nChangesCount=1}}if(nChangesCount){oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,
nLastChangesPos,nChangesCount)}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunRemoveItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunRemoveItem.prototype.CreateReverseChange=function(){return this.private_CreateReverseChange(CChangesRunAddItem)}; nLastChangesPos,nChangesCount)}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunRemoveItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunRemoveItem.prototype.CreateReverseChange=function(){return this.private_CreateReverseChange(CChangesRunAddItem)};
function CChangesRunBold(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunBold.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunBold.prototype.constructor=CChangesRunBold;CChangesRunBold.prototype.Type=AscDFH.historyitem_ParaRun_Bold;CChangesRunBold.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Bold=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunBold.prototype.Load= function CChangesRunBold(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunBold.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunBold.prototype.constructor=CChangesRunBold;CChangesRunBold.prototype.Type=AscDFH.historyitem_ParaRun_Bold;CChangesRunBold.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Bold=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunBold.prototype.Load=

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 150 KiB

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *
@ -2339,6 +2339,6 @@ CSearchResult.prototype.put_Navigator;CSearchResult.prototype["put_Text"]=CSearc
function CSpellchecker(settings){this.api=settings.api;this.useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")this.useWasm=true;this.enginePath="./spell/";if(settings&&settings.enginePath){this.enginePath=settings.enginePath;if(this.enginePath.substring(this.enginePath.length-1)!="/")this.enginePath+="/"}var dictionariesPath= function CSpellchecker(settings){this.api=settings.api;this.useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")this.useWasm=true;this.enginePath="./spell/";if(settings&&settings.enginePath){this.enginePath=settings.enginePath;if(this.enginePath.substring(this.enginePath.length-1)!="/")this.enginePath+="/"}var dictionariesPath=
"./../dictionaries";if(settings&&settings.dictionariesPath){dictionariesPath=settings.dictionariesPath;if(dictionariesPath.substring(dictionariesPath.length-1)=="/")dictionariesPath=dictionariesPath.substr(0,dictionariesPath.length-1)}this.isUseSharedWorker=!!window.SharedWorker;if(this.isUseSharedWorker&&false===settings.useShared)this.isUseSharedWorker=false;this.worker=null;this.languages={1068:"az_Latn_AZ",1026:"bg_BG",1027:"ca_ES",2051:"ca_ES_valencia",1029:"cs_CZ",1030:"da_DK",3079:"de_AT", "./../dictionaries";if(settings&&settings.dictionariesPath){dictionariesPath=settings.dictionariesPath;if(dictionariesPath.substring(dictionariesPath.length-1)=="/")dictionariesPath=dictionariesPath.substr(0,dictionariesPath.length-1)}this.isUseSharedWorker=!!window.SharedWorker;if(this.isUseSharedWorker&&false===settings.useShared)this.isUseSharedWorker=false;this.worker=null;this.languages={1068:"az_Latn_AZ",1026:"bg_BG",1027:"ca_ES",2051:"ca_ES_valencia",1029:"cs_CZ",1030:"da_DK",3079:"de_AT",
2055:"de_CH",1031:"de_DE",1032:"el_GR",3081:"en_AU",4105:"en_CA",2057:"en_GB",1033:"en_US",7177:"en_ZA",3082:"es_ES",1069:"eu_ES",1036:"fr_FR",1110:"gl_ES",1050:"hr_HR",1038:"hu_HU",1057:"id_ID",1040:"it_IT",1087:"kk_KZ",1042:"ko_KR",1134:"lb_LU",1063:"lt_LT",1062:"lv_LV",1104:"mn_MN",1044:"nb_NO",1043:"nl_NL",2068:"nn_NO",1045:"pl_PL",1046:"pt_BR",2070:"pt_PT",1048:"ro_RO",1049:"ru_RU",1051:"sk_SK",1060:"sl_SI",10266:"sr_Cyrl_RS",9242:"sr_Latn_RS",1053:"sv_SE",1055:"tr_TR",1058:"uk_UA",1066:"vi_VN", 2055:"de_CH",1031:"de_DE",1032:"el_GR",3081:"en_AU",4105:"en_CA",2057:"en_GB",1033:"en_US",7177:"en_ZA",3082:"es_ES",1069:"eu_ES",1036:"fr_FR",1110:"gl_ES",1050:"hr_HR",1038:"hu_HU",1057:"id_ID",1040:"it_IT",1087:"kk_KZ",1042:"ko_KR",1134:"lb_LU",1063:"lt_LT",1062:"lv_LV",1104:"mn_MN",1044:"nb_NO",1043:"nl_NL",2068:"nn_NO",1045:"pl_PL",1046:"pt_BR",2070:"pt_PT",1048:"ro_RO",1049:"ru_RU",1051:"sk_SK",1060:"sl_SI",10266:"sr_Cyrl_RS",9242:"sr_Latn_RS",1053:"sv_SE",1055:"tr_TR",1058:"uk_UA",1066:"vi_VN",
2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker= 2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){return;this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker=
new Worker(worker_src);creator._start(creator.worker)};this._start(this.worker.port)}else{this.worker=new Worker(worker_src);var _t=this;this.worker.onerror=function(e){AscCommon.stopEvent(e);if(_t.useWasm){_t.useWasm=false;_t.restart();_t.api.asc_restartCheckSpelling()}};this._start(this.worker)}};this.oncommand=function(message){console.log(message)};this.checkDictionary=function(lang){return undefined!==this.languages[""+lang]?true:false};this.getLanguages=function(){var ret=[];for(var lang in this.languages)ret.push(lang); new Worker(worker_src);creator._start(creator.worker)};this._start(this.worker.port)}else{this.worker=new Worker(worker_src);var _t=this;this.worker.onerror=function(e){AscCommon.stopEvent(e);if(_t.useWasm){_t.useWasm=false;_t.restart();_t.api.asc_restartCheckSpelling()}};this._start(this.worker)}};this.oncommand=function(message){console.log(message)};this.checkDictionary=function(lang){return undefined!==this.languages[""+lang]?true:false};this.getLanguages=function(){var ret=[];for(var lang in this.languages)ret.push(lang);
return ret};this._start=function(_port){var _worker=this;_port.onmessage=function(message){_worker.oncommand&&_worker.oncommand(message.data)};_port.postMessage({"type":"init","dictionaries_path":dictionariesPath,"languages":this.languages});this.command=function(message){_port&&_port.postMessage(message)}};this.restart()} return ret};this._start=function(_port){var _worker=this;_port.onmessage=function(message){_worker.oncommand&&_worker.oncommand(message.data)};_port.postMessage({"type":"init","dictionaries_path":dictionariesPath,"languages":this.languages});this.command=function(message){_port&&_port.postMessage(message)}};this.restart()}

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *
@ -17751,8 +17751,8 @@ if(!oRun.m_oContentChanges)return;for(var Index=0,Count=this.Items.length;Index<
AscCommon.CollaborativeEditing.Update_DocumentPositionsOnAdd(oRun,Pos);if(Element.SetParent)Element.SetParent(oRun)}}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunAddItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunAddItem.prototype.CreateReverseChange= AscCommon.CollaborativeEditing.Update_DocumentPositionsOnAdd(oRun,Pos);if(Element.SetParent)Element.SetParent(oRun)}}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunAddItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunAddItem.prototype.CreateReverseChange=
function(){return this.private_CreateReverseChange(CChangesRunRemoveItem)};function CChangesRunRemoveItem(Class,Pos,Items){AscDFH.CChangesBaseContentChange.call(this,Class,Pos,Items,false)}CChangesRunRemoveItem.prototype=Object.create(AscDFH.CChangesBaseContentChange.prototype);CChangesRunRemoveItem.prototype.constructor=CChangesRunRemoveItem;CChangesRunRemoveItem.prototype.Type=AscDFH.historyitem_ParaRun_RemoveItem;CChangesRunRemoveItem.prototype.Undo=function(){var oRun=this.Class;var Array_start= function(){return this.private_CreateReverseChange(CChangesRunRemoveItem)};function CChangesRunRemoveItem(Class,Pos,Items){AscDFH.CChangesBaseContentChange.call(this,Class,Pos,Items,false)}CChangesRunRemoveItem.prototype=Object.create(AscDFH.CChangesBaseContentChange.prototype);CChangesRunRemoveItem.prototype.constructor=CChangesRunRemoveItem;CChangesRunRemoveItem.prototype.Type=AscDFH.historyitem_ParaRun_RemoveItem;CChangesRunRemoveItem.prototype.Undo=function(){var oRun=this.Class;var Array_start=
oRun.Content.slice(0,this.Pos);var Array_end=oRun.Content.slice(this.Pos);oRun.Content=Array_start.concat(this.Items,Array_end);oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);for(var nIndex=0,nCount=this.Items.length;nIndex<nCount;++nIndex)if(this.Items[nIndex].SetParent)this.Items[nIndex].SetParent(oRun)};CChangesRunRemoveItem.prototype.Redo=function(){var oRun=this.Class;oRun.Content.splice(this.Pos,this.Items.length);oRun.RecalcInfo.Measure= oRun.Content.slice(0,this.Pos);var Array_end=oRun.Content.slice(this.Pos);oRun.Content=Array_start.concat(this.Items,Array_end);oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);for(var nIndex=0,nCount=this.Items.length;nIndex<nCount;++nIndex)if(this.Items[nIndex].SetParent)this.Items[nIndex].SetParent(oRun)};CChangesRunRemoveItem.prototype.Redo=function(){var oRun=this.Class;oRun.Content.splice(this.Pos,this.Items.length);oRun.RecalcInfo.Measure=
true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false)};CChangesRunRemoveItem.prototype.private_WriteItem=function(Writer,Item){Item.Write_ToBinary(Writer)};CChangesRunRemoveItem.prototype.private_ReadItem=function(Reader){return ParagraphContent_Read_FromBinary(Reader)};CChangesRunRemoveItem.prototype.Load=function(){var oRun=this.Class;var nLastChangesPos=null;var nChangesCount=0;for(var Index=0,Count=this.PosArray.length;Index<Count;Index++){var nChangesPos= true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false)};CChangesRunRemoveItem.prototype.private_WriteItem=function(Writer,Item){Item.Write_ToBinary(Writer)};CChangesRunRemoveItem.prototype.private_ReadItem=function(Reader){return ParagraphContent_Read_FromBinary(Reader)};CChangesRunRemoveItem.prototype.Load=function(){var oRun=this.Class;if(!oRun.m_oContentChanges)return;var nLastChangesPos=null;var nChangesCount=0;for(var Index=0,Count=this.PosArray.length;Index<
oRun.m_oContentChanges.Check(AscCommon.contentchanges_Remove,this.PosArray[Index]);if(false===nChangesPos)continue;if(null===nLastChangesPos){nLastChangesPos=nChangesPos;nChangesCount=1}else if(nLastChangesPos===nChangesPos)nChangesCount++;else{oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos, Count;Index++){var nChangesPos=oRun.m_oContentChanges.Check(AscCommon.contentchanges_Remove,this.PosArray[Index]);if(false===nChangesPos)continue;if(null===nLastChangesPos){nLastChangesPos=nChangesPos;nChangesCount=1}else if(nLastChangesPos===nChangesPos)nChangesCount++;else{oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,
nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,nLastChangesPos,nChangesCount);nLastChangesPos=nChangesPos;nChangesCount=1}}if(nChangesCount){oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun, nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,nLastChangesPos,nChangesCount);nLastChangesPos=nChangesPos;nChangesCount=1}}if(nChangesCount){oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,
nLastChangesPos,nChangesCount)}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunRemoveItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunRemoveItem.prototype.CreateReverseChange=function(){return this.private_CreateReverseChange(CChangesRunAddItem)}; nLastChangesPos,nChangesCount)}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunRemoveItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunRemoveItem.prototype.CreateReverseChange=function(){return this.private_CreateReverseChange(CChangesRunAddItem)};
function CChangesRunBold(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunBold.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunBold.prototype.constructor=CChangesRunBold;CChangesRunBold.prototype.Type=AscDFH.historyitem_ParaRun_Bold;CChangesRunBold.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Bold=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunBold.prototype.Load= function CChangesRunBold(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunBold.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunBold.prototype.constructor=CChangesRunBold;CChangesRunBold.prototype.Type=AscDFH.historyitem_ParaRun_Bold;CChangesRunBold.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Bold=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunBold.prototype.Load=

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *
@ -2595,6 +2595,6 @@ true);else if("simple"===sMode)oLogicDocument.SetDisplayModeInReview(Asc.c_oAscD
function CSpellchecker(settings){this.api=settings.api;this.useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")this.useWasm=true;this.enginePath="./spell/";if(settings&&settings.enginePath){this.enginePath=settings.enginePath;if(this.enginePath.substring(this.enginePath.length-1)!="/")this.enginePath+="/"}var dictionariesPath= function CSpellchecker(settings){this.api=settings.api;this.useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")this.useWasm=true;this.enginePath="./spell/";if(settings&&settings.enginePath){this.enginePath=settings.enginePath;if(this.enginePath.substring(this.enginePath.length-1)!="/")this.enginePath+="/"}var dictionariesPath=
"./../dictionaries";if(settings&&settings.dictionariesPath){dictionariesPath=settings.dictionariesPath;if(dictionariesPath.substring(dictionariesPath.length-1)=="/")dictionariesPath=dictionariesPath.substr(0,dictionariesPath.length-1)}this.isUseSharedWorker=!!window.SharedWorker;if(this.isUseSharedWorker&&false===settings.useShared)this.isUseSharedWorker=false;this.worker=null;this.languages={1068:"az_Latn_AZ",1026:"bg_BG",1027:"ca_ES",2051:"ca_ES_valencia",1029:"cs_CZ",1030:"da_DK",3079:"de_AT", "./../dictionaries";if(settings&&settings.dictionariesPath){dictionariesPath=settings.dictionariesPath;if(dictionariesPath.substring(dictionariesPath.length-1)=="/")dictionariesPath=dictionariesPath.substr(0,dictionariesPath.length-1)}this.isUseSharedWorker=!!window.SharedWorker;if(this.isUseSharedWorker&&false===settings.useShared)this.isUseSharedWorker=false;this.worker=null;this.languages={1068:"az_Latn_AZ",1026:"bg_BG",1027:"ca_ES",2051:"ca_ES_valencia",1029:"cs_CZ",1030:"da_DK",3079:"de_AT",
2055:"de_CH",1031:"de_DE",1032:"el_GR",3081:"en_AU",4105:"en_CA",2057:"en_GB",1033:"en_US",7177:"en_ZA",3082:"es_ES",1069:"eu_ES",1036:"fr_FR",1110:"gl_ES",1050:"hr_HR",1038:"hu_HU",1057:"id_ID",1040:"it_IT",1087:"kk_KZ",1042:"ko_KR",1134:"lb_LU",1063:"lt_LT",1062:"lv_LV",1104:"mn_MN",1044:"nb_NO",1043:"nl_NL",2068:"nn_NO",1045:"pl_PL",1046:"pt_BR",2070:"pt_PT",1048:"ro_RO",1049:"ru_RU",1051:"sk_SK",1060:"sl_SI",10266:"sr_Cyrl_RS",9242:"sr_Latn_RS",1053:"sv_SE",1055:"tr_TR",1058:"uk_UA",1066:"vi_VN", 2055:"de_CH",1031:"de_DE",1032:"el_GR",3081:"en_AU",4105:"en_CA",2057:"en_GB",1033:"en_US",7177:"en_ZA",3082:"es_ES",1069:"eu_ES",1036:"fr_FR",1110:"gl_ES",1050:"hr_HR",1038:"hu_HU",1057:"id_ID",1040:"it_IT",1087:"kk_KZ",1042:"ko_KR",1134:"lb_LU",1063:"lt_LT",1062:"lv_LV",1104:"mn_MN",1044:"nb_NO",1043:"nl_NL",2068:"nn_NO",1045:"pl_PL",1046:"pt_BR",2070:"pt_PT",1048:"ro_RO",1049:"ru_RU",1051:"sk_SK",1060:"sl_SI",10266:"sr_Cyrl_RS",9242:"sr_Latn_RS",1053:"sv_SE",1055:"tr_TR",1058:"uk_UA",1066:"vi_VN",
2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker= 2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){return;this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker=
new Worker(worker_src);creator._start(creator.worker)};this._start(this.worker.port)}else{this.worker=new Worker(worker_src);var _t=this;this.worker.onerror=function(e){AscCommon.stopEvent(e);if(_t.useWasm){_t.useWasm=false;_t.restart();_t.api.asc_restartCheckSpelling()}};this._start(this.worker)}};this.oncommand=function(message){console.log(message)};this.checkDictionary=function(lang){return undefined!==this.languages[""+lang]?true:false};this.getLanguages=function(){var ret=[];for(var lang in this.languages)ret.push(lang); new Worker(worker_src);creator._start(creator.worker)};this._start(this.worker.port)}else{this.worker=new Worker(worker_src);var _t=this;this.worker.onerror=function(e){AscCommon.stopEvent(e);if(_t.useWasm){_t.useWasm=false;_t.restart();_t.api.asc_restartCheckSpelling()}};this._start(this.worker)}};this.oncommand=function(message){console.log(message)};this.checkDictionary=function(lang){return undefined!==this.languages[""+lang]?true:false};this.getLanguages=function(){var ret=[];for(var lang in this.languages)ret.push(lang);
return ret};this._start=function(_port){var _worker=this;_port.onmessage=function(message){_worker.oncommand&&_worker.oncommand(message.data)};_port.postMessage({"type":"init","dictionaries_path":dictionariesPath,"languages":this.languages});this.command=function(message){_port&&_port.postMessage(message)}};this.restart()} return ret};this._start=function(_port){var _worker=this;_port.onmessage=function(message){_worker.oncommand&&_worker.oncommand(message.data)};_port.postMessage({"type":"init","dictionaries_path":dictionariesPath,"languages":this.languages});this.command=function(message){_port&&_port.postMessage(message)}};this.restart()}

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *
@ -11034,8 +11034,8 @@ oLogicDocument.StartAction(nPointType);callback.apply(this,args);oLogicDocument.
arrFields);return _arrFields},TurnOffCheckChartSelection:function(){this.bNoCheckChartTextSelection=true},TurnOnCheckChartSelection:function(){this.bNoCheckChartTextSelection=false},getDrawingDocument:function(){return editor.WordControl.m_oDrawingDocument},sortDrawingArrays:function(){for(var i=0;i<this.graphicPages.length;++i)if(this.graphicPages[i])this.graphicPages[i].sortDrawingArrays()},getSelectedObjects:function(){return this.selectedObjects},getSelectedArray:DrawingObjectsController.prototype.getSelectedArray, arrFields);return _arrFields},TurnOffCheckChartSelection:function(){this.bNoCheckChartTextSelection=true},TurnOnCheckChartSelection:function(){this.bNoCheckChartTextSelection=false},getDrawingDocument:function(){return editor.WordControl.m_oDrawingDocument},sortDrawingArrays:function(){for(var i=0;i<this.graphicPages.length;++i)if(this.graphicPages[i])this.graphicPages[i].sortDrawingArrays()},getSelectedObjects:function(){return this.selectedObjects},getSelectedArray:DrawingObjectsController.prototype.getSelectedArray,
getTheme:function(){return this.document.theme},getColorMapOverride:function(){return null},isViewMode:function(){return this.document.IsViewMode()},convertPixToMM:function(v){return this.document.DrawingDocument.GetMMPerDot(v)},getGraphicInfoUnderCursor:function(pageIndex,x,y){this.handleEventMode=HANDLE_EVENT_MODE_CURSOR;var ret=this.curState.onMouseDown(global_mouseEvent,x,y,pageIndex,false);this.handleEventMode=HANDLE_EVENT_MODE_HANDLE;if(ret&&ret.cursorType==="text")if(this.selection.chartSelection&& getTheme:function(){return this.document.theme},getColorMapOverride:function(){return null},isViewMode:function(){return this.document.IsViewMode()},convertPixToMM:function(v){return this.document.DrawingDocument.GetMMPerDot(v)},getGraphicInfoUnderCursor:function(pageIndex,x,y){this.handleEventMode=HANDLE_EVENT_MODE_CURSOR;var ret=this.curState.onMouseDown(global_mouseEvent,x,y,pageIndex,false);this.handleEventMode=HANDLE_EVENT_MODE_HANDLE;if(ret&&ret.cursorType==="text")if(this.selection.chartSelection&&
this.selection.chartSelection.selection.textSelection||this.selection.groupSelection&&this.selection.groupSelection.selection.chartSelection&&this.selection.groupSelection.selection.chartSelection.selection.textSelection)ret={};return ret||{}},updateCursorType:function(pageIndex,x,y,e,bTextFlag){var ret;this.handleEventMode=HANDLE_EVENT_MODE_CURSOR;ret=this.curState.onMouseDown(global_mouseEvent,x,y,pageIndex,bTextFlag);this.handleEventMode=HANDLE_EVENT_MODE_HANDLE;if(ret){if(ret.cursorType!=="text"){var oApi= this.selection.chartSelection.selection.textSelection||this.selection.groupSelection&&this.selection.groupSelection.selection.chartSelection&&this.selection.groupSelection.selection.chartSelection.selection.textSelection)ret={};return ret||{}},updateCursorType:function(pageIndex,x,y,e,bTextFlag){var ret;this.handleEventMode=HANDLE_EVENT_MODE_CURSOR;ret=this.curState.onMouseDown(global_mouseEvent,x,y,pageIndex,bTextFlag);this.handleEventMode=HANDLE_EVENT_MODE_HANDLE;if(ret){if(ret.cursorType!=="text"){var oApi=
Asc.editor||editor;var isDrawHandles=oApi?oApi.isShowShapeAdjustments():true;var oShape=null;var oInnerForm=null;if((oShape=AscCommon.g_oTableId.Get_ById(ret.objectId))&&oShape.isForm()&&(oInnerForm=oShape.getInnerForm())){if(isDrawHandles&&oInnerForm.IsFormLocked())isDrawHandles=false;var oPara;if(oInnerForm.IsPictureForm()&&oInnerForm.IsFixedForm()&&(oPara=oInnerForm.GetParagraph())){var X=x,Y=y;var oTransform=oPara.Get_ParentTextInvertTransform();if(oTransform){X=oTransform.TransformPointX(x,y); Asc.editor||editor;var isDrawHandles=oApi?oApi.isShowShapeAdjustments():true;var oShape=AscCommon.g_oTableId.Get_ById(ret.objectId);var oInnerForm=null;if(oShape&&oShape.isForm&&oShape.isForm()&&(oInnerForm=oShape.getInnerForm())){if(isDrawHandles&&oInnerForm.IsFormLocked())isDrawHandles=false;var oPara;if(oInnerForm.IsPictureForm()&&oInnerForm.IsFixedForm()&&(oPara=oInnerForm.GetParagraph())){var X=x,Y=y;var oTransform=oPara.Get_ParentTextInvertTransform();if(oTransform){X=oTransform.TransformPointX(x,
Y=oTransform.TransformPointY(x,y)}oInnerForm.DrawContentControlsTrack(true,X,Y,0)}}if(isDrawHandles===false){this.drawingDocument.SetCursorType("default");return true}this.drawingDocument.SetCursorType(ret.cursorType)}return true}return false},removeTextSelection:function(){var oTargetDocContent=this.getTargetDocContent();if(oTargetDocContent&&oTargetDocContent.IsSelectionUse())oTargetDocContent.RemoveSelection()},getDefaultText:DrawingObjectsController.prototype.getDefaultText,canEdit:DrawingObjectsController.prototype.canEdit, y);Y=oTransform.TransformPointY(x,y)}oInnerForm.DrawContentControlsTrack(true,X,Y,0)}}if(isDrawHandles===false){this.drawingDocument.SetCursorType("default");return true}this.drawingDocument.SetCursorType(ret.cursorType)}return true}return false},removeTextSelection:function(){var oTargetDocContent=this.getTargetDocContent();if(oTargetDocContent&&oTargetDocContent.IsSelectionUse())oTargetDocContent.RemoveSelection()},getDefaultText:DrawingObjectsController.prototype.getDefaultText,canEdit:DrawingObjectsController.prototype.canEdit,
createImage:DrawingObjectsController.prototype.createImage,createOleObject:DrawingObjectsController.prototype.createOleObject,createTextArt:DrawingObjectsController.prototype.createTextArt,getChartObject:DrawingObjectsController.prototype.getChartObject,getChartSpace2:DrawingObjectsController.prototype.getChartSpace2,CreateDocContent:DrawingObjectsController.prototype.CreateDocContent,isSlideShow:function(){return false},clearPreTrackObjects:function(){this.arrPreTrackObjects.length=0},addPreTrackObject:function(preTrackObject){this.arrPreTrackObjects.push(preTrackObject)}, createImage:DrawingObjectsController.prototype.createImage,createOleObject:DrawingObjectsController.prototype.createOleObject,createTextArt:DrawingObjectsController.prototype.createTextArt,getChartObject:DrawingObjectsController.prototype.getChartObject,getChartSpace2:DrawingObjectsController.prototype.getChartSpace2,CreateDocContent:DrawingObjectsController.prototype.CreateDocContent,isSlideShow:function(){return false},clearPreTrackObjects:function(){this.arrPreTrackObjects.length=0},addPreTrackObject:function(preTrackObject){this.arrPreTrackObjects.push(preTrackObject)},
clearTrackObjects:function(){this.arrTrackObjects.length=0},addTrackObject:function(trackObject){this.arrTrackObjects.push(trackObject)},swapTrackObjects:function(){this.clearTrackObjects();for(var i=0;i<this.arrPreTrackObjects.length;++i)this.addTrackObject(this.arrPreTrackObjects[i]);this.clearPreTrackObjects()},addToRecalculate:function(object){if(typeof object.Get_Id==="function"&&typeof object.recalculate==="function")History.RecalcData_Add({Type:AscDFH.historyitem_recalctype_Drawing,Object:object}); clearTrackObjects:function(){this.arrTrackObjects.length=0},addTrackObject:function(trackObject){this.arrTrackObjects.push(trackObject)},swapTrackObjects:function(){this.clearTrackObjects();for(var i=0;i<this.arrPreTrackObjects.length;++i)this.addTrackObject(this.arrPreTrackObjects[i]);this.clearPreTrackObjects()},addToRecalculate:function(object){if(typeof object.Get_Id==="function"&&typeof object.recalculate==="function")History.RecalcData_Add({Type:AscDFH.historyitem_recalctype_Drawing,Object:object});
return},createWatermarkImage:DrawingObjectsController.prototype.createWatermarkImage,createWatermark:function(oProps){if(oProps.get_Type()===Asc.c_oAscWatermarkType.None)return null;var bTrackRevisions=false;if(this.document.IsTrackRevisions()){bTrackRevisions=this.document.GetLocalTrackRevisions();this.document.SetLocalTrackRevisions(false)}var oDrawing,extX,extY;var oSectPr=this.document.Get_SectionProps();var dMaxWidth=oSectPr.get_W()-oSectPr.get_LeftMargin()-oSectPr.get_RightMargin();var dMaxHeight= return},createWatermarkImage:DrawingObjectsController.prototype.createWatermarkImage,createWatermark:function(oProps){if(oProps.get_Type()===Asc.c_oAscWatermarkType.None)return null;var bTrackRevisions=false;if(this.document.IsTrackRevisions()){bTrackRevisions=this.document.GetLocalTrackRevisions();this.document.SetLocalTrackRevisions(false)}var oDrawing,extX,extY;var oSectPr=this.document.Get_SectionProps();var dMaxWidth=oSectPr.get_W()-oSectPr.get_LeftMargin()-oSectPr.get_RightMargin();var dMaxHeight=
@ -11230,9 +11230,9 @@ table;return}this.flowTables.push(table)},updateFloatTable:function(table){for(v
else drawing_array=this.beforeTextObjects;if(Array.isArray(drawing_array)){for(var i=0;i<drawing_array.length;++i)if(drawing_array[i]===object)break;if(i===drawing_array.length){drawing_array.push(object);if(need_sort)drawing_array.sort(ComparisonByZIndexSimpleParent)}}},concatPage:function(page){this.inlineObjects=this.inlineObjects.concat(page.inlineObjects);this.behindDocObjects=this.behindDocObjects.concat(page.behindDocObjects);this.beforeTextObjects=this.beforeTextObjects.concat(page.beforeTextObjects); else drawing_array=this.beforeTextObjects;if(Array.isArray(drawing_array)){for(var i=0;i<drawing_array.length;++i)if(drawing_array[i]===object)break;if(i===drawing_array.length){drawing_array.push(object);if(need_sort)drawing_array.sort(ComparisonByZIndexSimpleParent)}}},concatPage:function(page){this.inlineObjects=this.inlineObjects.concat(page.inlineObjects);this.behindDocObjects=this.behindDocObjects.concat(page.behindDocObjects);this.beforeTextObjects=this.beforeTextObjects.concat(page.beforeTextObjects);
this.flowTables=this.flowTables.concat(page.flowTables)},mergePages:function(page1,page2){if(page1)this.concatPage(page1);if(page2)this.concatPage(page2);this.behindDocObjects.sort(ComparisonByZIndexSimpleParent);this.beforeTextObjects.sort(ComparisonByZIndexSimpleParent)},clear:function(){this.inlineObjects=[];this.behindDocObjects=[];this.beforeTextObjects=[];this.flowTables=[]},CheckRange:function(X0,Y0,X1,Y1,Y0sp,Y1Ssp,LeftField,RightField,HdrFtrRanges,docContent,bMathWrap){return this.wrapManager.checkRanges(X0, this.flowTables=this.flowTables.concat(page.flowTables)},mergePages:function(page1,page2){if(page1)this.concatPage(page1);if(page2)this.concatPage(page2);this.behindDocObjects.sort(ComparisonByZIndexSimpleParent);this.beforeTextObjects.sort(ComparisonByZIndexSimpleParent)},clear:function(){this.inlineObjects=[];this.behindDocObjects=[];this.beforeTextObjects=[];this.flowTables=[]},CheckRange:function(X0,Y0,X1,Y1,Y0sp,Y1Ssp,LeftField,RightField,HdrFtrRanges,docContent,bMathWrap){return this.wrapManager.checkRanges(X0,
Y0,X1,Y1,Y0sp,Y1Ssp,LeftField,RightField,HdrFtrRanges,docContent,bMathWrap)},removeFloatTableById:function(id){for(var index=0;index<this.flowTables.length;++index)if(this.flowTables[index].Id===id){this.flowTables.splice(index,1);return}},documentStatistics:function(Statistics){var cur_array=this.inlineObjects.concat(this.behindDocObjects).concat(this.beforeTextObjects);for(var i=0;i<cur_array.length;++i)if(cur_array[i].documentStatistics)cur_array[i].documentStatistics(Statistics)},getTableByXY:function(x, Y0,X1,Y1,Y0sp,Y1Ssp,LeftField,RightField,HdrFtrRanges,docContent,bMathWrap)},removeFloatTableById:function(id){for(var index=0;index<this.flowTables.length;++index)if(this.flowTables[index].Id===id){this.flowTables.splice(index,1);return}},documentStatistics:function(Statistics){var cur_array=this.inlineObjects.concat(this.behindDocObjects).concat(this.beforeTextObjects);for(var i=0;i<cur_array.length;++i)if(cur_array[i].documentStatistics)cur_array[i].documentStatistics(Statistics)},getTableByXY:function(x,
y,documentContent){for(var index=this.flowTables.length-1;index>-1;--index)if(this.flowTables[index].IsPointIn(x,y)&&this.flowTables[index].CheckDocumentContent(documentContent))return this.flowTables[index];return null},delObjectById:function(id){var oDrawing=AscCommon.g_oTableId.Get_ById(id);if(oDrawing){var drawing_array;var Type=oDrawing.getDrawingArrayType();if(Type===DRAWING_ARRAY_TYPE_INLINE)drawing_array=this.inlineObjects;else if(Type===DRAWING_ARRAY_TYPE_BEHIND)drawing_array=this.behindDocObjects; y,documentContent){for(var index=this.flowTables.length-1;index>-1;--index)if(this.flowTables[index].IsPointIn(x,y)&&this.flowTables[index].CheckDocumentContent(documentContent))return this.flowTables[index];return null},delObjectById:function(id){var oDrawing=AscCommon.g_oTableId.Get_ById(id);if(oDrawing&&oDrawing.getDrawingArrayType){var drawing_array;var Type=oDrawing.getDrawingArrayType();if(Type===DRAWING_ARRAY_TYPE_INLINE)drawing_array=this.inlineObjects;else if(Type===DRAWING_ARRAY_TYPE_BEHIND)drawing_array=
else drawing_array=this.beforeTextObjects;for(var index=0;index<drawing_array.length;++index)if(drawing_array[index].parent===oDrawing)return drawing_array.splice(index,1)}return null},resetDrawingArrays:function(docContent){function findInArrayAndRemove(drawingArray,docContent,document){if(docContent===document){drawingArray.length=0;return}var b_is_top_doc=docContent.Is_TopDocument();for(var i=drawingArray.length-1;i>-1;--i)if(!drawingArray[i].parent||drawingArray[i].parent.DocumentContent===docContent|| this.behindDocObjects;else drawing_array=this.beforeTextObjects;for(var index=0;index<drawing_array.length;++index)if(drawing_array[index].parent===oDrawing)return drawing_array.splice(index,1)}return null},resetDrawingArrays:function(docContent){function findInArrayAndRemove(drawingArray,docContent,document){if(docContent===document){drawingArray.length=0;return}var b_is_top_doc=docContent.Is_TopDocument();for(var i=drawingArray.length-1;i>-1;--i)if(!drawingArray[i].parent||drawingArray[i].parent.DocumentContent===
b_is_top_doc&&drawingArray[i].parent.DocumentContent.Is_TopDocument(true)===docContent)drawingArray.splice(i,1)}function findTableInArrayAndRemove(drawingArray,docContent,document){if(docContent===document){drawingArray.length=0;return}for(var i=drawingArray.length-1;i>-1;--i)if(drawingArray[i].Table.Parent.GetDocumentContentForRecalcInfo()===docContent)drawingArray.splice(i,1)}function findInArrayAndRemoveFromDrawingPage(drawingPage,docContent,document){if(!drawingPage)return;if(Array.isArray(drawingPage.inlineObjects)){findInArrayAndRemove(drawingPage.inlineObjects, docContent||b_is_top_doc&&drawingArray[i].parent.DocumentContent.Is_TopDocument(true)===docContent)drawingArray.splice(i,1)}function findTableInArrayAndRemove(drawingArray,docContent,document){if(docContent===document){drawingArray.length=0;return}for(var i=drawingArray.length-1;i>-1;--i)if(drawingArray[i].Table.Parent.GetDocumentContentForRecalcInfo()===docContent)drawingArray.splice(i,1)}function findInArrayAndRemoveFromDrawingPage(drawingPage,docContent,document){if(!drawingPage)return;if(Array.isArray(drawingPage.inlineObjects)){findInArrayAndRemove(drawingPage.inlineObjects,
docContent,document);findInArrayAndRemove(drawingPage.behindDocObjects,docContent,document);findInArrayAndRemove(drawingPage.beforeTextObjects,docContent,document);findTableInArrayAndRemove(drawingPage.flowTables,docContent,document)}}if(!AscCommon.isRealObject(docContent))docContent=this.graphicObjects.document;findInArrayAndRemoveFromDrawingPage(this,docContent,editor.WordControl.m_oLogicDocument)},draw:function(graphics){for(var _object_index=0;_object_index<this.inlineObjects.length;++_object_index)this.inlineObjects[_object_index].draw(graphics); docContent,document);findInArrayAndRemove(drawingPage.behindDocObjects,docContent,document);findInArrayAndRemove(drawingPage.beforeTextObjects,docContent,document);findTableInArrayAndRemove(drawingPage.flowTables,docContent,document)}}if(!AscCommon.isRealObject(docContent))docContent=this.graphicObjects.document;findInArrayAndRemoveFromDrawingPage(this,docContent,editor.WordControl.m_oLogicDocument)},draw:function(graphics){for(var _object_index=0;_object_index<this.inlineObjects.length;++_object_index)this.inlineObjects[_object_index].draw(graphics);
for(_object_index=0;_object_index<this.beforeTextObjects.length;++_object_index)this.beforeTextObjects[_object_index].draw(graphics);for(_object_index=0;_object_index<this.behindDocObjects.length;++_object_index)this.behindDocObjects[_object_index].draw(graphics)},drawSelect:function(){var oApi=Asc.editor||editor;var isDrawHandles=oApi?oApi.isShowShapeAdjustments():true;var _graphic_objects=this.selectionInfo.selectionArray;var _object_index;var _objects_count=_graphic_objects.length;var _graphic_object; for(_object_index=0;_object_index<this.beforeTextObjects.length;++_object_index)this.beforeTextObjects[_object_index].draw(graphics);for(_object_index=0;_object_index<this.behindDocObjects.length;++_object_index)this.behindDocObjects[_object_index].draw(graphics)},drawSelect:function(){var oApi=Asc.editor||editor;var isDrawHandles=oApi?oApi.isShowShapeAdjustments():true;var _graphic_objects=this.selectionInfo.selectionArray;var _object_index;var _objects_count=_graphic_objects.length;var _graphic_object;
for(_object_index=0;_object_index<_objects_count;++_object_index){_graphic_object=_graphic_objects[_object_index].graphicObject;var _transform=_graphic_object.getTransformMatrix();if(_transform===null)_transform=new AscCommon.CMatrix;var _extensions=_graphic_object.getExtensions();if(_extensions===null)_extensions={extX:0,extY:0};this.drawingDocument.DrawTrack(AscFormat.TYPE_TRACK.SHAPE,_transform,0,0,_extensions.extX,_extensions.extY,false,undefined,undefined,isDrawHandles)}},selectionCheck:function(x, for(_object_index=0;_object_index<_objects_count;++_object_index){_graphic_object=_graphic_objects[_object_index].graphicObject;var _transform=_graphic_object.getTransformMatrix();if(_transform===null)_transform=new AscCommon.CMatrix;var _extensions=_graphic_object.getExtensions();if(_extensions===null)_extensions={extX:0,extY:0};this.drawingDocument.DrawTrack(AscFormat.TYPE_TRACK.SHAPE,_transform,0,0,_extensions.extX,_extensions.extY,false,undefined,undefined,isDrawHandles)}},selectionCheck:function(x,
@ -13664,8 +13664,8 @@ if(!oRun.m_oContentChanges)return;for(var Index=0,Count=this.Items.length;Index<
AscCommon.CollaborativeEditing.Update_DocumentPositionsOnAdd(oRun,Pos);if(Element.SetParent)Element.SetParent(oRun)}}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunAddItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunAddItem.prototype.CreateReverseChange= AscCommon.CollaborativeEditing.Update_DocumentPositionsOnAdd(oRun,Pos);if(Element.SetParent)Element.SetParent(oRun)}}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunAddItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunAddItem.prototype.CreateReverseChange=
function(){return this.private_CreateReverseChange(CChangesRunRemoveItem)};function CChangesRunRemoveItem(Class,Pos,Items){AscDFH.CChangesBaseContentChange.call(this,Class,Pos,Items,false)}CChangesRunRemoveItem.prototype=Object.create(AscDFH.CChangesBaseContentChange.prototype);CChangesRunRemoveItem.prototype.constructor=CChangesRunRemoveItem;CChangesRunRemoveItem.prototype.Type=AscDFH.historyitem_ParaRun_RemoveItem;CChangesRunRemoveItem.prototype.Undo=function(){var oRun=this.Class;var Array_start= function(){return this.private_CreateReverseChange(CChangesRunRemoveItem)};function CChangesRunRemoveItem(Class,Pos,Items){AscDFH.CChangesBaseContentChange.call(this,Class,Pos,Items,false)}CChangesRunRemoveItem.prototype=Object.create(AscDFH.CChangesBaseContentChange.prototype);CChangesRunRemoveItem.prototype.constructor=CChangesRunRemoveItem;CChangesRunRemoveItem.prototype.Type=AscDFH.historyitem_ParaRun_RemoveItem;CChangesRunRemoveItem.prototype.Undo=function(){var oRun=this.Class;var Array_start=
oRun.Content.slice(0,this.Pos);var Array_end=oRun.Content.slice(this.Pos);oRun.Content=Array_start.concat(this.Items,Array_end);oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);for(var nIndex=0,nCount=this.Items.length;nIndex<nCount;++nIndex)if(this.Items[nIndex].SetParent)this.Items[nIndex].SetParent(oRun)};CChangesRunRemoveItem.prototype.Redo=function(){var oRun=this.Class;oRun.Content.splice(this.Pos,this.Items.length);oRun.RecalcInfo.Measure= oRun.Content.slice(0,this.Pos);var Array_end=oRun.Content.slice(this.Pos);oRun.Content=Array_start.concat(this.Items,Array_end);oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);for(var nIndex=0,nCount=this.Items.length;nIndex<nCount;++nIndex)if(this.Items[nIndex].SetParent)this.Items[nIndex].SetParent(oRun)};CChangesRunRemoveItem.prototype.Redo=function(){var oRun=this.Class;oRun.Content.splice(this.Pos,this.Items.length);oRun.RecalcInfo.Measure=
true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false)};CChangesRunRemoveItem.prototype.private_WriteItem=function(Writer,Item){Item.Write_ToBinary(Writer)};CChangesRunRemoveItem.prototype.private_ReadItem=function(Reader){return ParagraphContent_Read_FromBinary(Reader)};CChangesRunRemoveItem.prototype.Load=function(){var oRun=this.Class;var nLastChangesPos=null;var nChangesCount=0;for(var Index=0,Count=this.PosArray.length;Index<Count;Index++){var nChangesPos= true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false)};CChangesRunRemoveItem.prototype.private_WriteItem=function(Writer,Item){Item.Write_ToBinary(Writer)};CChangesRunRemoveItem.prototype.private_ReadItem=function(Reader){return ParagraphContent_Read_FromBinary(Reader)};CChangesRunRemoveItem.prototype.Load=function(){var oRun=this.Class;if(!oRun.m_oContentChanges)return;var nLastChangesPos=null;var nChangesCount=0;for(var Index=0,Count=this.PosArray.length;Index<
oRun.m_oContentChanges.Check(AscCommon.contentchanges_Remove,this.PosArray[Index]);if(false===nChangesPos)continue;if(null===nLastChangesPos){nLastChangesPos=nChangesPos;nChangesCount=1}else if(nLastChangesPos===nChangesPos)nChangesCount++;else{oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos, Count;Index++){var nChangesPos=oRun.m_oContentChanges.Check(AscCommon.contentchanges_Remove,this.PosArray[Index]);if(false===nChangesPos)continue;if(null===nLastChangesPos){nLastChangesPos=nChangesPos;nChangesCount=1}else if(nLastChangesPos===nChangesPos)nChangesCount++;else{oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,
nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,nLastChangesPos,nChangesCount);nLastChangesPos=nChangesPos;nChangesCount=1}}if(nChangesCount){oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun, nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,nLastChangesPos,nChangesCount);nLastChangesPos=nChangesPos;nChangesCount=1}}if(nChangesCount){oRun.CollaborativeMarks.Update_OnRemove(nLastChangesPos,nChangesCount);oRun.Content.splice(nLastChangesPos,nChangesCount);oRun.private_UpdatePositionsOnRemove(nLastChangesPos,nChangesCount);oRun.private_UpdateCompositeInputPositionsOnRemove(nLastChangesPos,nChangesCount);AscCommon.CollaborativeEditing.Update_DocumentPositionsOnRemove(oRun,
nLastChangesPos,nChangesCount)}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunRemoveItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunRemoveItem.prototype.CreateReverseChange=function(){return this.private_CreateReverseChange(CChangesRunAddItem)}; nLastChangesPos,nChangesCount)}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunRemoveItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunRemoveItem.prototype.CreateReverseChange=function(){return this.private_CreateReverseChange(CChangesRunAddItem)};
function CChangesRunBold(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunBold.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunBold.prototype.constructor=CChangesRunBold;CChangesRunBold.prototype.Type=AscDFH.historyitem_ParaRun_Bold;CChangesRunBold.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Bold=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunBold.prototype.Load= function CChangesRunBold(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunBold.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunBold.prototype.constructor=CChangesRunBold;CChangesRunBold.prototype.Type=AscDFH.historyitem_ParaRun_Bold;CChangesRunBold.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Bold=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunBold.prototype.Load=

@ -1,5 +1,5 @@
/*! /*!
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *

@ -1,5 +1,5 @@
/*! /*!
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *

@ -1,5 +1,5 @@
/*! /*!
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *

@ -1,5 +1,5 @@
/*! /*!
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *

@ -1,5 +1,5 @@
/*! /*!
* Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved
* *
* https://www.onlyoffice.com/ * https://www.onlyoffice.com/
* *

Loading…
Cancel
Save