[PE] Add object to layout
This commit is contained in:
parent
c5eaee0c32
commit
e93904ec96
|
@ -1760,6 +1760,11 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
addToLayout: function() {
|
||||
if (this.api)
|
||||
this.api.asc_AddToLayout();
|
||||
},
|
||||
|
||||
createDelayedElementsViewer: function() {
|
||||
var me = this;
|
||||
|
||||
|
@ -2888,6 +2893,10 @@ define([
|
|||
menuAddCommentImg.hide();
|
||||
/** coauthoring end **/
|
||||
|
||||
var menuAddToLayoutImg = new Common.UI.MenuItem({
|
||||
caption : me.addToLayoutText
|
||||
}).on('click', _.bind(me.addToLayout, me));
|
||||
|
||||
var menuParaCopy = new Common.UI.MenuItem({
|
||||
caption : me.textCopy,
|
||||
value : 'copy'
|
||||
|
@ -2941,6 +2950,10 @@ define([
|
|||
caption : '--'
|
||||
});
|
||||
|
||||
var menuAddToLayoutTable = new Common.UI.MenuItem({
|
||||
caption : me.addToLayoutText
|
||||
}).on('click', _.bind(me.addToLayout, me));
|
||||
|
||||
me.textMenu = new Common.UI.Menu({
|
||||
initMenu: function(value){
|
||||
var isInShape = (value.shapeProps && !_.isNull(value.shapeProps.value));
|
||||
|
@ -3245,7 +3258,9 @@ define([
|
|||
menuAddCommentTable,
|
||||
/** coauthoring end **/
|
||||
menuAddHyperlinkTable,
|
||||
menuHyperlinkTable
|
||||
menuHyperlinkTable,
|
||||
{ caption: '--' },
|
||||
menuAddToLayoutTable
|
||||
]
|
||||
}).on('hide:after', function(menu, e, isFromInputControl) {
|
||||
if (me.suppressEditComplete) {
|
||||
|
@ -3329,8 +3344,10 @@ define([
|
|||
,menuChartEdit
|
||||
/** coauthoring begin **/
|
||||
,menuCommentSeparatorImg,
|
||||
menuAddCommentImg
|
||||
menuAddCommentImg,
|
||||
/** coauthoring end **/
|
||||
{ caption: '--' },
|
||||
menuAddToLayoutImg
|
||||
]
|
||||
}).on('hide:after', function(menu, e, isFromInputControl) {
|
||||
if (me.suppressEditComplete) {
|
||||
|
@ -3574,7 +3591,8 @@ define([
|
|||
textCropFill: 'Fill',
|
||||
textCropFit: 'Fit',
|
||||
toDictionaryText: 'Add to Dictionary',
|
||||
txtPrintSelection: 'Print Selection'
|
||||
txtPrintSelection: 'Print Selection',
|
||||
addToLayoutText: 'Add to Layout'
|
||||
|
||||
}, PE.Views.DocumentHolder || {}));
|
||||
});
|
|
@ -980,7 +980,7 @@
|
|||
"PE.Views.DocumentHolder.textArrangeBack": "Send to Background",
|
||||
"PE.Views.DocumentHolder.textArrangeBackward": "Send Backward",
|
||||
"PE.Views.DocumentHolder.textArrangeForward": "Bring Forward",
|
||||
"PE.Views.DocumentHolder.textArrangeFront": "Bring To Foreground",
|
||||
"PE.Views.DocumentHolder.textArrangeFront": "Bring to Foreground",
|
||||
"PE.Views.DocumentHolder.textCopy": "Copy",
|
||||
"PE.Views.DocumentHolder.textCrop": "Crop",
|
||||
"PE.Views.DocumentHolder.textCropFill": "Fill",
|
||||
|
@ -1102,6 +1102,7 @@
|
|||
"PE.Views.DocumentHolder.txtUnderbar": "Bar under text",
|
||||
"PE.Views.DocumentHolder.txtUngroup": "Ungroup",
|
||||
"PE.Views.DocumentHolder.vertAlignText": "Vertical Alignment",
|
||||
"PE.Views.DocumentHolder.addToLayoutText": "Add to Layout",
|
||||
"PE.Views.DocumentPreview.goToSlideText": "Go to Slide",
|
||||
"PE.Views.DocumentPreview.slideIndexText": "Slide {0} of {1}",
|
||||
"PE.Views.DocumentPreview.txtClose": "Close slideshow",
|
||||
|
@ -1688,7 +1689,7 @@
|
|||
"PE.Views.Toolbar.textArrangeBack": "Send to Background",
|
||||
"PE.Views.Toolbar.textArrangeBackward": "Send Backward",
|
||||
"PE.Views.Toolbar.textArrangeForward": "Bring Forward",
|
||||
"PE.Views.Toolbar.textArrangeFront": "Bring To Foreground",
|
||||
"PE.Views.Toolbar.textArrangeFront": "Bring to Foreground",
|
||||
"PE.Views.Toolbar.textBar": "Bar",
|
||||
"PE.Views.Toolbar.textBold": "Bold",
|
||||
"PE.Views.Toolbar.textCharts": "Charts",
|
||||
|
|
Loading…
Reference in a new issue