From 8d6443df5bb4b50228007030ad8301bb07341bb0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 11 Feb 2020 19:53:59 +0300 Subject: [PATCH] [DE] Bug 44338 --- apps/documenteditor/main/app/view/DocumentHolder.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index e4d0c3ce8..7e49f65df 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -1998,6 +1998,10 @@ define([ var menuSignatureRemove = new Common.UI.MenuItem({caption: this.strDelete, value: 3 }).on('click', _.bind(me.onSignatureClick, me)); var menuViewSignSeparator = new Common.UI.MenuItem({caption: '--' }); + var menuViewPrint = new Common.UI.MenuItem({ + caption : me.txtPrintSelection + }).on('click', _.bind(me.onPrintSelection, me)); + this.viewModeMenu = new Common.UI.Menu({ initMenu: function (value) { var isInChart = (value.imgProps && value.imgProps.value && !_.isNull(value.imgProps.value.get_ChartProperties())), @@ -2032,10 +2036,13 @@ define([ var cancopy = me.api && me.api.can_CopyCut(); menuViewCopy.setDisabled(!cancopy); + menuViewPrint.setVisible(me.mode.canPrint); + menuViewPrint.setDisabled(!cancopy); }, items: [ menuViewCopy, menuViewUndo, + menuViewPrint, menuViewCopySeparator, menuSignatureViewSign, menuSignatureDetails,