[DE] Add ole object
This commit is contained in:
parent
d3719967dd
commit
eef4f52565
|
@ -170,8 +170,9 @@ define([
|
|||
var command = message.data.command;
|
||||
var data = message.data.data;
|
||||
if (this.api) {
|
||||
if (oleEditor.isEditMode())
|
||||
this.api.asc_editTableOleObject(data);
|
||||
oleEditor.isEditMode()
|
||||
? this.api.asc_editTableOleObject(data)
|
||||
: this.api.asc_addTableOleObject(data);
|
||||
}
|
||||
}, this));
|
||||
oleEditor.on('hide', _.bind(function(cmp, message) {
|
||||
|
|
|
@ -1540,6 +1540,13 @@ define([
|
|||
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||
}
|
||||
})).show();
|
||||
} else if (item.value == 'sse') {
|
||||
var oleEditor = this.getApplication().getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor');
|
||||
if (oleEditor) {
|
||||
oleEditor.setEditMode(false);
|
||||
oleEditor.show();
|
||||
oleEditor.setOleData("empty");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -607,7 +607,8 @@ define([
|
|||
{caption: this.mniCustomTable, value: 'custom'},
|
||||
{caption: this.mniDrawTable, value: 'draw', checkable: true},
|
||||
{caption: this.mniEraseTable, value: 'erase', checkable: true},
|
||||
{caption: this.mniTextToTable, value: 'convert'}
|
||||
{caption: this.mniTextToTable, value: 'convert'},
|
||||
{caption: this.mniInsertSSE, value: 'sse'}
|
||||
]
|
||||
}),
|
||||
dataHint: '1',
|
||||
|
@ -2829,7 +2830,8 @@ define([
|
|||
tipMarkersDash: 'Dash bullets',
|
||||
textTabView: 'View',
|
||||
mniRemoveHeader: 'Remove Header',
|
||||
mniRemoveFooter: 'Remove Footer'
|
||||
mniRemoveFooter: 'Remove Footer',
|
||||
mniInsertSSE: 'Insert Spreadsheet'
|
||||
}
|
||||
})(), DE.Views.Toolbar || {}));
|
||||
});
|
||||
|
|
|
@ -2573,8 +2573,8 @@ define([
|
|||
width: value.width, height: value.height
|
||||
});
|
||||
};
|
||||
if (typeof obj === 'object' && this.api) {
|
||||
this.api.asc_addTableOleObjectInOleEditor(obj, callback);
|
||||
if ((typeof obj === 'object' || obj==="empty") && this.api) {
|
||||
this.api.asc_addTableOleObjectInOleEditor(typeof obj === 'object' ? obj : undefined, callback);
|
||||
this.isFrameClosed = false;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue