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,44 +9045,58 @@ ...@@ -9043,44 +9045,58 @@
else else
range.setValue(value2[numStyle].text); range.setValue(value2[numStyle].text);
range.setBold(value2[numStyle].format.b); if(!isOneMerge)//settings for text
range.setItalic(value2[numStyle].format.i); {
range.setStrikeout(value2[numStyle].format.s); range.setBold(value2[numStyle].format.b);
if(!isOneMerge && value2[numStyle].format && null != value2[numStyle].format.c) range.setItalic(value2[numStyle].format.i);
range.setFontcolor(value2[numStyle].format.c); range.setStrikeout(value2[numStyle].format.s);
range.setUnderline(value2[numStyle].format.u); if(value2[numStyle].format && null != value2[numStyle].format.c)
range.setFontname(value2[numStyle].format.fn); range.setFontcolor(value2[numStyle].format.c);
range.setFontsize(value2[numStyle].format.fs); range.setUnderline(value2[numStyle].format.u);
range.setFontname(value2[numStyle].format.fn);
range.setFontsize(value2[numStyle].format.fs);
}
} }
else else
range.setValue2(value2); range.setValue2(value2);
range.setAlignVertical(newVal.getAlignVertical());
if(!isOneMerge) if(!isOneMerge)//settings for cell
{
//vertical align
range.setAlignVertical(newVal.getAlignVertical());
//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 nameFormat;
if(numFormat && numFormat.sFormat)
nameFormat = numFormat.sFormat;
if(nameFormat)
range.setNumFormat(nameFormat);
var numFormat = newVal.getNumFormat(); //fill
var nameFormat; range.setFill(newVal.getFill());
if(numFormat && numFormat.sFormat)
nameFormat = numFormat.sFormat;
if(nameFormat)
range.setNumFormat(nameFormat);
range.setFill(newVal.getFill());
range.setWrap(newVal.getWrap()); //wrap
range.setWrap(newVal.getWrap());
var angle = newVal.getAngle(); //angle
if(angle) var angle = newVal.getAngle();
range.setAngle(angle); if(angle)
range.setAngle(angle);
var hyperLink = newVal.getHyperlink(); //hyperLink
if(hyperLink != null) var hyperLink = newVal.getHyperlink();
{ if(hyperLink != null)
hyperLink.Ref = range; {
range.setHyperlink(hyperLink); hyperLink.Ref = range;
range.setHyperlink(hyperLink);
}
} }
} }
} }
......
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