Commit 013e204f authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

чтение цвета серий и bShowBorder для chart

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48908 954022d7-b5bf-4e40-9824-e11837661b57
parent 547e7d5a
......@@ -1435,8 +1435,15 @@ function Binary_ChartReader(stream, chart, chartAsGroup)
else
this.chartAsGroup.chartTitle.txPr = textBody;
}
else if ( c_oSer_ChartType.ShowBorder === type )
this.chart.bShowBorder = this.stream.GetBool();
else if ( c_oSer_ChartType.SpPr === type )
{
var oPresentationSimpleSerializer = new CPPTXContentLoader();
var oNewSpPr = oPresentationSimpleSerializer.ReadShapeProperty(this.stream);
if(null != oNewSpPr && null != oNewSpPr.ln && null != oNewSpPr.ln.Fill && null != oNewSpPr.ln.Fill.fill && FILL_TYPE_NOFILL == oNewSpPr.ln.Fill.fill.type)
this.chart.bShowBorder = false;
else
this.chart.bShowBorder = true;
}
else
res = c_oSerConstants.ReadUnknown;
return res;
......@@ -1725,17 +1732,6 @@ function Binary_ChartReader(stream, chart, chartAsGroup)
return oThis.ReadSeriesMarkers(t,l, seria.Marker);
});
}
else if ( c_oSer_ChartSeriesType.OutlineColor === type )
{
var color = new OpenColor();
res = this.bcr.Read2Spreadsheet(length, function(t,l){
return oThis.bcr.ReadColorSpreadsheet(t,l, color);
});
if(null != color.theme)
seria.OutlineColor = g_oColorManager.getThemeColor(color.theme, color.tint);
else if(null != color.rgb)
seria.OutlineColor = new RgbColor(0x00ffffff & color.rgb);
}
else if ( c_oSer_ChartSeriesType.Index === type )
{
this.oSeriesByIndex[this.stream.GetULongLE()] = seria;
......@@ -1753,6 +1749,11 @@ function Binary_ChartReader(stream, chart, chartAsGroup)
if(null != oOutput.TxPrPptx && null != oOutput.TxPrPptx.font)
seria.LabelFont = oOutput.TxPrPptx.font;
}
else if ( c_oSer_ChartSeriesType.SpPr === type )
{
var oPresentationSimpleSerializer = new CPPTXContentLoader();
var oNewSpPr = oPresentationSimpleSerializer.ReadShapeProperty(this.stream);
}
else
res = c_oSerConstants.ReadUnknown;
return res;
......
......@@ -159,6 +159,41 @@ function CPPTXContentLoader()
return txBody;
}
this.ReadShapeProperty = function(stream)
{
if (this.Reader == null)
this.Reader = new BinaryPPTYLoader();
this.LogicDocument = null;
this.Reader.ImageMapChecker = this.ImageMapChecker;
if (null == this.stream)
{
this.stream = new FileStream();
this.stream.obj = stream.obj;
this.stream.data = stream.data;
this.stream.size = stream.size;
}
this.stream.pos = stream.pos;
this.stream.cur = stream.cur;
this.Reader.stream = this.stream;
var s = this.stream;
var _main_type = s.GetUChar(); // 0!!!
var oNewSpPr = new CSpPr();
this.Reader.ReadSpPr(oNewSpPr);
stream.pos = s.pos;
stream.cur = s.cur;
return oNewSpPr;
}
this.ReadShape = function()
{
......
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