Commit f65f9d1a authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Доработана ParseFormula(Serialize2.js)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49419 954022d7-b5bf-4e40-9824-e11837661b57
parent 80779065
...@@ -3390,7 +3390,7 @@ function DrawingObjects() { ...@@ -3390,7 +3390,7 @@ function DrawingObjects() {
var seriesCount = graphicObject.chart.series.length; var seriesCount = graphicObject.chart.series.length;
if ( seriesCount ) { if ( seriesCount ) {
// Нужно переименовать лист для совместимости языков // Нужно переименовать лист для дальнейшего поиска
var resultRef = parserHelp.parse3DRef(graphicObject.chart.series[0].Val.Formula); var resultRef = parserHelp.parse3DRef(graphicObject.chart.series[0].Val.Formula);
worksheet.model.workbook.aWorksheets[0].sName = resultRef.sheet; worksheet.model.workbook.aWorksheets[0].sName = resultRef.sheet;
...@@ -3430,9 +3430,11 @@ function DrawingObjects() { ...@@ -3430,9 +3430,11 @@ function DrawingObjects() {
_this.calcChartInterval(graphicObject.chart);*/ _this.calcChartInterval(graphicObject.chart);*/
var _range = convertFormula(graphicObject.chart.range.interval, worksheet); if ( graphicObject.chart.range.interval ) {
if ( _range ) var _range = convertFormula(graphicObject.chart.range.interval, worksheet);
graphicObject.chart.range.intervalObject = _range; if ( _range )
graphicObject.chart.range.intervalObject = _range;
}
} }
// Инжектим тему и перестраиваем превью диаграмм // Инжектим тему и перестраиваем превью диаграмм
......
...@@ -5666,12 +5666,18 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow ...@@ -5666,12 +5666,18 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
formula = formula.substring(index + 1); formula = formula.substring(index + 1);
formula = formula.replace(/\$/g,""); formula = formula.replace(/\$/g,"");
var parts = formula.split(":"); var parts = formula.split(":");
if(2 == parts.length) if (2 == parts.length)
{ {
var first = new CellAddress(parts[0]); var first = new CellAddress(parts[0]);
var last = new CellAddress(parts[1]); var last = new CellAddress(parts[1]);
bbox = {r1: first.getRow0(), c1: first.getCol0(), r2: last.getRow0(), c2: last.getCol0()}; bbox = {r1: first.getRow0(), c1: first.getCol0(), r2: last.getRow0(), c2: last.getCol0()};
} }
else
{
var cell = new CellAddress(formula);
if ( cell )
bbox = {r1: cell.getRow0(), c1: cell.getCol0(), r2: cell.getRow0(), c2: cell.getCol0()};
}
return bbox; return bbox;
} }
this.ReadPptxDrawing = function(type, length, oParaDrawing, oChartObject) this.ReadPptxDrawing = function(type, length, oParaDrawing, oChartObject)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment