Commit a8094ba4 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

применение свойств для автофигур

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48166 954022d7-b5bf-4e40-9824-e11837661b57
parent 768136f2
...@@ -649,6 +649,7 @@ DrawingObjectsController.prototype = ...@@ -649,6 +649,7 @@ DrawingObjectsController.prototype =
} }
} }
} }
this.drawingObjects.showDrawingObjects(true);
} }
}; };
......
...@@ -232,13 +232,14 @@ CShape.prototype = ...@@ -232,13 +232,14 @@ CShape.prototype =
calculateFill: function() calculateFill: function()
{ {
/*var theme = this.document.theme; var api = window["Asc"]["editor"];
var theme = api.wbModel.theme;
var brush; var brush;
var colorMap = this.document.clrSchemeMap.color_map; var colorMap = api.wbModel.clrSchemeMap.color_map;
var RGBA = {R: 0, G: 0, B: 0, A: 255}; var RGBA = {R: 0, G: 0, B: 0, A: 255};
if (colorMap == null) if (colorMap == null)
colorMap = GenerateDefaultColorMap().color_map; colorMap = GenerateDefaultColorMap().color_map;
if (theme && this.style != null && this.style.fillRef!=null) if (theme && this.style != null && this.style.fillRef != null)
{ {
brush = theme.getFillStyle(this.style.fillRef.idx); brush = theme.getFillStyle(this.style.fillRef.idx);
this.style.fillRef.Color.Calculate(theme, colorMap, {R:0, G:0, B:0, A:255}); this.style.fillRef.Color.Calculate(theme, colorMap, {R:0, G:0, B:0, A:255});
...@@ -260,15 +261,16 @@ CShape.prototype = ...@@ -260,15 +261,16 @@ CShape.prototype =
brush.merge(this.spPr.Fill); brush.merge(this.spPr.Fill);
this.brush = brush; this.brush = brush;
this.brush.calculate(theme, colorMap, RGBA);*/ this.brush.calculate(theme, colorMap, RGBA);
}, },
calculateLine: function() calculateLine: function()
{ {
/*var _calculated_line; var api = window["Asc"]["editor"];
var _theme = this.document.theme; var _calculated_line;
var colorMap = this.document.clrSchemeMap.color_map; var _theme = api.wbModel.theme;
if(colorMap==null) var colorMap = api.wbModel.clrSchemeMap.color_map;
if (colorMap == null)
colorMap = GenerateDefaultColorMap().color_map; colorMap = GenerateDefaultColorMap().color_map;
var RGBA = {R: 0, G: 0, B: 0, A: 255}; var RGBA = {R: 0, G: 0, B: 0, A: 255};
if(_theme !== null && typeof _theme === "object" && typeof _theme.getLnStyle === "function" if(_theme !== null && typeof _theme === "object" && typeof _theme.getLnStyle === "function"
...@@ -287,12 +289,12 @@ CShape.prototype = ...@@ -287,12 +289,12 @@ CShape.prototype =
_calculated_line.merge(this.spPr.ln); _calculated_line.merge(this.spPr.ln);
if(_calculated_line.Fill!=null) if (_calculated_line.Fill!=null)
{ {
_calculated_line.Fill.calculate(_theme, colorMap, RGBA) ; _calculated_line.Fill.calculate(_theme, colorMap, RGBA) ;
} }
this.pen = _calculated_line;*/ this.pen = _calculated_line;
}, },
setPosition: function(x, y) setPosition: function(x, y)
......
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