Commit c55d3910 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete asc_n2Color, colorNumber, numberToAscColor

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52572 954022d7-b5bf-4e40-9824-e11837661b57
parent bd3c97ee
...@@ -14,13 +14,6 @@ var asc = window["Asc"]; ...@@ -14,13 +14,6 @@ var asc = window["Asc"];
var asc_round = asc.round; var asc_round = asc.round;
var asc_floor = asc.floor; var asc_floor = asc.floor;
function numberToAscColor(n) {
var r = (n >> 16) & 0xff;
var g = (n >> 8) & 0xff;
var b = n & 0xff;
return CreateAscColorCustom(r, g, b);
}
function colorObjToAscColor(color) { function colorObjToAscColor(color) {
var oRes = null; var oRes = null;
var n = color.getRgb(); var n = color.getRgb();
...@@ -1181,7 +1174,6 @@ DrawingContext.prototype = { ...@@ -1181,7 +1174,6 @@ DrawingContext.prototype = {
window["Asc"].getCvtRatio = getCvtRatio; window["Asc"].getCvtRatio = getCvtRatio;
window["Asc"].calcNearestPt = calcNearestPt; window["Asc"].calcNearestPt = calcNearestPt;
window["Asc"].numberToAscColor = numberToAscColor;
window["Asc"].colorObjToAscColor = colorObjToAscColor; window["Asc"].colorObjToAscColor = colorObjToAscColor;
window["Asc"].FontProperties = FontProperties; window["Asc"].FontProperties = FontProperties;
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
var asc_floor = asc.floor; var asc_floor = asc.floor;
var asc_ceil = asc.ceil; var asc_ceil = asc.ceil;
var asc_round = asc.round; var asc_round = asc.round;
var asc_n2Color = asc.numberToAscColor;
var asc_obj2Color = asc.colorObjToAscColor; var asc_obj2Color = asc.colorObjToAscColor;
var asc_typeof = asc.typeOf; var asc_typeof = asc.typeOf;
var asc_incDecFonSize = asc.incDecFonSize; var asc_incDecFonSize = asc.incDecFonSize;
...@@ -188,8 +187,7 @@ ...@@ -188,8 +187,7 @@
defaultState: { defaultState: {
background: new CColor(255, 255, 255), background: new CColor(255, 255, 255),
border: new CColor(218, 220, 221), border: new CColor(218, 220, 221),
color: new CColor(0, 0, 0), color: new CColor(0, 0, 0)
colorNumber : 0
}, },
padding: 2/*px horizontal padding*/ padding: 2/*px horizontal padding*/
}; };
...@@ -5630,9 +5628,9 @@ ...@@ -5630,9 +5628,9 @@
cell_info.font.strikeout = c.getStrikeout(); cell_info.font.strikeout = c.getStrikeout();
cell_info.font.subscript = fa === "subscript"; cell_info.font.subscript = fa === "subscript";
cell_info.font.superscript = fa === "superscript"; cell_info.font.superscript = fa === "superscript";
cell_info.font.color = (fc ? asc_obj2Color(fc) : asc_n2Color(c_opt.defaultState.colorNumber)); cell_info.font.color = (fc ? asc_obj2Color(fc) : new CAscColor(c_opt.defaultState.color));
cell_info.fill = new asc_CFill((null !== bg && undefined !== bg) ? asc_obj2Color(bg) : bg); cell_info.fill = new asc_CFill((null != bg) ? asc_obj2Color(bg) : bg);
cell_info.border = new asc_CBorders(); cell_info.border = new asc_CBorders();
cell_info.border.left = new asc_CBorder(b.l.s, b.l.c); cell_info.border.left = new asc_CBorder(b.l.s, b.l.c);
...@@ -5753,7 +5751,7 @@ ...@@ -5753,7 +5751,7 @@
} }
// Заливка не нужна как таковая // Заливка не нужна как таковая
objectInfo.fill = new asc_CFill(asc_n2Color(0)); objectInfo.fill = new asc_CFill(null);
// ToDo locks // ToDo locks
......
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