|
|
|
@ -19304,25 +19304,25 @@ AscDFH.changesRelationMap[AscDFH.historyitem_ParaRun_MathForcedBreak]=[AscDFH.hi
|
|
|
|
|
this.Type||oChange.Type===AscDFH.historyitem_ParaRun_TextPr||oChange.Type===AscDFH.historyitem_ParaRun_RFonts)return false;return true}function private_ParaRunChangesOnMergeLangTextPr(oChange){if(oChange.Class!==this.Class)return true;if(oChange.Type===this.Type||oChange.Type===AscDFH.historyitem_ParaRun_TextPr||oChange.Type===AscDFH.historyitem_ParaRun_Lang)return false;return true}function CChangesRunAddItem(Class,Pos,Items,Color){AscDFH.CChangesBaseContentChange.call(this,Class,Pos,Items,true);
|
|
|
|
|
this.Color=true===Color?true:false}CChangesRunAddItem.prototype=Object.create(AscDFH.CChangesBaseContentChange.prototype);CChangesRunAddItem.prototype.constructor=CChangesRunAddItem;CChangesRunAddItem.prototype.Type=AscDFH.historyitem_ParaRun_AddItem;CChangesRunAddItem.prototype.Undo=function(){var oRun=this.Class;oRun.Content.splice(this.Pos,this.Items.length);oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false)};CChangesRunAddItem.prototype.Redo=
|
|
|
|
|
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)};CChangesRunAddItem.prototype.private_WriteItem=function(Writer,Item){Item.Write_ToBinary(Writer)};
|
|
|
|
|
CChangesRunAddItem.prototype.private_ReadItem=function(Reader){return ParagraphContent_Read_FromBinary(Reader)};CChangesRunAddItem.prototype.Load=function(Color){var oRun=this.Class;for(var Index=0,Count=this.Items.length;Index<Count;Index++){var Pos=oRun.m_oContentChanges.Check(AscCommon.contentchanges_Add,this.PosArray[Index]);var Element=this.Items[Index];if(null!=Element){if(true===this.Color&&null!==Color){oRun.CollaborativeMarks.Update_OnAdd(Pos);oRun.CollaborativeMarks.Add(Pos,Pos+1,Color);
|
|
|
|
|
AscCommon.CollaborativeEditing.Add_ChangedClass(oRun)}oRun.Content.splice(Pos,0,Element);oRun.private_UpdatePositionsOnAdd(Pos);oRun.private_UpdateCompositeInputPositionsOnAdd(Pos);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=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=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,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(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunBold.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunItalic(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunItalic.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);
|
|
|
|
|
CChangesRunItalic.prototype.constructor=CChangesRunItalic;CChangesRunItalic.prototype.Type=AscDFH.historyitem_ParaRun_Italic;CChangesRunItalic.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Italic=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunItalic.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunItalic.prototype.Merge=private_ParaRunChangesOnMergeTextPr;
|
|
|
|
|
function CChangesRunStrikeout(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunStrikeout.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunStrikeout.prototype.constructor=CChangesRunStrikeout;CChangesRunStrikeout.prototype.Type=AscDFH.historyitem_ParaRun_Strikeout;CChangesRunStrikeout.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Strikeout=Value;oRun.Recalc_CompiledPr(false);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};
|
|
|
|
|
CChangesRunStrikeout.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunStrikeout.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunUnderline(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunUnderline.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunUnderline.prototype.constructor=CChangesRunUnderline;CChangesRunUnderline.prototype.Type=
|
|
|
|
|
AscDFH.historyitem_ParaRun_Underline;CChangesRunUnderline.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Underline=Value;oRun.Recalc_CompiledPr(false);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunUnderline.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunUnderline.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunFontSize(Class,Old,New,Color){AscDFH.CChangesBaseDoubleProperty.call(this,
|
|
|
|
|
Class,Old,New,Color)}CChangesRunFontSize.prototype=Object.create(AscDFH.CChangesBaseDoubleProperty.prototype);CChangesRunFontSize.prototype.constructor=CChangesRunFontSize;CChangesRunFontSize.prototype.Type=AscDFH.historyitem_ParaRun_FontSize;CChangesRunFontSize.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.FontSize=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunFontSize.prototype.Load=function(Color){this.Redo();if(this.Color&&
|
|
|
|
|
Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunFontSize.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunColor(Class,Old,New,Color){AscDFH.CChangesBaseObjectProperty.call(this,Class,Old,New,Color)}CChangesRunColor.prototype=Object.create(AscDFH.CChangesBaseObjectProperty.prototype);CChangesRunColor.prototype.constructor=CChangesRunColor;CChangesRunColor.prototype.Type=AscDFH.historyitem_ParaRun_Color;CChangesRunColor.prototype.private_CreateObject=function(){return new CDocumentColor(0,
|
|
|
|
|
0,0,false)};CChangesRunColor.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Color=Value;oRun.Recalc_CompiledPr(false);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunColor.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunColor.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunVertAlign(Class,Old,New,Color){AscDFH.CChangesBaseLongProperty.call(this,Class,Old,New,
|
|
|
|
|
Color)}CChangesRunVertAlign.prototype=Object.create(AscDFH.CChangesBaseLongProperty.prototype);CChangesRunVertAlign.prototype.constructor=CChangesRunVertAlign;CChangesRunVertAlign.prototype.Type=AscDFH.historyitem_ParaRun_VertAlign;CChangesRunVertAlign.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.VertAlign=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunVertAlign.prototype.Load=function(Color){this.Redo();if(this.Color&&
|
|
|
|
|
Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunVertAlign.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunHighLight(Class,Old,New,Color){AscDFH.CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesRunHighLight.prototype=Object.create(AscDFH.CChangesBaseProperty.prototype);CChangesRunHighLight.prototype.constructor=CChangesRunHighLight;CChangesRunHighLight.prototype.Type=AscDFH.historyitem_ParaRun_HighLight;CChangesRunHighLight.prototype.WriteToBinary=
|
|
|
|
|
CChangesRunAddItem.prototype.private_ReadItem=function(Reader){return ParagraphContent_Read_FromBinary(Reader)};CChangesRunAddItem.prototype.Load=function(Color){var oRun=this.Class;if(!oRun.m_oContentChanges)return;for(var Index=0,Count=this.Items.length;Index<Count;Index++){var Pos=oRun.m_oContentChanges.Check(AscCommon.contentchanges_Add,this.PosArray[Index]);var Element=this.Items[Index];if(null!=Element){if(true===this.Color&&null!==Color){oRun.CollaborativeMarks.Update_OnAdd(Pos);oRun.CollaborativeMarks.Add(Pos,
|
|
|
|
|
Pos+1,Color);AscCommon.CollaborativeEditing.Add_ChangedClass(oRun)}oRun.Content.splice(Pos,0,Element);oRun.private_UpdatePositionsOnAdd(Pos);oRun.private_UpdateCompositeInputPositionsOnAdd(Pos);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=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;if(!oRun.m_oContentChanges)return;var nLastChangesPos=null;var nChangesCount=0;for(var Index=0,Count=this.PosArray.length;Index<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,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(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunBold.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunItalic(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunItalic.prototype=
|
|
|
|
|
Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunItalic.prototype.constructor=CChangesRunItalic;CChangesRunItalic.prototype.Type=AscDFH.historyitem_ParaRun_Italic;CChangesRunItalic.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Italic=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunItalic.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunItalic.prototype.Merge=
|
|
|
|
|
private_ParaRunChangesOnMergeTextPr;function CChangesRunStrikeout(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunStrikeout.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunStrikeout.prototype.constructor=CChangesRunStrikeout;CChangesRunStrikeout.prototype.Type=AscDFH.historyitem_ParaRun_Strikeout;CChangesRunStrikeout.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Strikeout=Value;oRun.Recalc_CompiledPr(false);
|
|
|
|
|
oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunStrikeout.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunStrikeout.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunUnderline(Class,Old,New,Color){AscDFH.CChangesBaseBoolProperty.call(this,Class,Old,New,Color)}CChangesRunUnderline.prototype=Object.create(AscDFH.CChangesBaseBoolProperty.prototype);CChangesRunUnderline.prototype.constructor=
|
|
|
|
|
CChangesRunUnderline;CChangesRunUnderline.prototype.Type=AscDFH.historyitem_ParaRun_Underline;CChangesRunUnderline.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Underline=Value;oRun.Recalc_CompiledPr(false);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunUnderline.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunUnderline.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunFontSize(Class,
|
|
|
|
|
Old,New,Color){AscDFH.CChangesBaseDoubleProperty.call(this,Class,Old,New,Color)}CChangesRunFontSize.prototype=Object.create(AscDFH.CChangesBaseDoubleProperty.prototype);CChangesRunFontSize.prototype.constructor=CChangesRunFontSize;CChangesRunFontSize.prototype.Type=AscDFH.historyitem_ParaRun_FontSize;CChangesRunFontSize.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.FontSize=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunFontSize.prototype.Load=
|
|
|
|
|
function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunFontSize.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunColor(Class,Old,New,Color){AscDFH.CChangesBaseObjectProperty.call(this,Class,Old,New,Color)}CChangesRunColor.prototype=Object.create(AscDFH.CChangesBaseObjectProperty.prototype);CChangesRunColor.prototype.constructor=CChangesRunColor;CChangesRunColor.prototype.Type=AscDFH.historyitem_ParaRun_Color;CChangesRunColor.prototype.private_CreateObject=
|
|
|
|
|
function(){return new CDocumentColor(0,0,0,false)};CChangesRunColor.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.Color=Value;oRun.Recalc_CompiledPr(false);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunColor.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunColor.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunVertAlign(Class,Old,New,Color){AscDFH.CChangesBaseLongProperty.call(this,
|
|
|
|
|
Class,Old,New,Color)}CChangesRunVertAlign.prototype=Object.create(AscDFH.CChangesBaseLongProperty.prototype);CChangesRunVertAlign.prototype.constructor=CChangesRunVertAlign;CChangesRunVertAlign.prototype.Type=AscDFH.historyitem_ParaRun_VertAlign;CChangesRunVertAlign.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.VertAlign=Value;oRun.Recalc_CompiledPr(true);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};CChangesRunVertAlign.prototype.Load=function(Color){this.Redo();
|
|
|
|
|
if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunVertAlign.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunHighLight(Class,Old,New,Color){AscDFH.CChangesBaseProperty.call(this,Class,Old,New,Color)}CChangesRunHighLight.prototype=Object.create(AscDFH.CChangesBaseProperty.prototype);CChangesRunHighLight.prototype.constructor=CChangesRunHighLight;CChangesRunHighLight.prototype.Type=AscDFH.historyitem_ParaRun_HighLight;CChangesRunHighLight.prototype.WriteToBinary=
|
|
|
|
|
function(Writer){var nFlags=0;if(false!==this.Color)nFlags|=1;if(undefined===this.New)nFlags|=2;else if(highlight_None===this.New)nFlags|=4;if(undefined===this.Old)nFlags|=8;else if(highlight_None===this.Old)nFlags|=16;Writer.WriteLong(nFlags);if(undefined!==this.New&&highlight_None!==this.New)this.New.Write_ToBinary(Writer);if(undefined!==this.Old&&highlight_None!==this.Old)this.Old.Write_ToBinary(Writer)};CChangesRunHighLight.prototype.ReadFromBinary=function(Reader){var nFlags=Reader.GetLong();
|
|
|
|
|
if(nFlags&1)this.Color=true;else this.Color=false;if(nFlags&2)this.New=undefined;else if(nFlags&4)this.New=highlight_None;else{this.New=new CDocumentColor(0,0,0);this.New.Read_FromBinary(Reader)}if(nFlags&8)this.Old=undefined;else if(nFlags&16)this.Old=highlight_None;else{this.Old=new CDocumentColor(0,0,0);this.Old.Read_FromBinary(Reader)}};CChangesRunHighLight.prototype.private_SetValue=function(Value){var oRun=this.Class;oRun.Pr.HighLight=Value;oRun.Recalc_CompiledPr(false);oRun.private_UpdateTrackRevisionOnChangeTextPr(false)};
|
|
|
|
|
CChangesRunHighLight.prototype.Load=function(Color){this.Redo();if(this.Color&&Color)this.Class.private_AddCollPrChangeOther(Color)};CChangesRunHighLight.prototype.Merge=private_ParaRunChangesOnMergeTextPr;function CChangesRunRStyle(Class,Old,New,Color){AscDFH.CChangesBaseStringProperty.call(this,Class,Old,New,Color)}CChangesRunRStyle.prototype=Object.create(AscDFH.CChangesBaseStringProperty.prototype);CChangesRunRStyle.prototype.constructor=CChangesRunRStyle;CChangesRunRStyle.prototype.Type=AscDFH.historyitem_ParaRun_RStyle;
|
|
|
|
|