[SSE] Add asc_ prefix
This commit is contained in:
parent
fdf9dd4ea8
commit
dc522ea16b
|
@ -1251,7 +1251,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
||||||
this.cmbPercent.setValue(isPercent ? 1 : 0);
|
this.cmbPercent.setValue(isPercent ? 1 : 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var xfs = this.xfsFormat ? this.xfsFormat : (new Asc.CellXfs());
|
var xfs = this.xfsFormat ? this.xfsFormat : (new Asc.asc_CellXfs());
|
||||||
this.fillXfsFormatInfo(xfs);
|
this.fillXfsFormatInfo(xfs);
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
|
@ -1581,7 +1581,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
||||||
},
|
},
|
||||||
|
|
||||||
onFormatsSelect: function(menu, item) {
|
onFormatsSelect: function(menu, item) {
|
||||||
var xfs = new Asc.CellXfs();
|
var xfs = new Asc.asc_CellXfs();
|
||||||
var settings = item.options.presetSettings;
|
var settings = item.options.presetSettings;
|
||||||
settings && settings.fontColor && xfs.asc_setFontColor(Common.Utils.ThemeColor.getRgbColor(settings.fontColor));
|
settings && settings.fontColor && xfs.asc_setFontColor(Common.Utils.ThemeColor.getRgbColor(settings.fontColor));
|
||||||
settings && settings.fillColor && xfs.asc_setFillColor(Common.Utils.ThemeColor.getRgbColor(settings.fillColor));
|
settings && settings.fillColor && xfs.asc_setFillColor(Common.Utils.ThemeColor.getRgbColor(settings.fillColor));
|
||||||
|
@ -1604,29 +1604,29 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
||||||
clearFormat: function() {
|
clearFormat: function() {
|
||||||
this.xfsFormat = null;
|
this.xfsFormat = null;
|
||||||
this._changedProps && this._changedProps.asc_setDxf(null);
|
this._changedProps && this._changedProps.asc_setDxf(null);
|
||||||
this.fillXfsFormatInfo(new Asc.CellXfs());
|
this.fillXfsFormatInfo(new Asc.asc_CellXfs());
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
|
|
||||||
onBoldClick: function() {
|
onBoldClick: function() {
|
||||||
!this.xfsFormat && (this.xfsFormat = new Asc.CellXfs());
|
!this.xfsFormat && (this.xfsFormat = new Asc.asc_CellXfs());
|
||||||
this.xfsFormat.asc_setFontBold(this.btnBold.isActive());
|
this.xfsFormat.asc_setFontBold(this.btnBold.isActive());
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
|
|
||||||
onItalicClick: function() {
|
onItalicClick: function() {
|
||||||
!this.xfsFormat && (this.xfsFormat = new Asc.CellXfs());
|
!this.xfsFormat && (this.xfsFormat = new Asc.asc_CellXfs());
|
||||||
this.xfsFormat.asc_setFontItalic(this.btnItalic.isActive());
|
this.xfsFormat.asc_setFontItalic(this.btnItalic.isActive());
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
|
|
||||||
onUnderlineClick: function() {
|
onUnderlineClick: function() {
|
||||||
!this.xfsFormat && (this.xfsFormat = new Asc.CellXfs());
|
!this.xfsFormat && (this.xfsFormat = new Asc.asc_CellXfs());
|
||||||
this.xfsFormat.asc_setFontUnderline(this.btnUnderline.isActive());
|
this.xfsFormat.asc_setFontUnderline(this.btnUnderline.isActive());
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
onStrikeoutClick: function() {
|
onStrikeoutClick: function() {
|
||||||
!this.xfsFormat && (this.xfsFormat = new Asc.CellXfs());
|
!this.xfsFormat && (this.xfsFormat = new Asc.asc_CellXfs());
|
||||||
this.xfsFormat.asc_setFontStrikeout(this.btnStrikeout.isActive());
|
this.xfsFormat.asc_setFontStrikeout(this.btnStrikeout.isActive());
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
|
@ -1691,7 +1691,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
||||||
} else if (item.options.borderId != 'none') {
|
} else if (item.options.borderId != 'none') {
|
||||||
new_borders[item.options.borderId] = new Asc.asc_CBorder(bordersWidth, bordersColor);
|
new_borders[item.options.borderId] = new Asc.asc_CBorder(bordersWidth, bordersColor);
|
||||||
}
|
}
|
||||||
!this.xfsFormat && (this.xfsFormat = new Asc.CellXfs());
|
!this.xfsFormat && (this.xfsFormat = new Asc.asc_CellXfs());
|
||||||
this.xfsFormat.asc_setBorder(new_borders);
|
this.xfsFormat.asc_setBorder(new_borders);
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
}
|
}
|
||||||
|
@ -1703,7 +1703,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
||||||
$('.btn-color-value-line', this.btnTextColor.cmpEl).css('background-color', '#' + clr);
|
$('.btn-color-value-line', this.btnTextColor.cmpEl).css('background-color', '#' + clr);
|
||||||
picker.currentColor = color;
|
picker.currentColor = color;
|
||||||
|
|
||||||
!this.xfsFormat && (this.xfsFormat = new Asc.CellXfs());
|
!this.xfsFormat && (this.xfsFormat = new Asc.asc_CellXfs());
|
||||||
this.xfsFormat.asc_setFontColor(Common.Utils.ThemeColor.getRgbColor(this.mnuTextColorPicker.currentColor));
|
this.xfsFormat.asc_setFontColor(Common.Utils.ThemeColor.getRgbColor(this.mnuTextColorPicker.currentColor));
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
|
@ -1718,7 +1718,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
||||||
$('.btn-color-value-line', this.btnFillColor.cmpEl).css('background-color', clr=='transparent' ? 'transparent' : '#' + clr);
|
$('.btn-color-value-line', this.btnFillColor.cmpEl).css('background-color', clr=='transparent' ? 'transparent' : '#' + clr);
|
||||||
picker.currentColor = color;
|
picker.currentColor = color;
|
||||||
|
|
||||||
!this.xfsFormat && (this.xfsFormat = new Asc.CellXfs());
|
!this.xfsFormat && (this.xfsFormat = new Asc.asc_CellXfs());
|
||||||
this.xfsFormat.asc_setFillColor(this.mnuFillColorPicker.currentColor == 'transparent' ? null : Common.Utils.ThemeColor.getRgbColor(this.mnuFillColorPicker.currentColor));
|
this.xfsFormat.asc_setFillColor(this.mnuFillColorPicker.currentColor == 'transparent' ? null : Common.Utils.ThemeColor.getRgbColor(this.mnuFillColorPicker.currentColor));
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
|
@ -1728,7 +1728,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
||||||
},
|
},
|
||||||
|
|
||||||
onNumberFormatSelect: function(combo, record) {
|
onNumberFormatSelect: function(combo, record) {
|
||||||
!this.xfsFormat && (this.xfsFormat = new Asc.CellXfs());
|
!this.xfsFormat && (this.xfsFormat = new Asc.asc_CellXfs());
|
||||||
this.xfsFormat.asc_setNumFormatInfo(record.format);
|
this.xfsFormat.asc_setNumFormatInfo(record.format);
|
||||||
this.previewFormat();
|
this.previewFormat();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue