Commit 318667ac authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

правка бага с потерей некоторых свойств ячеек таблицы при копировании

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52913 954022d7-b5bf-4e40-9824-e11837661b57
parent 936e935e
...@@ -20712,7 +20712,9 @@ CTableCell.prototype = ...@@ -20712,7 +20712,9 @@ CTableCell.prototype =
var Shd_new = var Shd_new =
{ {
Value : OtherPr.Shd.Value, Value : OtherPr.Shd.Value,
Color : { r : OtherPr.Shd.Color.r, g : OtherPr.Shd.Color.g, b : OtherPr.Shd.Color.b } Color : { r : OtherPr.Shd.Color.r, g : OtherPr.Shd.Color.g, b : OtherPr.Shd.Color.b },
unifill: OtherPr.Shd.unifill ? OtherPr.Shd.unifill.createDuplicate() : null,
fillRef: OtherPr.Shd.fillRef ? OtherPr.Shd.fillRef.createDuplicate() : null
}; };
this.Set_Shd( Shd_new ); this.Set_Shd( Shd_new );
...@@ -20737,7 +20739,8 @@ CTableCell.prototype = ...@@ -20737,7 +20739,8 @@ CTableCell.prototype =
Value : OtherPr.TableCellBorders.Top.Value, Value : OtherPr.TableCellBorders.Top.Value,
Size : OtherPr.TableCellBorders.Top.Size, Size : OtherPr.TableCellBorders.Top.Size,
Color : { r : OtherPr.TableCellBorders.Top.Color.r, g : OtherPr.TableCellBorders.Top.Color.g, b : OtherPr.TableCellBorders.Top.Color.b }, Color : { r : OtherPr.TableCellBorders.Top.Color.r, g : OtherPr.TableCellBorders.Top.Color.g, b : OtherPr.TableCellBorders.Top.Color.b },
Space : OtherPr.TableCellBorders.Top.Space Space : OtherPr.TableCellBorders.Top.Space,
unifill: OtherPr.TableCellBorders.Top.unifill ? OtherPr.TableCellBorders.Top.unifill.createDuplicate() : null
} ); } );
this.Set_Border( Border_top_new, 0 ); this.Set_Border( Border_top_new, 0 );
...@@ -20753,7 +20756,8 @@ CTableCell.prototype = ...@@ -20753,7 +20756,8 @@ CTableCell.prototype =
Value : OtherPr.TableCellBorders.Bottom.Value, Value : OtherPr.TableCellBorders.Bottom.Value,
Size : OtherPr.TableCellBorders.Bottom.Size, Size : OtherPr.TableCellBorders.Bottom.Size,
Color : { r : OtherPr.TableCellBorders.Bottom.Color.r, g : OtherPr.TableCellBorders.Bottom.Color.g, b : OtherPr.TableCellBorders.Bottom.Color.b }, Color : { r : OtherPr.TableCellBorders.Bottom.Color.r, g : OtherPr.TableCellBorders.Bottom.Color.g, b : OtherPr.TableCellBorders.Bottom.Color.b },
Space : OtherPr.TableCellBorders.Bottom.Space Space : OtherPr.TableCellBorders.Bottom.Space,
unifill: OtherPr.TableCellBorders.Bottom.unifill ? OtherPr.TableCellBorders.Bottom.unifill.createDuplicate() : null
} ); } );
this.Set_Border( Border_bottom_new, 2 ); this.Set_Border( Border_bottom_new, 2 );
...@@ -20769,7 +20773,8 @@ CTableCell.prototype = ...@@ -20769,7 +20773,8 @@ CTableCell.prototype =
Value : OtherPr.TableCellBorders.Left.Value, Value : OtherPr.TableCellBorders.Left.Value,
Size : OtherPr.TableCellBorders.Left.Size, Size : OtherPr.TableCellBorders.Left.Size,
Color : { r : OtherPr.TableCellBorders.Left.Color.r, g : OtherPr.TableCellBorders.Left.Color.g, b : OtherPr.TableCellBorders.Left.Color.b }, Color : { r : OtherPr.TableCellBorders.Left.Color.r, g : OtherPr.TableCellBorders.Left.Color.g, b : OtherPr.TableCellBorders.Left.Color.b },
Space : OtherPr.TableCellBorders.Left.Space Space : OtherPr.TableCellBorders.Left.Space ,
unifill: OtherPr.TableCellBorders.Left.unifill ? OtherPr.TableCellBorders.Left.unifill.createDuplicate() : null
} ); } );
this.Set_Border( Border_left_new, 3 ); this.Set_Border( Border_left_new, 3 );
...@@ -20785,7 +20790,8 @@ CTableCell.prototype = ...@@ -20785,7 +20790,8 @@ CTableCell.prototype =
Value : OtherPr.TableCellBorders.Right.Value, Value : OtherPr.TableCellBorders.Right.Value,
Size : OtherPr.TableCellBorders.Right.Size, Size : OtherPr.TableCellBorders.Right.Size,
Color : { r : OtherPr.TableCellBorders.Right.Color.r, g : OtherPr.TableCellBorders.Right.Color.g, b : OtherPr.TableCellBorders.Right.Color.b }, Color : { r : OtherPr.TableCellBorders.Right.Color.r, g : OtherPr.TableCellBorders.Right.Color.g, b : OtherPr.TableCellBorders.Right.Color.b },
Space : OtherPr.TableCellBorders.Right.Space Space : OtherPr.TableCellBorders.Right.Space,
unifill: OtherPr.TableCellBorders.Right.unifill ? OtherPr.TableCellBorders.Right.unifill.createDuplicate() : null
} ); } );
this.Set_Border( Border_right_new, 1 ); this.Set_Border( Border_right_new, 1 );
...@@ -21241,6 +21247,7 @@ CTableCell.prototype = ...@@ -21241,6 +21247,7 @@ CTableCell.prototype =
NewBorder.Color.r = ( null != Border.Color ? Border.Color.r : NewBorder.Color.r ); NewBorder.Color.r = ( null != Border.Color ? Border.Color.r : NewBorder.Color.r );
NewBorder.Color.g = ( null != Border.Color ? Border.Color.g : NewBorder.Color.g ); NewBorder.Color.g = ( null != Border.Color ? Border.Color.g : NewBorder.Color.g );
NewBorder.Color.b = ( null != Border.Color ? Border.Color.b : NewBorder.Color.b ); NewBorder.Color.b = ( null != Border.Color ? Border.Color.b : NewBorder.Color.b );
NewBorder.unifill = Border.unifill ? Border.unifill.createDuplicate() : null;
History.Add( this, { Type : HistoryType, Old : null, New : NewBorder } ); History.Add( this, { Type : HistoryType, Old : null, New : NewBorder } );
...@@ -21262,6 +21269,7 @@ CTableCell.prototype = ...@@ -21262,6 +21269,7 @@ CTableCell.prototype =
NewBorder.Color.r = ( null != Border.Color ? Border.Color.r : DstBorder.Color.r ); NewBorder.Color.r = ( null != Border.Color ? Border.Color.r : DstBorder.Color.r );
NewBorder.Color.g = ( null != Border.Color ? Border.Color.g : DstBorder.Color.g ); NewBorder.Color.g = ( null != Border.Color ? Border.Color.g : DstBorder.Color.g );
NewBorder.Color.b = ( null != Border.Color ? Border.Color.b : DstBorder.Color.b ); NewBorder.Color.b = ( null != Border.Color ? Border.Color.b : DstBorder.Color.b );
NewBorder.unifill = Border.unifill ? Border.unifill.createDuplicate() : null;
History.Add( this, { Type : HistoryType, Old : DstBorder, New : NewBorder } ); History.Add( this, { Type : HistoryType, Old : DstBorder, New : NewBorder } );
......
...@@ -1118,11 +1118,11 @@ CGraphicObjects.prototype = { ...@@ -1118,11 +1118,11 @@ CGraphicObjects.prototype = {
} }
this.State.textObject.updateInterfaceTextState(); this.State.textObject.updateInterfaceTextState();
if(this.State.textObject.isTable && this.State.textObject.isTable()) //if(this.State.textObject.isTable && this.State.textObject.isTable())
{ //{
editor.sync_TblPropCallback(this.State.textObject.graphicObject.Get_Props()); // editor.sync_TblPropCallback(this.State.textObject.graphicObject.Get_Props());
this.slide.presentation.DrawingDocument.CheckTableStyles(this.State.textObject.graphicObject.Get_TableLook(), this.State.textObject); // this.slide.presentation.DrawingDocument.CheckTableStyles(this.State.textObject.graphicObject.Get_TableLook(), this.State.textObject);
} //}
} }
else else
{ {
......
...@@ -2058,7 +2058,11 @@ function CBorder (obj) ...@@ -2058,7 +2058,11 @@ function CBorder (obj)
this.Size = (undefined != obj.Size) ? obj.Size : null; this.Size = (undefined != obj.Size) ? obj.Size : null;
this.Value = (undefined != obj.Value) ? obj.Value : null; this.Value = (undefined != obj.Value) ? obj.Value : null;
this.Space = (undefined != obj.Space) ? obj.Space : null; this.Space = (undefined != obj.Space) ? obj.Space : null;
this.unifill = (undefined != obj.unifill) ? CreateAscFill(obj.unifill) : null; this.fill = (undefined != obj.unifill) ? CreateAscFill(obj.unifill) : null;
if(obj.fill != undefined)
{
this.fill = obj.fill;
}
} }
else else
{ {
...@@ -2083,12 +2087,12 @@ CBorder.prototype.put_ForSelectedCells = function(v){this.ForSelectedCells = v;} ...@@ -2083,12 +2087,12 @@ CBorder.prototype.put_ForSelectedCells = function(v){this.ForSelectedCells = v;}
CBorder.prototype.put_Fill = function(v) CBorder.prototype.put_Fill = function(v)
{ {
this.unifill = v; this.fill = v;
} }
CBorder.prototype.get_Fill = function() CBorder.prototype.get_Fill = function()
{ {
return this.unifill; return this.fill;
} }
CBorder.prototype.put_LnRef = function(v) CBorder.prototype.put_LnRef = function(v)
......
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