[SSE] Add asc_ prefix
This commit is contained in:
parent
45aee08641
commit
fdf9dd4ea8
|
@ -767,11 +767,11 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
|||
if (index>=len) return;
|
||||
var values = [];
|
||||
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_setVal(preset[i][1]);
|
||||
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]);
|
||||
}
|
||||
values.push(formatValueObject);
|
||||
|
@ -1315,7 +1315,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
|||
var rec = this.ruleStore.findWhere({index: this.cmbCategory.getValue()});
|
||||
|
||||
if (rec) {
|
||||
props = this._originalProps || new Asc.CConditionalFormattingRule();
|
||||
props = this._originalProps || new Asc.asc_CConditionalFormattingRule();
|
||||
var type = rec.get('type');
|
||||
props.asc_setType(type);
|
||||
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());
|
||||
break;
|
||||
case Asc.c_oAscCFType.colorScale:
|
||||
var scaleProps = new Asc.CColorScale();
|
||||
var scaleProps = new Asc.asc_CColorScale();
|
||||
var scalesCount = rec.get('num');
|
||||
var arr = (scalesCount==2) ? [this.scaleControls[0], this.scaleControls[2]] : this.scaleControls;
|
||||
var colors = [], scales = [];
|
||||
for (var i=0; i<scalesCount; i++) {
|
||||
var scale = new Asc.CConditionalFormatValueObject();
|
||||
var scale = new Asc.asc_CConditionalFormatValueObject();
|
||||
var controls = arr[i];
|
||||
scale.asc_setType(controls.combo.getValue());
|
||||
scale.asc_setVal(controls.range.getValue());
|
||||
|
@ -1375,11 +1375,11 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
|||
props.asc_setColorScaleOrDataBarOrIconSetRule(scaleProps);
|
||||
break;
|
||||
case Asc.c_oAscCFType.dataBar:
|
||||
var barProps = new Asc.CDataBar();
|
||||
var barProps = new Asc.asc_CDataBar();
|
||||
var arr = this.barControls;
|
||||
var bars = [];
|
||||
for (var i=0; i<arr.length; i++) {
|
||||
var bar = new Asc.CConditionalFormatValueObject();
|
||||
var bar = new Asc.asc_CConditionalFormatValueObject();
|
||||
var controls = arr[i],
|
||||
bartype = controls.combo.getValue();
|
||||
bar.asc_setType(bartype);
|
||||
|
@ -1411,7 +1411,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
|||
props.asc_setColorScaleOrDataBarOrIconSetRule(barProps);
|
||||
break;
|
||||
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_setReverse(!!this.iconsProps.isReverse);
|
||||
iconsProps.asc_setIconSet(this.iconsProps.iconsSet);
|
||||
|
@ -1422,7 +1422,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
|||
values = [];
|
||||
for (var i=0; i<len; i++) {
|
||||
var controls = arr[i],
|
||||
value = new Asc.CConditionalFormatValueObject();
|
||||
value = new Asc.asc_CConditionalFormatValueObject();
|
||||
value.asc_setType(controls.cmbType.getValue());
|
||||
value.asc_setVal(controls.value.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');
|
||||
for (var j=0; j<items.length; j++) {
|
||||
if (icon==items[j]) {
|
||||
icon = new Asc.CConditionalFormatIconSet();
|
||||
icon = new Asc.asc_CConditionalFormatIconSet();
|
||||
icon.asc_setIconSet(k);
|
||||
icon.asc_setIconId(j);
|
||||
this.iconsProps.isReverse ? icons.unshift(icon) : icons.push(icon);
|
||||
|
@ -1469,7 +1469,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
|
|||
|
||||
if (rec) {
|
||||
var type = rec.get('type');
|
||||
this._changedProps = new Asc.CConditionalFormattingRule();
|
||||
this._changedProps = new Asc.asc_CConditionalFormattingRule();
|
||||
this._changedProps.asc_setType(type);
|
||||
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 ||
|
||||
|
@ -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 colors = [], scales = [];
|
||||
for (var i=0; i<arr.length; i++) {
|
||||
var scale = new Asc.CConditionalFormatValueObject();
|
||||
var scale = new Asc.asc_CConditionalFormatValueObject();
|
||||
var controls = arr[i];
|
||||
scale.asc_setType(controls.combo.getValue());
|
||||
scale.asc_setVal(controls.range.getValue());
|
||||
scales.push(scale);
|
||||
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_setCFVOs(scales);
|
||||
this._changedProps.asc_setColorScaleOrDataBarOrIconSetRule(this.scaleProps);
|
||||
} 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_setColor(Common.Utils.ThemeColor.getRgbColor(this.btnPosFill.colorPicker.currentColor));
|
||||
var hasBorder = !this.cmbBorder.getValue();
|
||||
|
|
|
@ -646,7 +646,7 @@ define([
|
|||
this.cmbFonts[1].fillFonts(this.fontStore);
|
||||
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.editorCanvas = this.$window.find('#ce-canvas-menu');
|
||||
var me = this;
|
||||
|
|
Loading…
Reference in a new issue