|
|
@ -1638,13 +1638,15 @@ define([
|
|
|
|
var d, hasChart;
|
|
|
|
var d, hasChart;
|
|
|
|
if (app === 'doc') {
|
|
|
|
if (app === 'doc') {
|
|
|
|
d = getEditor().GetDocument();
|
|
|
|
d = getEditor().GetDocument();
|
|
|
|
hasChart = d.GetAllCharts().length;
|
|
|
|
hasChart = d.GetAllCharts().length || d.Document.Content.some(function (obj) {
|
|
|
|
|
|
|
|
return obj instanceof AscCommonWord.CTable;
|
|
|
|
|
|
|
|
});
|
|
|
|
if (hasChart) { Feedback.send('OO_DOC_CHART', true); }
|
|
|
|
if (hasChart) { Feedback.send('OO_DOC_CHART', true); }
|
|
|
|
} else if (app === 'presentation') {
|
|
|
|
} else if (app === 'presentation') {
|
|
|
|
d = getEditor().GetPresentation().Presentation;
|
|
|
|
d = getEditor().GetPresentation().Presentation;
|
|
|
|
hasChart = d.Slides.some(function (slide) {
|
|
|
|
hasChart = d.Slides.some(function (slide) {
|
|
|
|
return slide.getDrawingObjects().some(function (obj) {
|
|
|
|
return slide.getDrawingObjects().some(function (obj) {
|
|
|
|
return obj instanceof getWindow().AscFormat.CChartSpace;
|
|
|
|
return obj instanceof getWindow().AscFormat.CChartSpace || obj instanceof getWindow().AscFormat.CGraphicFrame;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
if (hasChart) { Feedback.send('OO_SLIDE_CHART', true); }
|
|
|
|
if (hasChart) { Feedback.send('OO_SLIDE_CHART', true); }
|
|
|
|