[DE] Added item "Show as picture" in context menu
This commit is contained in:
parent
36e40891dd
commit
36c3aeb576
|
@ -370,6 +370,7 @@ define([
|
|||
view.menuRemoveHyperlinkPara.on('click', _.bind(me.removeHyperlink, me));
|
||||
view.menuRemoveHyperlinkTable.on('click', _.bind(me.removeHyperlink, me));
|
||||
view.menuChartEdit.on('click', _.bind(me.editChartClick, me, undefined));
|
||||
view.menuSaveAsPicture.on('click', _.bind(me.saveAsPicture, me));
|
||||
view.menuAddCommentPara.on('click', _.bind(me.addComment, me));
|
||||
view.menuAddCommentTable.on('click', _.bind(me.addComment, me));
|
||||
view.menuAddCommentImg.on('click', _.bind(me.addComment, me));
|
||||
|
@ -1351,6 +1352,12 @@ define([
|
|||
},
|
||||
|
||||
|
||||
saveAsPicture: function() {
|
||||
if(this.api) {
|
||||
this.api.asc_SaveDrawingAsPicture();
|
||||
}
|
||||
},
|
||||
|
||||
/** coauthoring begin **/
|
||||
addComment: function(item, e, eOpt){
|
||||
if (this.api && this.mode.canCoAuthoring && this.mode.canComments) {
|
||||
|
|
|
@ -1795,6 +1795,14 @@ define([
|
|||
})
|
||||
});
|
||||
|
||||
me.menuSaveAsPicture = new Common.UI.MenuItem({
|
||||
caption : me.textSaveAsPicture
|
||||
});
|
||||
|
||||
var menuSaveAsPictureSeparator = new Common.UI.MenuItem({
|
||||
caption : '--'
|
||||
});
|
||||
|
||||
/** coauthoring begin **/
|
||||
me.menuAddCommentPara = new Common.UI.MenuItem({
|
||||
iconCls: 'menu__icon btn-menu-comments',
|
||||
|
@ -2253,6 +2261,7 @@ define([
|
|||
me.menuChartEdit.setVisible(_.isUndefined(value.imgProps) && !_.isUndefined(value.chartProps) && (_.isUndefined(value.shapeProps) || value.shapeProps.isChart));
|
||||
me.menuChartAdvanced.setVisible(_.isUndefined(value.imgProps) && !_.isUndefined(value.chartProps) && (_.isUndefined(value.shapeProps) || value.shapeProps.isChart));
|
||||
menuImgShapeSeparator.setVisible(me.menuImageAdvanced.isVisible() || me.menuShapeAdvanced.isVisible() || me.menuChartEdit.isVisible() || me.menuChartAdvanced.isVisible());
|
||||
|
||||
/** coauthoring begin **/
|
||||
me.menuAddCommentImg.setVisible(me.api.can_AddQuotedComment()!==false && me.mode.canCoAuthoring && me.mode.canComments);
|
||||
menuCommentSeparatorImg.setVisible(me.menuAddCommentImg.isVisible());
|
||||
|
@ -2276,6 +2285,7 @@ define([
|
|||
me.menuImgCut.setDisabled(disabled || !cancopy);
|
||||
me.menuImgPaste.setDisabled(disabled);
|
||||
menuImgShapeArrange.setDisabled(disabled);
|
||||
me.menuSaveAsPicture.setDisabled(disabled);
|
||||
me.menuAddToLayoutImg.setDisabled(disabled);
|
||||
},
|
||||
items: [
|
||||
|
@ -2296,6 +2306,8 @@ define([
|
|||
me.menuShapeAdvanced
|
||||
,me.menuChartEdit
|
||||
,me.menuChartAdvanced
|
||||
,menuSaveAsPictureSeparator
|
||||
,me.menuSaveAsPicture
|
||||
/** coauthoring begin **/
|
||||
,menuCommentSeparatorImg,
|
||||
me.menuAddCommentImg,
|
||||
|
@ -2411,6 +2423,7 @@ define([
|
|||
txtSlide : 'Slide',
|
||||
cellAlignText : 'Cell Vertical Alignment',
|
||||
advancedShapeText : 'Shape Advanced Settings',
|
||||
textSaveAsPicture : 'Save as picture',
|
||||
/** coauthoring begin **/
|
||||
addCommentText : 'Add Comment',
|
||||
/** coauthoring end **/
|
||||
|
|
|
@ -1592,6 +1592,7 @@
|
|||
"PE.Views.DateTimeDialog.textUpdate": "Update automatically",
|
||||
"PE.Views.DateTimeDialog.txtTitle": "Date & Time",
|
||||
"PE.Views.DocumentHolder.aboveText": "Above",
|
||||
"PE.Views.DocumentHolder.textSaveAsPicture": "Save as picture",
|
||||
"PE.Views.DocumentHolder.addCommentText": "Add Comment",
|
||||
"PE.Views.DocumentHolder.addToLayoutText": "Add to Layout",
|
||||
"PE.Views.DocumentHolder.advancedChartText": "Chart Advanced Settings",
|
||||
|
|
|
@ -1592,6 +1592,7 @@
|
|||
"PE.Views.DateTimeDialog.textUpdate": "Обновлять автоматически",
|
||||
"PE.Views.DateTimeDialog.txtTitle": "Дата и время",
|
||||
"PE.Views.DocumentHolder.aboveText": "Выше",
|
||||
"PE.Views.DocumentHolder.textSaveAsPicture": "Сохранить как картинку",
|
||||
"PE.Views.DocumentHolder.addCommentText": "Добавить комментарий",
|
||||
"PE.Views.DocumentHolder.addToLayoutText": "Добавить в макет",
|
||||
"PE.Views.DocumentHolder.advancedChartText": "Дополнительные параметры диаграммы",
|
||||
|
|
Loading…
Reference in a new issue