Reenable OO charts and tables

pull/1/head
yflory 3 years ago
parent b7ecebff94
commit 5e2da97e65

@ -1586,10 +1586,6 @@ define([
var $tb = $iframe.find('head');
var css = // Old OO
//'#id-toolbar-full .toolbar-group:nth-child(2), #id-toolbar-full .separator:nth-child(3) { display: none; }' +
'#slot-btn-inschart { display: none !important; }' + // XXX XXX
'#slot-btn-insertchart { display: none !important; }' + // XXX XXX
'#slot-btn-instable { display: none !important; }' + // XXX XXX
'#slot-btn-inserttable { display: none !important; }' + // XXX XXX
//'#fm-btn-save { display: none !important; }' +
//'#panel-settings-general tr.autosave { display: none !important; }' +
//'#panel-settings-general tr.coauth { display: none !important; }' +
@ -1634,29 +1630,6 @@ define([
}
},
"onDocumentReady": function () {
// XXX remove the following block
try {
var app = common.getMetadataMgr().getPrivateData().ooType;
var d, hasChart;
if (app === 'doc') {
d = getEditor().GetDocument();
hasChart = d.GetAllCharts().length || d.Document.Content.some(function (obj) {
return obj instanceof getWindow().AscCommonWord.CTable;
});
if (hasChart) { Feedback.send('OO_DOC_CHART', true); }
} else if (app === 'presentation') {
d = getEditor().GetPresentation().Presentation;
hasChart = d.Slides.some(function (slide) {
return slide.getDrawingObjects().some(function (obj) {
return obj instanceof getWindow().AscFormat.CChartSpace || obj instanceof getWindow().AscFormat.CGraphicFrame;
});
});
if (hasChart) { Feedback.send('OO_SLIDE_CHART', true); }
}
} catch (e) {}
evOnSync.fire();
var onMigrateRdy = Util.mkEvent();
onMigrateRdy.reg(function () {

Loading…
Cancel
Save