Commit 8a4a8601 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 24518 - [CoEdit] Пользователь не получает автофигуру, скопированную через ctrl

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56778 954022d7-b5bf-4e40-9824-e11837661b57
parent caa8d2a4
......@@ -6916,13 +6916,7 @@ function StyleRef()
this.createDuplicate = function()
{
var duplicate = new StyleRef();
duplicate.idx = this.idx;
duplicate.Color = this.Color.createDuplicate();
return duplicate;
}
this.isIdentical = function(styleRef)
{
......@@ -6972,6 +6966,15 @@ StyleRef.prototype =
this.Color = color;
},
createDuplicate: function()
{
var duplicate = new StyleRef();
duplicate.setIdx(this.idx);
if(this.Color)
duplicate.setColor(this.Color.createDuplicate());
return duplicate;
},
Refresh_RecalcData: function()
{},
......@@ -7093,14 +7096,7 @@ function FontRef()
this.idx = fntStyleInd_none;
this.Color = null;//new CUniColor();
this.createDuplicate = function()
{
var duplicate = new FontRef();
duplicate.idx = this.idx;
if(this.Color)
duplicate.Color = this.Color.createDuplicate();
return duplicate;
}
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
......@@ -7132,6 +7128,15 @@ FontRef.prototype =
this.Color = color;
},
createDuplicate: function()
{
var duplicate = new FontRef();
duplicate.setIdx(this.idx);
if(this.Color)
duplicate.setColor(this.Color.createDuplicate());
return duplicate;
},
Undo: function(data)
{
switch(data.Type)
......@@ -7277,28 +7282,7 @@ function CShapeStyle()
}
}
this.createDuplicate = function()
{
var duplicate = new CShapeStyle();
if(this.lnRef!=null)
{
duplicate.lnRef = this.lnRef.createDuplicate();
}
if(this.fillRef!=null)
{
duplicate.fillRef = this.fillRef.createDuplicate();
}
if(this.effectRef!=null)
{
duplicate.effectRef = this.effectRef.createDuplicate();
}
if(this.fontRef!=null)
{
duplicate.fontRef = this.fontRef.createDuplicate();
}
return duplicate;
}
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
......@@ -7325,6 +7309,28 @@ CShapeStyle.prototype =
this.Id = r.GetString2();
},
createDuplicate: function()
{
var duplicate = new CShapeStyle();
if(this.lnRef!=null)
{
duplicate.setLnRef(this.lnRef.createDuplicate());
}
if(this.fillRef!=null)
{
duplicate.setFillRef(this.fillRef.createDuplicate());
}
if(this.effectRef!=null)
{
duplicate.setEffectRef(this.effectRef.createDuplicate());
}
if(this.fontRef!=null)
{
duplicate.setFontRef(this.fontRef.createDuplicate());
}
return duplicate;
},
getObjectType: function()
{
return historyitem_type_ShapeStyle;
......
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