Commit 1b9f3402 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

чтение txPr через ReadTextBodyTxPr

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51654 954022d7-b5bf-4e40-9824-e11837661b57
parent 883dcc67
...@@ -1565,17 +1565,16 @@ function Binary_ChartReader(stream, chart, chartAsGroup) ...@@ -1565,17 +1565,16 @@ function Binary_ChartReader(stream, chart, chartAsGroup)
this.ReadChartTitle = function(type, length, chartTitlePptx, chartTitleHeader) this.ReadChartTitle = function(type, length, chartTitlePptx, chartTitleHeader)
{ {
var res = c_oSerConstants.ReadOk; var res = c_oSerConstants.ReadOk;
if ( c_oSer_ChartTitlePptxType.TxPptx === type || c_oSer_ChartTitlePptxType.TxPrPptx === type) if ( c_oSer_ChartTitlePptxType.TxPptx === type )
{
var oPPTXContentLoader = new CPPTXContentLoader();
oPPTXContentLoader.ReadTextBody(null, this.stream, chartTitlePptx);
chartTitleHeader.bDefaultTitle = false;
}
else if ( c_oSer_ChartTitlePptxType.TxPrPptx === type)
{ {
var oPPTXContentLoader = new CPPTXContentLoader(); var oPPTXContentLoader = new CPPTXContentLoader();
var textBody = oPPTXContentLoader.ReadTextBody(null, this.stream, chartTitlePptx); oPPTXContentLoader.ReadTextBodyTxPr(null, this.stream, chartTitlePptx);
if(c_oSer_ChartTitlePptxType.TxPptx === type)
{
chartTitlePptx.txBody = textBody;
chartTitleHeader.bDefaultTitle = false;
}
else
chartTitlePptx.txPr = textBody;
} }
else else
res = c_oSerConstants.ReadUnknown; res = c_oSerConstants.ReadUnknown;
...@@ -1610,7 +1609,7 @@ function Binary_ChartReader(stream, chart, chartAsGroup) ...@@ -1610,7 +1609,7 @@ function Binary_ChartReader(stream, chart, chartAsGroup)
{ {
var oTempTitle = new CChartTitle(this.chartAsGroup, CHART_TITLE_TYPE_TITLE); var oTempTitle = new CChartTitle(this.chartAsGroup, CHART_TITLE_TYPE_TITLE);
var oPPTXContentLoader = new CPPTXContentLoader(); var oPPTXContentLoader = new CPPTXContentLoader();
var textBody = oPPTXContentLoader.ReadTextBody(null, this.stream, oTempTitle); var textBody = oPPTXContentLoader.ReadTextBodyTxPr(null, this.stream, oTempTitle);
// var font = this.ParsePptxParagraph(textBody); // var font = this.ParsePptxParagraph(textBody);
// if(null != font) // if(null != font)
// this.chart.legend.font = font; // this.chart.legend.font = font;
...@@ -1640,7 +1639,7 @@ function Binary_ChartReader(stream, chart, chartAsGroup) ...@@ -1640,7 +1639,7 @@ function Binary_ChartReader(stream, chart, chartAsGroup)
{ {
var oTempTitle = new CChartTitle(this.chartAsGroup, CHART_TITLE_TYPE_TITLE); var oTempTitle = new CChartTitle(this.chartAsGroup, CHART_TITLE_TYPE_TITLE);
var oPPTXContentLoader = new CPPTXContentLoader(); var oPPTXContentLoader = new CPPTXContentLoader();
var textBody = oPPTXContentLoader.ReadTextBody(null, this.stream, oTempTitle); var textBody = oPPTXContentLoader.ReadTextBodyTxPr(null, this.stream, oTempTitle);
//oLegendEntry.oTxPr = this.ParsePptxParagraph(textBody); //oLegendEntry.oTxPr = this.ParsePptxParagraph(textBody);
} }
else else
...@@ -1765,7 +1764,7 @@ function Binary_ChartReader(stream, chart, chartAsGroup) ...@@ -1765,7 +1764,7 @@ function Binary_ChartReader(stream, chart, chartAsGroup)
//настройки цифр линейки. //настройки цифр линейки.
var oTxPr = new CChartTitle(this.chartAsGroup, CHART_TITLE_TYPE_TITLE); var oTxPr = new CChartTitle(this.chartAsGroup, CHART_TITLE_TYPE_TITLE);
var oPPTXContentLoader = new CPPTXContentLoader(); var oPPTXContentLoader = new CPPTXContentLoader();
var textBody = oPPTXContentLoader.ReadTextBody(null, this.stream, oTxPr); var textBody = oPPTXContentLoader.ReadTextBodyTxPr(null, this.stream, oTxPr);
} }
else else
res = c_oSerConstants.ReadUnknown; res = c_oSerConstants.ReadUnknown;
...@@ -2031,7 +2030,7 @@ function Binary_ChartReader(stream, chart, chartAsGroup) ...@@ -2031,7 +2030,7 @@ function Binary_ChartReader(stream, chart, chartAsGroup)
{ {
var oTempTitle = new CChartTitle(this.chartAsGroup, CHART_TITLE_TYPE_TITLE); var oTempTitle = new CChartTitle(this.chartAsGroup, CHART_TITLE_TYPE_TITLE);
var oPPTXContentLoader = new CPPTXContentLoader(); var oPPTXContentLoader = new CPPTXContentLoader();
var textBody = oPPTXContentLoader.ReadTextBody(null, this.stream, oTempTitle); var textBody = oPPTXContentLoader.ReadTextBodyTxPr(null, this.stream, oTempTitle);
//oOutput.TxPrPptx = this.ParsePptxParagraph(textBody); //oOutput.TxPrPptx = this.ParsePptxParagraph(textBody);
} }
else if ( c_oSer_ChartSeriesDataLabelsType.ShowCatName === type ) else if ( c_oSer_ChartSeriesDataLabelsType.ShowCatName === type )
......
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