[SSE] Fix Bug 42169
This commit is contained in:
parent
0ea40446a6
commit
126c92d14f
|
@ -159,6 +159,9 @@ define([
|
||||||
view.pmiTextCut.on('click', _.bind(me.onCopyPaste, me));
|
view.pmiTextCut.on('click', _.bind(me.onCopyPaste, me));
|
||||||
view.pmiTextCopy.on('click', _.bind(me.onCopyPaste, me));
|
view.pmiTextCopy.on('click', _.bind(me.onCopyPaste, me));
|
||||||
view.pmiTextPaste.on('click', _.bind(me.onCopyPaste, me));
|
view.pmiTextPaste.on('click', _.bind(me.onCopyPaste, me));
|
||||||
|
view.pmiCommonCut.on('click', _.bind(me.onCopyPaste, me));
|
||||||
|
view.pmiCommonCopy.on('click', _.bind(me.onCopyPaste, me));
|
||||||
|
view.pmiCommonPaste.on('click', _.bind(me.onCopyPaste, me));
|
||||||
view.pmiInsertEntire.on('click', _.bind(me.onInsertEntire, me));
|
view.pmiInsertEntire.on('click', _.bind(me.onInsertEntire, me));
|
||||||
view.pmiDeleteEntire.on('click', _.bind(me.onDeleteEntire, me));
|
view.pmiDeleteEntire.on('click', _.bind(me.onDeleteEntire, me));
|
||||||
view.pmiInsertCells.menu.on('item:click', _.bind(me.onInsertCells, me));
|
view.pmiInsertCells.menu.on('item:click', _.bind(me.onInsertCells, me));
|
||||||
|
@ -1514,7 +1517,10 @@ define([
|
||||||
case Asc.c_oAscSelectionType.RangeShapeText: istextshapemenu = !internaleditor; break;
|
case Asc.c_oAscSelectionType.RangeShapeText: istextshapemenu = !internaleditor; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isimagemenu || isshapemenu || ischartmenu) {
|
if (this.api.asc_getHeaderFooterMode()) {
|
||||||
|
if (!documentHolder.copyPasteMenu || !showMenu && !documentHolder.copyPasteMenu.isVisible()) return;
|
||||||
|
if (showMenu) this.showPopupMenu(documentHolder.copyPasteMenu, {}, event);
|
||||||
|
} else if (isimagemenu || isshapemenu || ischartmenu) {
|
||||||
if (!documentHolder.imgMenu || !showMenu && !documentHolder.imgMenu.isVisible()) return;
|
if (!documentHolder.imgMenu || !showMenu && !documentHolder.imgMenu.isVisible()) return;
|
||||||
|
|
||||||
isimagemenu = isshapemenu = ischartmenu = false;
|
isimagemenu = isshapemenu = ischartmenu = false;
|
||||||
|
@ -1661,8 +1667,7 @@ define([
|
||||||
formatTableInfo = cellinfo.asc_getFormatTableInfo(),
|
formatTableInfo = cellinfo.asc_getFormatTableInfo(),
|
||||||
isinsparkline = (cellinfo.asc_getSparklineInfo()!==null),
|
isinsparkline = (cellinfo.asc_getSparklineInfo()!==null),
|
||||||
isintable = (formatTableInfo !== null),
|
isintable = (formatTableInfo !== null),
|
||||||
ismultiselect = cellinfo.asc_getFlags().asc_getMultiselect(),
|
ismultiselect = cellinfo.asc_getFlags().asc_getMultiselect();
|
||||||
inHeaderDlg = $('.asc-window.enable-key-events:visible').length>0;
|
|
||||||
documentHolder.ssMenu.formatTableName = (isintable) ? formatTableInfo.asc_getTableName() : null;
|
documentHolder.ssMenu.formatTableName = (isintable) ? formatTableInfo.asc_getTableName() : null;
|
||||||
documentHolder.ssMenu.cellColor = cellinfo.asc_getFill().asc_getColor();
|
documentHolder.ssMenu.cellColor = cellinfo.asc_getFill().asc_getColor();
|
||||||
documentHolder.ssMenu.fontColor = cellinfo.asc_getFont().asc_getColor();
|
documentHolder.ssMenu.fontColor = cellinfo.asc_getFont().asc_getColor();
|
||||||
|
@ -1719,8 +1724,6 @@ define([
|
||||||
|
|
||||||
commentsController && commentsController.blockPopover(true);
|
commentsController && commentsController.blockPopover(true);
|
||||||
|
|
||||||
documentHolder.pmiClear.setVisible(!inHeaderDlg);
|
|
||||||
documentHolder.ssMenu.items[3].setVisible(!inHeaderDlg);
|
|
||||||
documentHolder.pmiClear.menu.items[0].setDisabled(!this.permissions.canModifyFilter);
|
documentHolder.pmiClear.menu.items[0].setDisabled(!this.permissions.canModifyFilter);
|
||||||
documentHolder.pmiClear.menu.items[1].setDisabled(iscelledit);
|
documentHolder.pmiClear.menu.items[1].setDisabled(iscelledit);
|
||||||
documentHolder.pmiClear.menu.items[2].setDisabled(iscelledit || !this.permissions.canModifyFilter);
|
documentHolder.pmiClear.menu.items[2].setDisabled(iscelledit || !this.permissions.canModifyFilter);
|
||||||
|
|
|
@ -922,6 +922,29 @@ define([
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
me.pmiCommonCut = new Common.UI.MenuItem({
|
||||||
|
caption : me.txtCut,
|
||||||
|
value : 'cut'
|
||||||
|
});
|
||||||
|
|
||||||
|
me.pmiCommonCopy = new Common.UI.MenuItem({
|
||||||
|
caption : me.txtCopy,
|
||||||
|
value : 'copy'
|
||||||
|
});
|
||||||
|
|
||||||
|
me.pmiCommonPaste = new Common.UI.MenuItem({
|
||||||
|
caption : me.txtPaste,
|
||||||
|
value : 'paste'
|
||||||
|
});
|
||||||
|
|
||||||
|
this.copyPasteMenu = new Common.UI.Menu({
|
||||||
|
items: [
|
||||||
|
me.pmiCommonCut,
|
||||||
|
me.pmiCommonCopy,
|
||||||
|
me.pmiCommonPaste
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
this.entriesMenu = new Common.UI.Menu({
|
this.entriesMenu = new Common.UI.Menu({
|
||||||
maxHeight: 200,
|
maxHeight: 200,
|
||||||
cyclic: false,
|
cyclic: false,
|
||||||
|
|
Loading…
Reference in a new issue