[SSE] Fix selecting range
This commit is contained in:
parent
3c9046eaec
commit
68ae80a3f5
|
@ -95,7 +95,7 @@ define([
|
|||
menu: true,
|
||||
split: false,
|
||||
disabled: true,
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.noSubitems]
|
||||
});
|
||||
Common.Utils.injectComponent($host.find('#slot-btn-financial'), this.btnFinancial);
|
||||
this.lockedControls.push(this.btnFinancial);
|
||||
|
@ -109,7 +109,7 @@ define([
|
|||
menu: true,
|
||||
split: false,
|
||||
disabled: true,
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.noSubitems]
|
||||
});
|
||||
Common.Utils.injectComponent($host.find('#slot-btn-logical'), this.btnLogical);
|
||||
this.lockedControls.push(this.btnLogical);
|
||||
|
@ -123,7 +123,7 @@ define([
|
|||
menu: true,
|
||||
split: false,
|
||||
disabled: true,
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.noSubitems]
|
||||
});
|
||||
Common.Utils.injectComponent($host.find('#slot-btn-text'), this.btnTextData);
|
||||
this.lockedControls.push(this.btnTextData);
|
||||
|
@ -137,7 +137,7 @@ define([
|
|||
menu: true,
|
||||
split: false,
|
||||
disabled: true,
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.noSubitems]
|
||||
});
|
||||
Common.Utils.injectComponent($host.find('#slot-btn-datetime'), this.btnDateTime);
|
||||
this.lockedControls.push(this.btnDateTime);
|
||||
|
@ -151,7 +151,7 @@ define([
|
|||
menu: true,
|
||||
split: false,
|
||||
disabled: true,
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.noSubitems]
|
||||
});
|
||||
Common.Utils.injectComponent($host.find('#slot-btn-lookup'), this.btnReference);
|
||||
this.lockedControls.push(this.btnReference);
|
||||
|
@ -165,7 +165,7 @@ define([
|
|||
menu: true,
|
||||
split: false,
|
||||
disabled: true,
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.noSubitems]
|
||||
});
|
||||
Common.Utils.injectComponent($host.find('#slot-btn-math'), this.btnMath);
|
||||
this.lockedControls.push(this.btnMath);
|
||||
|
@ -179,7 +179,7 @@ define([
|
|||
menu: true,
|
||||
split: false,
|
||||
disabled: true,
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.noSubitems]
|
||||
});
|
||||
Common.Utils.injectComponent($host.find('#slot-btn-recent'), this.btnRecent);
|
||||
this.lockedControls.push(this.btnRecent);
|
||||
|
@ -231,7 +231,7 @@ define([
|
|||
menu: true,
|
||||
split: false,
|
||||
disabled: true,
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.noSubitems]
|
||||
});
|
||||
Common.Utils.injectComponent($host.find('#slot-btn-more'), this.btnMore);
|
||||
this.lockedControls.push(this.btnMore);
|
||||
|
@ -296,7 +296,7 @@ define([
|
|||
var _menu = new Common.UI.Menu({
|
||||
items: [
|
||||
{caption: me.textCalculateWorkbook, value: Asc.c_oAscCalculateType.All},
|
||||
{caption: me.textCalculateCurrentSheet, value: Asc.c_oAscCalculateType.ActiveSheet},
|
||||
{caption: me.textCalculateCurrentSheet, value: Asc.c_oAscCalculateType.ActiveSheet}
|
||||
//{caption: '--'},
|
||||
//{caption: me.textAutomatic, value: '', toggleGroup: 'menuCalcMode', checkable: true, checked: true},
|
||||
//{caption: me.textManual, value: '', toggleGroup: 'menuCalcMode', checkable: true, checked: false}
|
||||
|
@ -428,7 +428,7 @@ define([
|
|||
menu._outerMenu = btn.menu;
|
||||
}
|
||||
}
|
||||
btn.setDisabled(arr.length<1);
|
||||
Common.Utils.lockControls(SSE.enumLock.noSubitems, arr.length<1, {array: [btn]});
|
||||
},
|
||||
|
||||
setMenuItemMenu: function(name) {
|
||||
|
@ -544,7 +544,7 @@ define([
|
|||
menu.cmpEl.attr({tabindex: "-1"});
|
||||
});
|
||||
}
|
||||
btn.setDisabled(morearr.length<1);
|
||||
Common.Utils.lockControls(SSE.enumLock.noSubitems, morearr.length<1, {array: [btn]});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -156,25 +156,25 @@ define([
|
|||
|
||||
this.chRowHeader = new Common.UI.CheckBox({
|
||||
labelText: this.textRowHeader,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot]
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit]
|
||||
});
|
||||
this.lockedControls.push(this.chRowHeader);
|
||||
|
||||
this.chColHeader = new Common.UI.CheckBox({
|
||||
labelText: this.textColHeader,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot]
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit]
|
||||
});
|
||||
this.lockedControls.push(this.chColHeader);
|
||||
|
||||
this.chRowBanded = new Common.UI.CheckBox({
|
||||
labelText: this.textRowBanded,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot]
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit]
|
||||
});
|
||||
this.lockedControls.push(this.chRowBanded);
|
||||
|
||||
this.chColBanded = new Common.UI.CheckBox({
|
||||
labelText: this.textColBanded,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot]
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit]
|
||||
});
|
||||
this.lockedControls.push(this.chColBanded);
|
||||
|
||||
|
@ -183,7 +183,7 @@ define([
|
|||
iconCls: 'toolbar__icon btn-add-pivot',
|
||||
caption: this.txtCreate,
|
||||
disabled : false,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.editPivot]
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.editPivot, _set.selRangeEdit]
|
||||
});
|
||||
|
||||
this.btnPivotLayout = new Common.UI.Button({
|
||||
|
@ -191,7 +191,7 @@ define([
|
|||
iconCls : 'toolbar__icon btn-pivot-layout',
|
||||
caption : this.capLayout,
|
||||
disabled : true,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot],
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit],
|
||||
menu : true
|
||||
});
|
||||
this.lockedControls.push(this.btnPivotLayout);
|
||||
|
@ -201,7 +201,7 @@ define([
|
|||
iconCls : 'toolbar__icon btn-blank-rows',
|
||||
caption : this.capBlankRows,
|
||||
disabled : true,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot],
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit],
|
||||
menu : true
|
||||
});
|
||||
this.lockedControls.push(this.btnPivotBlankRows);
|
||||
|
@ -211,7 +211,7 @@ define([
|
|||
iconCls : 'toolbar__icon btn-subtotals',
|
||||
caption : this.capSubtotals,
|
||||
disabled : true,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot],
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit],
|
||||
menu : true
|
||||
});
|
||||
this.lockedControls.push(this.btnPivotSubtotals);
|
||||
|
@ -221,7 +221,7 @@ define([
|
|||
iconCls : 'toolbar__icon btn-grand-totals',
|
||||
caption : this.capGrandTotals,
|
||||
disabled : true,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot],
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit],
|
||||
menu : true
|
||||
});
|
||||
this.lockedControls.push(this.btnPivotGrandTotals);
|
||||
|
@ -231,7 +231,7 @@ define([
|
|||
iconCls: 'toolbar__icon btn-update',
|
||||
caption: this.txtRefresh,
|
||||
disabled : true,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot]
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit]
|
||||
});
|
||||
this.lockedControls.push(this.btnRefreshPivot);
|
||||
|
||||
|
@ -239,7 +239,7 @@ define([
|
|||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon btn-select-pivot',
|
||||
caption: this.txtSelect,
|
||||
lock: [_set.lostConnect, _set.coAuth, _set.noPivot]
|
||||
lock: [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit]
|
||||
});
|
||||
this.lockedControls.push(this.btnSelectPivot);
|
||||
|
||||
|
@ -249,7 +249,7 @@ define([
|
|||
itemWidth : 61,
|
||||
itemHeight : 49,
|
||||
menuMaxHeight : 300,
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot],
|
||||
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit],
|
||||
beforeOpenHandler: function(e) {
|
||||
var cmp = this,
|
||||
menu = cmp.openButton.menu;
|
||||
|
|
|
@ -91,7 +91,8 @@ define([
|
|||
multiselectCols:'is-multiselect-cols',
|
||||
headerLock: 'header-lock',
|
||||
sheetLock: 'sheet-lock',
|
||||
noPivot: 'no-pivot'
|
||||
noPivot: 'no-pivot',
|
||||
noSubitems: 'no-subitems'
|
||||
};
|
||||
|
||||
SSE.Views.Toolbar = Common.UI.Mixtbar.extend(_.extend({
|
||||
|
@ -1036,7 +1037,7 @@ define([
|
|||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon btn-pageorient',
|
||||
caption: me.capBtnPageOrient,
|
||||
lock : [_set.docPropsLock, _set.lostConnect, _set.coAuth],
|
||||
lock : [_set.docPropsLock, _set.lostConnect, _set.coAuth, _set.selRangeEdit],
|
||||
menu: new Common.UI.Menu({
|
||||
cls: 'ppm-toolbar',
|
||||
items: [
|
||||
|
@ -1073,7 +1074,7 @@ define([
|
|||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon btn-pagemargins',
|
||||
caption: me.capBtnMargins,
|
||||
lock : [_set.docPropsLock, _set.lostConnect, _set.coAuth],
|
||||
lock : [_set.docPropsLock, _set.lostConnect, _set.coAuth, _set.selRangeEdit],
|
||||
menu: new Common.UI.Menu({
|
||||
items: [
|
||||
{
|
||||
|
@ -1118,7 +1119,7 @@ define([
|
|||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon btn-pagesize',
|
||||
caption: me.capBtnPageSize,
|
||||
lock : [_set.docPropsLock, _set.lostConnect, _set.coAuth],
|
||||
lock : [_set.docPropsLock, _set.lostConnect, _set.coAuth, _set.selRangeEdit],
|
||||
menu: new Common.UI.Menu({
|
||||
restoreHeight: true,
|
||||
items: [
|
||||
|
@ -1280,7 +1281,7 @@ define([
|
|||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon btn-scale',
|
||||
caption: me.capBtnScale,
|
||||
lock: [_set.docPropsLock, _set.lostConnect, _set.coAuth],
|
||||
lock: [_set.docPropsLock, _set.lostConnect, _set.coAuth, _set.selRangeEdit],
|
||||
menu: new Common.UI.Menu({
|
||||
items: [],
|
||||
cls: 'scale-menu'})
|
||||
|
@ -1343,7 +1344,7 @@ define([
|
|||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'toolbar__icon btn-print-titles',
|
||||
caption: me.capBtnPrintTitles,
|
||||
lock : [_set.docPropsLock, _set.lostConnect, _set.coAuth]
|
||||
lock : [_set.docPropsLock, _set.lostConnect, _set.coAuth, _set.selRangeEdit]
|
||||
});
|
||||
|
||||
me.btnImgAlign = new Common.UI.Button({
|
||||
|
|
Loading…
Reference in a new issue