[PE] Add ole object
This commit is contained in:
parent
d5732f21a4
commit
8b76a04826
|
@ -333,8 +333,9 @@ define([
|
||||||
var command = message.data.command;
|
var command = message.data.command;
|
||||||
var data = message.data.data;
|
var data = message.data.data;
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
if (oleEditor.isEditMode())
|
oleEditor.isEditMode()
|
||||||
this.api.asc_editTableOleObject(data);
|
? this.api.asc_editTableOleObject(data)
|
||||||
|
: this.api.asc_addTableOleObject(data);
|
||||||
}
|
}
|
||||||
}, this));
|
}, this));
|
||||||
oleEditor.on('hide', _.bind(function(cmp, message) {
|
oleEditor.on('hide', _.bind(function(cmp, message) {
|
||||||
|
|
|
@ -1686,6 +1686,13 @@ define([
|
||||||
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
}
|
}
|
||||||
})).show();
|
})).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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -719,7 +719,8 @@ define([
|
||||||
cls: 'shifted-left',
|
cls: 'shifted-left',
|
||||||
items: [
|
items: [
|
||||||
{template: _.template('<div id="id-toolbar-menu-tablepicker" class="dimension-picker" style="margin: 5px 10px;"></div>')},
|
{template: _.template('<div id="id-toolbar-menu-tablepicker" class="dimension-picker" style="margin: 5px 10px;"></div>')},
|
||||||
{caption: me.mniCustomTable, value: 'custom'}
|
{caption: me.mniCustomTable, value: 'custom'},
|
||||||
|
{caption: me.mniInsertSSE, value: 'sse'}
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
|
@ -2029,7 +2030,8 @@ define([
|
||||||
tipMarkersFRhombus: 'Filled rhombus bullets',
|
tipMarkersFRhombus: 'Filled rhombus bullets',
|
||||||
tipMarkersDash: 'Dash bullets',
|
tipMarkersDash: 'Dash bullets',
|
||||||
tipNone: 'None',
|
tipNone: 'None',
|
||||||
textTabView: 'View'
|
textTabView: 'View',
|
||||||
|
mniInsertSSE: 'Insert Spreadsheet'
|
||||||
}
|
}
|
||||||
}()), PE.Views.Toolbar || {}));
|
}()), PE.Views.Toolbar || {}));
|
||||||
});
|
});
|
Loading…
Reference in a new issue