[SSE] Add asc_ prefix

This commit is contained in:
Julia Radzhabova 2021-04-30 18:30:08 +03:00
parent 45aee08641
commit fdf9dd4ea8
2 changed files with 15 additions and 15 deletions

View file

@ -767,11 +767,11 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
if (index>=len) return; if (index>=len) return;
var values = []; var values = [];
for (var i = 0; i < preset.length; i++) { for (var i = 0; i < preset.length; i++) {
var formatValueObject = new Asc.CConditionalFormatValueObject(); var formatValueObject = new Asc.asc_CConditionalFormatValueObject();
formatValueObject.asc_setType(preset[i][0]); formatValueObject.asc_setType(preset[i][0]);
formatValueObject.asc_setVal(preset[i][1]); formatValueObject.asc_setVal(preset[i][1]);
if (preset[i][2]) { if (preset[i][2]) {
// formatValueObject.asc_setFormula(new Asc.CFormulaCF()); // formatValueObject.asc_setFormula(new Asc.asc_CFormulaCF());
// formatValueObject.asc_getFormula().asc_setText(preset[1][i][2]); // formatValueObject.asc_getFormula().asc_setText(preset[1][i][2]);
} }
values.push(formatValueObject); values.push(formatValueObject);
@ -1315,7 +1315,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
var rec = this.ruleStore.findWhere({index: this.cmbCategory.getValue()}); var rec = this.ruleStore.findWhere({index: this.cmbCategory.getValue()});
if (rec) { if (rec) {
props = this._originalProps || new Asc.CConditionalFormattingRule(); props = this._originalProps || new Asc.asc_CConditionalFormattingRule();
var type = rec.get('type'); var type = rec.get('type');
props.asc_setType(type); props.asc_setType(type);
if (type == Asc.c_oAscCFType.containsText || type == Asc.c_oAscCFType.containsBlanks || type == Asc.c_oAscCFType.duplicateValues || if (type == Asc.c_oAscCFType.containsText || type == Asc.c_oAscCFType.containsBlanks || type == Asc.c_oAscCFType.duplicateValues ||
@ -1358,12 +1358,12 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
props.asc_setValue1(this.txtRange1.getValue()); props.asc_setValue1(this.txtRange1.getValue());
break; break;
case Asc.c_oAscCFType.colorScale: case Asc.c_oAscCFType.colorScale:
var scaleProps = new Asc.CColorScale(); var scaleProps = new Asc.asc_CColorScale();
var scalesCount = rec.get('num'); var scalesCount = rec.get('num');
var arr = (scalesCount==2) ? [this.scaleControls[0], this.scaleControls[2]] : this.scaleControls; var arr = (scalesCount==2) ? [this.scaleControls[0], this.scaleControls[2]] : this.scaleControls;
var colors = [], scales = []; var colors = [], scales = [];
for (var i=0; i<scalesCount; i++) { for (var i=0; i<scalesCount; i++) {
var scale = new Asc.CConditionalFormatValueObject(); var scale = new Asc.asc_CConditionalFormatValueObject();
var controls = arr[i]; var controls = arr[i];
scale.asc_setType(controls.combo.getValue()); scale.asc_setType(controls.combo.getValue());
scale.asc_setVal(controls.range.getValue()); scale.asc_setVal(controls.range.getValue());
@ -1375,11 +1375,11 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
props.asc_setColorScaleOrDataBarOrIconSetRule(scaleProps); props.asc_setColorScaleOrDataBarOrIconSetRule(scaleProps);
break; break;
case Asc.c_oAscCFType.dataBar: case Asc.c_oAscCFType.dataBar:
var barProps = new Asc.CDataBar(); var barProps = new Asc.asc_CDataBar();
var arr = this.barControls; var arr = this.barControls;
var bars = []; var bars = [];
for (var i=0; i<arr.length; i++) { for (var i=0; i<arr.length; i++) {
var bar = new Asc.CConditionalFormatValueObject(); var bar = new Asc.asc_CConditionalFormatValueObject();
var controls = arr[i], var controls = arr[i],
bartype = controls.combo.getValue(); bartype = controls.combo.getValue();
bar.asc_setType(bartype); bar.asc_setType(bartype);
@ -1411,7 +1411,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
props.asc_setColorScaleOrDataBarOrIconSetRule(barProps); props.asc_setColorScaleOrDataBarOrIconSetRule(barProps);
break; break;
case Asc.c_oAscCFType.iconSet: case Asc.c_oAscCFType.iconSet:
var iconsProps = new Asc.CIconSet(); var iconsProps = new Asc.asc_CIconSet();
iconsProps.asc_setShowValue(this.chIconShow.getValue()!=='checked'); iconsProps.asc_setShowValue(this.chIconShow.getValue()!=='checked');
iconsProps.asc_setReverse(!!this.iconsProps.isReverse); iconsProps.asc_setReverse(!!this.iconsProps.isReverse);
iconsProps.asc_setIconSet(this.iconsProps.iconsSet); iconsProps.asc_setIconSet(this.iconsProps.iconsSet);
@ -1422,7 +1422,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
values = []; values = [];
for (var i=0; i<len; i++) { for (var i=0; i<len; i++) {
var controls = arr[i], var controls = arr[i],
value = new Asc.CConditionalFormatValueObject(); value = new Asc.asc_CConditionalFormatValueObject();
value.asc_setType(controls.cmbType.getValue()); value.asc_setType(controls.cmbType.getValue());
value.asc_setVal(controls.value.getValue()); value.asc_setVal(controls.value.getValue());
value.asc_setGte(controls.cmbOperator.getValue()); value.asc_setGte(controls.cmbOperator.getValue());
@ -1433,7 +1433,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
var items = this.collectionPresets.at(k).get('icons'); var items = this.collectionPresets.at(k).get('icons');
for (var j=0; j<items.length; j++) { for (var j=0; j<items.length; j++) {
if (icon==items[j]) { if (icon==items[j]) {
icon = new Asc.CConditionalFormatIconSet(); icon = new Asc.asc_CConditionalFormatIconSet();
icon.asc_setIconSet(k); icon.asc_setIconSet(k);
icon.asc_setIconId(j); icon.asc_setIconId(j);
this.iconsProps.isReverse ? icons.unshift(icon) : icons.push(icon); this.iconsProps.isReverse ? icons.unshift(icon) : icons.push(icon);
@ -1469,7 +1469,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
if (rec) { if (rec) {
var type = rec.get('type'); var type = rec.get('type');
this._changedProps = new Asc.CConditionalFormattingRule(); this._changedProps = new Asc.asc_CConditionalFormattingRule();
this._changedProps.asc_setType(type); this._changedProps.asc_setType(type);
if (type == Asc.c_oAscCFType.containsText || type == Asc.c_oAscCFType.containsBlanks || type == Asc.c_oAscCFType.duplicateValues || if (type == Asc.c_oAscCFType.containsText || type == Asc.c_oAscCFType.containsBlanks || type == Asc.c_oAscCFType.duplicateValues ||
type == Asc.c_oAscCFType.timePeriod || type == Asc.c_oAscCFType.aboveAverage || type == Asc.c_oAscCFType.timePeriod || type == Asc.c_oAscCFType.aboveAverage ||
@ -1480,19 +1480,19 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
var arr = (scalesCount==2) ? [this.scaleControls[0], this.scaleControls[2]] : this.scaleControls; var arr = (scalesCount==2) ? [this.scaleControls[0], this.scaleControls[2]] : this.scaleControls;
var colors = [], scales = []; var colors = [], scales = [];
for (var i=0; i<arr.length; i++) { for (var i=0; i<arr.length; i++) {
var scale = new Asc.CConditionalFormatValueObject(); var scale = new Asc.asc_CConditionalFormatValueObject();
var controls = arr[i]; var controls = arr[i];
scale.asc_setType(controls.combo.getValue()); scale.asc_setType(controls.combo.getValue());
scale.asc_setVal(controls.range.getValue()); scale.asc_setVal(controls.range.getValue());
scales.push(scale); scales.push(scale);
colors.push(Common.Utils.ThemeColor.getRgbColor(controls.colorPicker.currentColor)); colors.push(Common.Utils.ThemeColor.getRgbColor(controls.colorPicker.currentColor));
} }
this.scaleProps = new Asc.CColorScale(); this.scaleProps = new Asc.asc_CColorScale();
this.scaleProps.asc_setColors(colors); this.scaleProps.asc_setColors(colors);
this.scaleProps.asc_setCFVOs(scales); this.scaleProps.asc_setCFVOs(scales);
this._changedProps.asc_setColorScaleOrDataBarOrIconSetRule(this.scaleProps); this._changedProps.asc_setColorScaleOrDataBarOrIconSetRule(this.scaleProps);
} else if (type == Asc.c_oAscCFType.dataBar) { } else if (type == Asc.c_oAscCFType.dataBar) {
this.barProps = new Asc.CDataBar(); this.barProps = new Asc.asc_CDataBar();
this.barProps.asc_setGradient(this.cmbFill.getValue()); this.barProps.asc_setGradient(this.cmbFill.getValue());
this.barProps.asc_setColor(Common.Utils.ThemeColor.getRgbColor(this.btnPosFill.colorPicker.currentColor)); this.barProps.asc_setColor(Common.Utils.ThemeColor.getRgbColor(this.btnPosFill.colorPicker.currentColor));
var hasBorder = !this.cmbBorder.getValue(); var hasBorder = !this.cmbBorder.getValue();

View file

@ -646,7 +646,7 @@ define([
this.cmbFonts[1].fillFonts(this.fontStore); this.cmbFonts[1].fillFonts(this.fontStore);
this.updateThemeColors(); this.updateThemeColors();
this.HFObject = new Asc.CHeaderFooterEditor(['header-left-img', 'header-center-img', 'header-right-img', 'footer-left-img', 'footer-center-img', 'footer-right-img'], 205); this.HFObject = new Asc.asc_CHeaderFooterEditor(['header-left-img', 'header-center-img', 'header-right-img', 'footer-left-img', 'footer-center-img', 'footer-right-img'], 205);
this._setDefaults(this.props); this._setDefaults(this.props);
this.editorCanvas = this.$window.find('#ce-canvas-menu'); this.editorCanvas = this.$window.find('#ce-canvas-menu');
var me = this; var me = this;