Commit b01ab8be authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=15081 - Копируются свойства Background и...

http://bugzserver/show_bug.cgi?id=15081 - Копируются свойства Background и Font Color в смерженную ячейку

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58527 954022d7-b5bf-4e40-9824-e11837661b57
parent 7eebada9
...@@ -9026,7 +9026,9 @@ ...@@ -9026,7 +9026,9 @@
var numStyle = 0; var numStyle = 0;
if(skipFormat != null && noSkipVal!= null) if(skipFormat != null && noSkipVal!= null)
numStyle = noSkipVal; numStyle = noSkipVal;
if(newVal.getFormula()){
//formula
if(newVal.getFormula() && !isOneMerge){
var offset = range.getCells()[numFormula].getOffset2(value2[numFormula].sId), var offset = range.getCells()[numFormula].getOffset2(value2[numFormula].sId),
assemb, assemb,
_p_ = new parserFormula(value2[numFormula].sFormula,"",range.worksheet); _p_ = new parserFormula(value2[numFormula].sFormula,"",range.worksheet);
...@@ -9043,24 +9045,33 @@ ...@@ -9043,24 +9045,33 @@
else else
range.setValue(value2[numStyle].text); range.setValue(value2[numStyle].text);
if(!isOneMerge)//settings for text
{
range.setBold(value2[numStyle].format.b); range.setBold(value2[numStyle].format.b);
range.setItalic(value2[numStyle].format.i); range.setItalic(value2[numStyle].format.i);
range.setStrikeout(value2[numStyle].format.s); range.setStrikeout(value2[numStyle].format.s);
if(!isOneMerge && value2[numStyle].format && null != value2[numStyle].format.c) if(value2[numStyle].format && null != value2[numStyle].format.c)
range.setFontcolor(value2[numStyle].format.c); range.setFontcolor(value2[numStyle].format.c);
range.setUnderline(value2[numStyle].format.u); range.setUnderline(value2[numStyle].format.u);
range.setFontname(value2[numStyle].format.fn); range.setFontname(value2[numStyle].format.fn);
range.setFontsize(value2[numStyle].format.fs); range.setFontsize(value2[numStyle].format.fs);
} }
}
else else
range.setValue2(value2); range.setValue2(value2);
if(!isOneMerge)//settings for cell
{
//vertical align
range.setAlignVertical(newVal.getAlignVertical()); range.setAlignVertical(newVal.getAlignVertical());
if(!isOneMerge)
//horizontal align
range.setAlignHorizontal(newVal.getAlignHorizontal()); range.setAlignHorizontal(newVal.getAlignHorizontal());
if(!isOneMerge) //borders
range.setBorderSrc(newVal.getBorderFull()); range.setBorderSrc(newVal.getBorderFull());
//format
var numFormat = newVal.getNumFormat(); var numFormat = newVal.getNumFormat();
var nameFormat; var nameFormat;
if(numFormat && numFormat.sFormat) if(numFormat && numFormat.sFormat)
...@@ -9068,14 +9079,18 @@ ...@@ -9068,14 +9079,18 @@
if(nameFormat) if(nameFormat)
range.setNumFormat(nameFormat); range.setNumFormat(nameFormat);
//fill
range.setFill(newVal.getFill()); range.setFill(newVal.getFill());
//wrap
range.setWrap(newVal.getWrap()); range.setWrap(newVal.getWrap());
//angle
var angle = newVal.getAngle(); var angle = newVal.getAngle();
if(angle) if(angle)
range.setAngle(angle); range.setAngle(angle);
//hyperLink
var hyperLink = newVal.getHyperlink(); var hyperLink = newVal.getHyperlink();
if(hyperLink != null) if(hyperLink != null)
{ {
...@@ -9087,6 +9102,7 @@ ...@@ -9087,6 +9102,7 @@
} }
} }
} }
}
if(isMultiple) if(isMultiple)
{ {
arn.r2 = trueArn.r2; arn.r2 = trueArn.r2;
......
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