[SSE] Support hints for protection tab

This commit is contained in:
Julia Radzhabova 2021-08-05 14:11:18 +03:00
parent 8cbdfcedfb
commit 68f8032022
2 changed files with 40 additions and 10 deletions

View file

@ -121,7 +121,10 @@ define([
this.btnAddPwd = new Common.UI.Button({ this.btnAddPwd = new Common.UI.Button({
cls: 'btn-toolbar x-huge icon-top', cls: 'btn-toolbar x-huge icon-top',
iconCls: 'toolbar__icon btn-ic-protect', iconCls: 'toolbar__icon btn-ic-protect',
caption: this.txtEncrypt caption: this.txtEncrypt,
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
}); });
this.btnsAddPwd.push(this.btnAddPwd); this.btnsAddPwd.push(this.btnAddPwd);
@ -130,7 +133,10 @@ define([
iconCls: 'toolbar__icon btn-ic-protect', iconCls: 'toolbar__icon btn-ic-protect',
caption: this.txtEncrypt, caption: this.txtEncrypt,
menu: true, menu: true,
visible: false visible: false,
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
}); });
} }
if (this.appConfig.isSignatureSupport) { if (this.appConfig.isSignatureSupport) {
@ -138,7 +144,10 @@ define([
cls: 'btn-toolbar x-huge icon-top', cls: 'btn-toolbar x-huge icon-top',
iconCls: 'toolbar__icon btn-ic-signature', iconCls: 'toolbar__icon btn-ic-signature',
caption: this.txtSignature, caption: this.txtSignature,
menu: (this.appPrefix !== 'pe-') menu: (this.appPrefix !== 'pe-'),
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
}); });
if (!this.btnSignature.menu) if (!this.btnSignature.menu)
this.btnsInvisibleSignature.push(this.btnSignature); this.btnsInvisibleSignature.push(this.btnSignature);

View file

@ -116,7 +116,10 @@ define([
iconCls: 'toolbar__icon protect-workbook', iconCls: 'toolbar__icon protect-workbook',
enableToggle: true, enableToggle: true,
caption: this.txtProtectWB, caption: this.txtProtectWB,
lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth] lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth],
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
}); });
this.lockedControls.push(this.btnProtectWB); this.lockedControls.push(this.btnProtectWB);
@ -125,7 +128,10 @@ define([
iconCls: 'toolbar__icon protect-sheet', iconCls: 'toolbar__icon protect-sheet',
enableToggle: true, enableToggle: true,
caption: this.txtProtectSheet, caption: this.txtProtectSheet,
lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth] lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth],
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
}); });
this.lockedControls.push(this.btnProtectSheet); this.lockedControls.push(this.btnProtectSheet);
@ -133,31 +139,46 @@ define([
cls: 'btn-toolbar x-huge icon-top', cls: 'btn-toolbar x-huge icon-top',
iconCls: 'toolbar__icon allow-edit-ranges', iconCls: 'toolbar__icon allow-edit-ranges',
caption: this.txtAllowRanges, caption: this.txtAllowRanges,
lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.wsLock] lock : [_set.selRangeEdit, _set.lostConnect, _set.coAuth, _set.wsLock],
dataHint : '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
}); });
this.lockedControls.push(this.btnAllowRanges); this.lockedControls.push(this.btnAllowRanges);
this.chLockedCell = new Common.UI.CheckBox({ this.chLockedCell = new Common.UI.CheckBox({
labelText: this.txtLockedCell, labelText: this.txtLockedCell,
lock : [_set.editCell, _set.selRangeEdit, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selSlicer, _set.wsLock, _set.wbLock, _set.lostConnect, _set.coAuth] lock : [_set.editCell, _set.selRangeEdit, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selSlicer, _set.wsLock, _set.wbLock, _set.lostConnect, _set.coAuth],
dataHint : '1',
dataHintDirection: 'left',
dataHintOffset: 'small'
}); });
this.lockedControls.push(this.chLockedCell); this.lockedControls.push(this.chLockedCell);
this.chLockedShape = new Common.UI.CheckBox({ this.chLockedShape = new Common.UI.CheckBox({
labelText: this.txtLockedShape, labelText: this.txtLockedShape,
lock : [_set.selRange, _set.selRangeEdit, _set.wbLock, _set.lostConnect, _set.coAuth, _set['Objects'], _set.wsLockShape] lock : [_set.selRange, _set.selRangeEdit, _set.wbLock, _set.lostConnect, _set.coAuth, _set['Objects'], _set.wsLockShape],
dataHint : '1',
dataHintDirection: 'left',
dataHintOffset: 'small'
}); });
this.lockedControls.push(this.chLockedShape); this.lockedControls.push(this.chLockedShape);
this.chLockedText = new Common.UI.CheckBox({ this.chLockedText = new Common.UI.CheckBox({
labelText: this.txtLockedText, labelText: this.txtLockedText,
lock : [_set.selRange, _set.selRangeEdit, _set.selRangeEdit, _set.selImage, _set.selSlicer, _set.wbLock, _set.lostConnect, _set.coAuth, _set['Objects'], _set.wsLockText] lock : [_set.selRange, _set.selRangeEdit, _set.selRangeEdit, _set.selImage, _set.selSlicer, _set.wbLock, _set.lostConnect, _set.coAuth, _set['Objects'], _set.wsLockText],
dataHint : '1',
dataHintDirection: 'left',
dataHintOffset: 'small'
}); });
this.lockedControls.push(this.chLockedText); this.lockedControls.push(this.chLockedText);
this.chHiddenFormula = new Common.UI.CheckBox({ this.chHiddenFormula = new Common.UI.CheckBox({
labelText: this.txtHiddenFormula, labelText: this.txtHiddenFormula,
lock : [_set.editCell, _set.selRangeEdit, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selSlicer, _set.wsLock, _set.wbLock, _set.lostConnect, _set.coAuth] lock : [_set.editCell, _set.selRangeEdit, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selSlicer, _set.wsLock, _set.wbLock, _set.lostConnect, _set.coAuth],
dataHint : '1',
dataHintDirection: 'left',
dataHintOffset: 'small'
}); });
this.lockedControls.push(this.chHiddenFormula); this.lockedControls.push(this.chHiddenFormula);