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

asc_CBorder -> asc_CTextBorder

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50879 954022d7-b5bf-4e40-9824-e11837661b57
parent 94b27cff
...@@ -2202,11 +2202,11 @@ prot["asc_clear"] = prot.asc_clear; ...@@ -2202,11 +2202,11 @@ prot["asc_clear"] = prot.asc_clear;
function asc_CParagraphBorders(obj) { function asc_CParagraphBorders(obj) {
if (obj) { if (obj) {
this.Left = (undefined != obj.Left && null != obj.Left) ? new asc_CBorder (obj.Left) : null; this.Left = (undefined != obj.Left && null != obj.Left) ? new asc_CTextBorder (obj.Left) : null;
this.Top = (undefined != obj.Top && null != obj.Top) ? new asc_CBorder (obj.Top) : null; this.Top = (undefined != obj.Top && null != obj.Top) ? new asc_CTextBorder (obj.Top) : null;
this.Right = (undefined != obj.Right && null != obj.Right) ? new asc_CBorder (obj.Right) : null; this.Right = (undefined != obj.Right && null != obj.Right) ? new asc_CTextBorder (obj.Right) : null;
this.Bottom = (undefined != obj.Bottom && null != obj.Bottom) ? new asc_CBorder (obj.Bottom) : null; this.Bottom = (undefined != obj.Bottom && null != obj.Bottom) ? new asc_CTextBorder (obj.Bottom) : null;
this.Between = (undefined != obj.Between && null != obj.Between) ? new asc_CBorder (obj.Between) : null; this.Between = (undefined != obj.Between && null != obj.Between) ? new asc_CTextBorder (obj.Between) : null;
} }
else { else {
this.Left = null; this.Left = null;
...@@ -2219,15 +2219,15 @@ function asc_CParagraphBorders(obj) { ...@@ -2219,15 +2219,15 @@ function asc_CParagraphBorders(obj) {
asc_CParagraphBorders.prototype = { asc_CParagraphBorders.prototype = {
asc_getLeft: function(){return this.Left; }, asc_getLeft: function(){return this.Left; },
asc_putLeft: function(v){this.Left = (v) ? new asc_CBorder (v) : null;}, asc_putLeft: function(v){this.Left = (v) ? new asc_CTextBorder (v) : null;},
asc_getTop: function(){return this.Top; }, asc_getTop: function(){return this.Top; },
asc_putTop: function(v){this.Top = (v) ? new asc_CBorder (v) : null;}, asc_putTop: function(v){this.Top = (v) ? new asc_CTextBorder (v) : null;},
asc_getRight: function(){return this.Right; }, asc_getRight: function(){return this.Right; },
asc_putRight: function(v){this.Right = (v) ? new asc_CBorder (v) : null;}, asc_putRight: function(v){this.Right = (v) ? new asc_CTextBorder (v) : null;},
asc_getBottom: function(){return this.Bottom; }, asc_getBottom: function(){return this.Bottom; },
asc_putBottom: function(v){this.Bottom = (v) ? new asc_CBorder (v) : null;}, asc_putBottom: function(v){this.Bottom = (v) ? new asc_CTextBorder (v) : null;},
asc_getBetween: function(){return this.Between; }, asc_getBetween: function(){return this.Between; },
asc_putBetween: function(v){this.Between = (v) ? new asc_CBorder (v) : null;} asc_putBetween: function(v){this.Between = (v) ? new asc_CTextBorder (v) : null;}
} }
//{ asc_CParagraphBorders export //{ asc_CParagraphBorders export
...@@ -2251,7 +2251,7 @@ prot["asc_putBetween"] = prot.asc_putBetween; ...@@ -2251,7 +2251,7 @@ prot["asc_putBetween"] = prot.asc_putBetween;
// CBorder // CBorder
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
function asc_CBorder(obj) { function asc_CTextBorder(obj) {
if (obj) { if (obj) {
this.Color = (undefined != obj.Color && null != obj.Color) ? CreateAscColorCustomEx(obj.Color.r, obj.Color.g, obj.Color.b) : null; this.Color = (undefined != obj.Color && null != obj.Color) ? CreateAscColorCustomEx(obj.Color.r, obj.Color.g, obj.Color.b) : null;
...@@ -2267,7 +2267,7 @@ function asc_CBorder(obj) { ...@@ -2267,7 +2267,7 @@ function asc_CBorder(obj) {
} }
} }
asc_CBorder.prototype = { asc_CTextBorder.prototype = {
asc_getColor: function(){return this.Color; }, asc_getColor: function(){return this.Color; },
asc_putColor: function(v){this.Color = v;}, asc_putColor: function(v){this.Color = v;},
asc_getSize: function(){return this.Size; }, asc_getSize: function(){return this.Size; },
...@@ -2280,10 +2280,10 @@ asc_CBorder.prototype = { ...@@ -2280,10 +2280,10 @@ asc_CBorder.prototype = {
asc_putForSelectedCells: function(v){this.ForSelectedCells = v;} asc_putForSelectedCells: function(v){this.ForSelectedCells = v;}
} }
//{ asc_CBorder export //{ asc_CTextBorder export
window["Asc"].asc_CBorder = asc_CBorder; window["Asc"].asc_CTextBorder = asc_CTextBorder;
window["Asc"]["asc_CBorder"] = asc_CBorder; window["Asc"]["asc_CTextBorder"] = asc_CTextBorder;
prot = asc_CBorder.prototype; prot = asc_CTextBorder.prototype;
prot["asc_getColor"] = prot.asc_getColor; prot["asc_getColor"] = prot.asc_getColor;
prot["asc_putColor"] = prot.asc_putColor; prot["asc_putColor"] = prot.asc_putColor;
......
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