Commit 7fd01199 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fixed typos

parent de0bb9ea
...@@ -149,7 +149,8 @@ ...@@ -149,7 +149,8 @@
window['AscDFH'].CChangesDrawingsObjectNoId = CChangesDrawingsObjectNoId; window['AscDFH'].CChangesDrawingsObjectNoId = CChangesDrawingsObjectNoId;
CChangesDrawingsObjectNoId.prototype.ReadFromBinary = function (reader) { CChangesDrawingsObjectNoId.prototype.ReadFromBinary = function (reader) {
reader.Seek2(reader.GetCurPos() - 4); reader.Seek2(reader.GetCurPos() - 4);
this.Type = reader.GetLong(); var nType = reader.GetLong();
this.Type = nType;
this.FromLoad = true; this.FromLoad = true;
CChangesDrawingsObjectNoId.superclass.ReadFromBinary.call(this, reader); CChangesDrawingsObjectNoId.superclass.ReadFromBinary.call(this, reader);
}; };
......
...@@ -38,12 +38,12 @@ var History = AscCommon.History; ...@@ -38,12 +38,12 @@ var History = AscCommon.History;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetMaster] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetMaster] = AscDFH.CChangesDrawingsObject;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetMatchingName] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetMatchingName] = AscDFH.CChangesDrawingsObject;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetType] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetType] = AscDFH.CChangesDrawingsLong;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetBg] = AscDFH.CChangesDrawingsObjectNoId; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetBg] = AscDFH.CChangesDrawingsObjectNoId;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetCSldName] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetCSldName] = AscDFH.CChangesDrawingsString;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetShow] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetShow] = AscDFH.CChangesDrawingsBool;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetShowPhAnim] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetShowPhAnim] = AscDFH.CChangesDrawingsBool;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetShowMasterSp] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetShowMasterSp] = AscDFH.CChangesDrawingsBool;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetClrMapOverride] = AscDFH.CChangesDrawingsObject; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetClrMapOverride] = AscDFH.CChangesDrawingsObject;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutAddToSpTree] = AscDFH.CChangesDrawingsContent; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutAddToSpTree] = AscDFH.CChangesDrawingsContent;
AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetSize] = AscDFH.CChangesDrawingsObjectNoId; AscDFH.changesFactory[AscDFH.historyitem_SlideLayoutSetSize] = AscDFH.CChangesDrawingsObjectNoId;
...@@ -76,6 +76,7 @@ AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetShow] = ...@@ -76,6 +76,7 @@ AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetShow] =
AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetShowPhAnim] = function(oClass, value){oClass.showMasterPhAnim = value;}; AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetShowPhAnim] = function(oClass, value){oClass.showMasterPhAnim = value;};
AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetShowMasterSp] = function(oClass, value){oClass.showMasterSp = value;}; AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetShowMasterSp] = function(oClass, value){oClass.showMasterSp = value;};
AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetClrMapOverride] = function(oClass, value){oClass.clrMap = value;}; AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetClrMapOverride] = function(oClass, value){oClass.clrMap = value;};
AscDFH.drawingsChangesMap[AscDFH.historyitem_SlideLayoutSetSize] = function(oClass, value){oClass.Width = value.a; oClass.Height = value.b;};
AscDFH.drawingContentChanges[AscDFH.historyitem_SlideLayoutAddToSpTree] = function(oClass){ AscDFH.drawingContentChanges[AscDFH.historyitem_SlideLayoutAddToSpTree] = function(oClass){
return oClass.cSld.spTree; return oClass.cSld.spTree;
...@@ -151,7 +152,7 @@ SlideLayout.prototype = ...@@ -151,7 +152,7 @@ SlideLayout.prototype =
setType: function(type) setType: function(type)
{ {
History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_SlideLayoutSetType, this.type, type)); History.Add(new AscDFH.CChangesDrawingsLong(this, AscDFH.historyitem_SlideLayoutSetType, this.type, type));
this.type = type; this.type = type;
}, },
...@@ -163,24 +164,24 @@ SlideLayout.prototype = ...@@ -163,24 +164,24 @@ SlideLayout.prototype =
setCSldName: function(name) setCSldName: function(name)
{ {
History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_SlideLayoutSetCSldName, this.cSld.name, name)); History.Add(new AscDFH.CChangesDrawingsString(this, AscDFH.historyitem_SlideLayoutSetCSldName, this.cSld.name, name));
this.cSld.name = name; this.cSld.name = name;
}, },
setShow: function(bShow) setShow: function(bShow)
{ {
History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_SlideLayoutSetShow, this.show, bShow)); History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_SlideLayoutSetShow, this.show, bShow));
this.show = bShow; this.show = bShow;
}, },
setShowPhAnim: function(bShow) setShowPhAnim: function(bShow)
{ {
History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_SlideLayoutSetShowPhAnim, this.showMasterPhAnim, bShow)); History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_SlideLayoutSetShowPhAnim, this.showMasterPhAnim, bShow));
this.showMasterPhAnim = bShow; this.showMasterPhAnim = bShow;
}, },
setShowMasterSp: function(bShow) setShowMasterSp: function(bShow)
{ {
History.Add(new AscDFH.CChangesDrawingsObject(this, AscDFH.historyitem_SlideLayoutSetShowMasterSp, this.showMasterSp, bShow)); History.Add(new AscDFH.CChangesDrawingsBool(this, AscDFH.historyitem_SlideLayoutSetShowMasterSp, this.showMasterSp, bShow));
this.showMasterSp = bShow; this.showMasterSp = bShow;
}, },
......
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