unified toolbar's components identifiers
This commit is contained in:
parent
50fd0152e7
commit
c76a24beeb
|
@ -2832,6 +2832,7 @@ define([
|
|||
/x-huge/.test(el.className) && (_cls += ' x-huge icon-top');
|
||||
|
||||
var button = new Common.UI.Button({
|
||||
id: 'tlbtn-addcomment-' + index,
|
||||
cls: _cls,
|
||||
iconCls: 'btn-menu-comments',
|
||||
caption: me.toolbar.capBtnComment
|
||||
|
|
|
@ -455,7 +455,7 @@ define([
|
|||
this.mnuMultilevelPicker = clone(this.mnuMarkersPicker);
|
||||
|
||||
this.btnInsertTable = new Common.UI.Button({
|
||||
id: 'tlb-btn-instable',
|
||||
id: 'tlbtn-inserttable',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-inserttable',
|
||||
caption: me.capBtnInsTable,
|
||||
|
@ -469,7 +469,7 @@ define([
|
|||
this.paragraphControls.push(this.btnInsertTable);
|
||||
|
||||
this.btnInsertImage = new Common.UI.Button({
|
||||
id: 'tlb-btn-insimage',
|
||||
id: 'tlbtn-insertimage',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-insertimage',
|
||||
caption: me.capBtnInsImage,
|
||||
|
@ -483,7 +483,7 @@ define([
|
|||
this.paragraphControls.push(this.btnInsertImage);
|
||||
|
||||
this.btnInsertChart = new Common.UI.Button({
|
||||
id: 'tlb-btn-inschart',
|
||||
id: 'tlbtn-insertchart',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
caption: me.capBtnInsChart,
|
||||
iconCls: 'btn-insertchart',
|
||||
|
@ -497,7 +497,7 @@ define([
|
|||
this.paragraphControls.push(this.btnInsertChart);
|
||||
|
||||
this.btnInsertText = new Common.UI.Button({
|
||||
id: 'tlb-btn-inserttext',
|
||||
id: 'tlbtn-inserttext',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-text',
|
||||
caption: me.capBtnInsTextbox,
|
||||
|
@ -505,7 +505,7 @@ define([
|
|||
});
|
||||
this.paragraphControls.push(this.btnInsertText);
|
||||
this.btnInsertTextArt = new Common.UI.Button({
|
||||
id: 'tlb-btn-instextart',
|
||||
id: 'tlbtn-inserttextart',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-textart',
|
||||
caption: me.capBtnInsTextart,
|
||||
|
@ -519,7 +519,7 @@ define([
|
|||
this.paragraphControls.push(this.btnInsertTextArt);
|
||||
|
||||
this.btnInsertHyperlink = new Common.UI.Button({
|
||||
id: 'tlb-btn-inshyperlink',
|
||||
id: 'tlbtn-insertlink',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
caption: me.capBtnInsLink,
|
||||
iconCls: 'btn-inserthyperlink'
|
||||
|
@ -550,7 +550,7 @@ define([
|
|||
this.toolbarControls.push(this.btnEditHeader);
|
||||
|
||||
this.btnInsertShape = new Common.UI.Button({
|
||||
id: 'tlb-btn-insshape',
|
||||
id: 'tlbtn-insertshape',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-insertshape',
|
||||
caption: me.capBtnInsShape,
|
||||
|
@ -560,7 +560,7 @@ define([
|
|||
this.paragraphControls.push(this.btnInsertShape);
|
||||
|
||||
this.btnInsertEquation = new Common.UI.Button({
|
||||
id: 'tlb-btn-insequation',
|
||||
id: 'tlbtn-insertequation',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-insertequation',
|
||||
caption: me.capBtnInsEquation,
|
||||
|
@ -570,7 +570,7 @@ define([
|
|||
this.paragraphControls.push(this.btnInsertEquation);
|
||||
|
||||
this.btnDropCap = new Common.UI.Button({
|
||||
id: 'tlb-btn-dropcap',
|
||||
id: 'tlbtn-dropcap',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-dropcap',
|
||||
caption: me.capBtnInsDropcap,
|
||||
|
@ -607,7 +607,7 @@ define([
|
|||
this.paragraphControls.push(this.btnDropCap);
|
||||
|
||||
this.btnColumns = new Common.UI.Button({
|
||||
id: 'tlb-btn-columns',
|
||||
id: 'tlbtn-columns',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-columns',
|
||||
caption: me.capBtnColumns,
|
||||
|
@ -657,7 +657,7 @@ define([
|
|||
this.paragraphControls.push(this.btnColumns);
|
||||
|
||||
this.btnPageOrient = new Common.UI.Button({
|
||||
id: 'tlb-btn-pageorient',
|
||||
id: 'tlbtn-pageorient',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-pageorient',
|
||||
caption: me.capBtnPageOrient,
|
||||
|
@ -693,7 +693,7 @@ define([
|
|||
'<% } %></a>');
|
||||
|
||||
this.btnPageMargins = new Common.UI.Button({
|
||||
id: 'tlb-btn-pagemargins',
|
||||
id: 'tlbtn-pagemargins',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-pagemargins',
|
||||
caption: me.capBtnMargins,
|
||||
|
@ -752,7 +752,7 @@ define([
|
|||
'<%= parseFloat(Common.Utils.Metric.fnRecalcFromMM(options.value[1]).toFixed(2)) %> <%= Common.Utils.Metric.getCurrentMetricName() %></div></a>');
|
||||
|
||||
this.btnPageSize = new Common.UI.Button({
|
||||
id: 'tlb-btn-pagesize',
|
||||
id: 'tlbtn-pagesize',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-pagesize',
|
||||
caption: me.capBtnPageSize,
|
||||
|
|
|
@ -2074,6 +2074,7 @@ define([
|
|||
/x-huge/.test(el.className) && (_cls += ' x-huge icon-top');
|
||||
|
||||
var button = new Common.UI.Button({
|
||||
id: 'tlbtn-addcomment-' + index,
|
||||
cls: _cls,
|
||||
iconCls: 'btn-menu-comments',
|
||||
lock: [_set.lostConnect, _set.noSlides],
|
||||
|
|
|
@ -537,7 +537,7 @@ define([
|
|||
me.paragraphControls.push(me.btnLineSpace);
|
||||
|
||||
me.btnInsertTable = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-inserttable',
|
||||
id : 'tlbtn-inserttable',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-inserttable',
|
||||
caption : me.capInsertTable,
|
||||
|
@ -552,7 +552,7 @@ define([
|
|||
me.slideOnlyControls.push(me.btnInsertTable);
|
||||
|
||||
me.btnInsertChart = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-insertchart',
|
||||
id : 'tlbtn-insertchart',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-insertchart',
|
||||
caption : me.capInsertChart,
|
||||
|
@ -567,7 +567,7 @@ define([
|
|||
me.slideOnlyControls.push(me.btnInsertChart);
|
||||
|
||||
me.btnInsertEquation = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-insertequation',
|
||||
id : 'tlbtn-insertequation',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-insertequation',
|
||||
caption : me.capInsertEquation,
|
||||
|
@ -578,7 +578,7 @@ define([
|
|||
me.slideOnlyControls.push(this.btnInsertEquation);
|
||||
|
||||
me.btnInsertHyperlink = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-inserthyperlink',
|
||||
id : 'tlbtn-insertlink',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-inserthyperlink',
|
||||
caption : me.capInsertHyperlink,
|
||||
|
@ -587,7 +587,7 @@ define([
|
|||
me.paragraphControls.push(me.btnInsertHyperlink);
|
||||
|
||||
me.btnInsertTextArt = new Common.UI.Button({
|
||||
id: 'tlb-btn-instextart',
|
||||
id: 'tlbtn-inserttextart',
|
||||
cls: 'btn-toolbar x-huge icon-top',
|
||||
iconCls: 'btn-textart',
|
||||
caption: me.capInsertTextArt,
|
||||
|
@ -1006,7 +1006,10 @@ define([
|
|||
function _injectBtns(opts) {
|
||||
var array = new buttonsArray;
|
||||
var $slots = $host.find(opts.slot);
|
||||
var id = opts.btnconfig.id;
|
||||
$slots.each(function(index, el) {
|
||||
if ( !!id ) opts.btnconfig.id = id + index;
|
||||
|
||||
var button = new Common.UI.Button(opts.btnconfig);
|
||||
button.render( $slots.eq(index) );
|
||||
|
||||
|
@ -1020,6 +1023,7 @@ define([
|
|||
me.btnsInsertImage = _injectBtns({
|
||||
slot: '.slot-insertimg',
|
||||
btnconfig: {
|
||||
id : 'tlbtn-insertimage-',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-insertimage',
|
||||
caption : me.capInsertImage,
|
||||
|
@ -1031,6 +1035,7 @@ define([
|
|||
me.btnsInsertText = _injectBtns({
|
||||
slot: '.slot-instext',
|
||||
btnconfig: {
|
||||
id : 'tlbtn-inserttext-',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-text',
|
||||
caption : me.capInsertText,
|
||||
|
@ -1042,6 +1047,7 @@ define([
|
|||
me.btnsInsertShape = _injectBtns({
|
||||
slot: '.slot-insertshape',
|
||||
btnconfig: {
|
||||
id : 'tlbtn-insertshape-',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-insertshape',
|
||||
caption : me.capInsertShape,
|
||||
|
|
|
@ -2920,6 +2920,7 @@ define([
|
|||
/x-huge/.test(el.className) && (_cls += ' x-huge icon-top');
|
||||
|
||||
var button = new Common.UI.Button({
|
||||
id: 'tlbtn-addcomment-' + index,
|
||||
cls: _cls,
|
||||
iconCls: 'btn-menu-comments',
|
||||
lock: [_set.lostConnect, _set.commentLock],
|
||||
|
|
|
@ -601,7 +601,7 @@ define([
|
|||
});
|
||||
|
||||
me.btnInsertImage = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-insertimage',
|
||||
id : 'tlbtn-insertimage',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-insertimage',
|
||||
caption : me.capInsertImage,
|
||||
|
@ -615,7 +615,7 @@ define([
|
|||
});
|
||||
|
||||
me.btnInsertHyperlink = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-inserthyperlink',
|
||||
id : 'tlbtn-insertlink',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-inserthyperlink',
|
||||
caption : me.capInsertHyperlink,
|
||||
|
@ -623,7 +623,7 @@ define([
|
|||
});
|
||||
|
||||
me.btnInsertChart = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-insertchart',
|
||||
id : 'tlbtn-insertchart',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-insertchart',
|
||||
lock : [_set.editCell, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.coAuthText],
|
||||
|
@ -637,7 +637,7 @@ define([
|
|||
});
|
||||
|
||||
me.btnInsertShape = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-insertshape',
|
||||
id : 'tlbtn-insertshape',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-insertshape',
|
||||
enableToggle: true,
|
||||
|
@ -647,7 +647,7 @@ define([
|
|||
});
|
||||
|
||||
me.btnInsertText = new Common.UI.Button({
|
||||
id : 'tlb-btn-inserttext',
|
||||
id : 'tlbtn-inserttext',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-text',
|
||||
caption : me.capInsertText,
|
||||
|
@ -656,7 +656,7 @@ define([
|
|||
});
|
||||
|
||||
me.btnInsertTextArt = new Common.UI.Button({
|
||||
id : 'tlb-btn-instextart',
|
||||
id : 'tlbtn-inserttextart',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-textart',
|
||||
caption : me.capInsertTextart,
|
||||
|
@ -670,7 +670,7 @@ define([
|
|||
});
|
||||
|
||||
me.btnInsertEquation = new Common.UI.Button({
|
||||
id : 'id-toolbar-btn-insertequation',
|
||||
id : 'tlbtn-insertequation',
|
||||
cls : 'btn-toolbar x-huge icon-top',
|
||||
iconCls : 'btn-insertequation',
|
||||
caption : me.capInsertEquation,
|
||||
|
|
Loading…
Reference in a new issue