Commit 4af80bb5 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

refactoring _onSetFontAttributes

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57954 954022d7-b5bf-4e40-9824-e11837661b57
parent b23bbaed
......@@ -1142,21 +1142,21 @@
WorkbookView.prototype._onSetFontAttributes = function (prop) {
var val;
var selectionInfo = this.getWorksheet().getSelectionInfo();
var selectionInfo = this.getWorksheet().getSelectionInfo().asc_getFont();
switch (prop) {
case "b":
val = !(selectionInfo.asc_getFont().asc_getBold());
val = !(selectionInfo.asc_getBold());
break;
case "i":
val = !(selectionInfo.asc_getFont().asc_getItalic());
val = !(selectionInfo.asc_getItalic());
break;
case "u":
// ToDo для двойного подчеркивания нужно будет немного переделать схему
val = !(selectionInfo.asc_getFont().asc_getUnderline());
val = !(selectionInfo.asc_getUnderline());
val = val ? Asc.EUnderline.underlineSingle : Asc.EUnderline.underlineNone;
break;
case "s":
val = !(selectionInfo.asc_getFont().asc_getStrikeout());
val = !(selectionInfo.asc_getStrikeout());
break;
}
return this.setFontAttributes(prop, val);
......
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