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