Commit 7dab8ef9 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Сохранение chart

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49862 954022d7-b5bf-4e40-9824-e11837661b57
parent 95697084
This diff is collapsed.
...@@ -2092,7 +2092,7 @@ function CBinaryFileWriter() ...@@ -2092,7 +2092,7 @@ function CBinaryFileWriter()
_memory.WriteByte(c_oSerPropLenType.Variable); _memory.WriteByte(c_oSerPropLenType.Variable);
var oBinaryChartWriter = new BinaryChartWriter(_memory); var oBinaryChartWriter = new BinaryChartWriter(_memory);
oBinaryChartWriter.WriteChartContent(grObj.chart); oBinaryChartWriter.WriteChartContent(grObj);
oThis.ImData = _memory.ImData; oThis.ImData = _memory.ImData;
oThis.data = _memory.data; oThis.data = _memory.data;
......
...@@ -2655,7 +2655,7 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, oDrawings, aDxf ...@@ -2655,7 +2655,7 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, oDrawings, aDxf
if (oDrawing.isChart()) if (oDrawing.isChart())
{ {
var oBinaryChartWriter = new BinaryChartWriter(this.memory); var oBinaryChartWriter = new BinaryChartWriter(this.memory);
this.bs.WriteItem(c_oSer_DrawingType.GraphicFrame, function(){oBinaryChartWriter.Write(oDrawing.graphicObject.chart);}); this.bs.WriteItem(c_oSer_DrawingType.GraphicFrame, function(){oBinaryChartWriter.Write(oDrawing.graphicObject);});
} }
else if (oDrawing.isImage()) else if (oDrawing.isImage())
{ {
......
...@@ -2320,7 +2320,7 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap) ...@@ -2320,7 +2320,7 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap)
this.memory.WriteByte(c_oSerPropLenType.Variable); this.memory.WriteByte(c_oSerPropLenType.Variable);
var oBinaryChartWriter = new BinaryChartWriter(this.memory); var oBinaryChartWriter = new BinaryChartWriter(this.memory);
this.bs.WriteItemWithLength(function(){oBinaryChartWriter.WriteChartContent(img.GraphicObj.chart);}); this.bs.WriteItemWithLength(function(){oBinaryChartWriter.WriteChartContent(img.GraphicObj);});
var chartSrc = img.GraphicObj.chart.img; var chartSrc = img.GraphicObj.chart.img;
if(null != chartSrc && "" != chartSrc) if(null != chartSrc && "" != chartSrc)
...@@ -2454,7 +2454,7 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap) ...@@ -2454,7 +2454,7 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap)
this.memory.WriteByte(c_oSerPropLenType.Variable); this.memory.WriteByte(c_oSerPropLenType.Variable);
var oBinaryChartWriter = new BinaryChartWriter(this.memory); var oBinaryChartWriter = new BinaryChartWriter(this.memory);
this.bs.WriteItemWithLength(function(){oBinaryChartWriter.WriteChartContent(img.GraphicObj.chart);}); this.bs.WriteItemWithLength(function(){oBinaryChartWriter.WriteChartContent(img.GraphicObj);});
var chartSrc = img.GraphicObj.chart.img; var chartSrc = img.GraphicObj.chart.img;
if(null != chartSrc && "" != chartSrc) if(null != chartSrc && "" != chartSrc)
......
...@@ -670,7 +670,26 @@ function CPPTXContentWriter() ...@@ -670,7 +670,26 @@ function CPPTXContentWriter()
{ {
this.ShapeTextBoxContent = null; this.ShapeTextBoxContent = null;
} }
this.WriteTextBody = function(memory, textBody)
{
this.BinaryFileWriter.pos = 0;
var _writer = this.BinaryFileWriter;
_writer.StartRecord(0);
_writer.WriteTxBody(textBody);
_writer.EndRecord();
memory.WriteBuffer(this.BinaryFileWriter.data, 0, this.BinaryFileWriter.pos);
this.BinaryFileWriter.pos = 0;
}
this.WriteSpPr = function(memory, spPr)
{
this.BinaryFileWriter.pos = 0;
var _writer = this.BinaryFileWriter;
_writer.StartRecord(0);
_writer.WriteSpPr(spPr);
_writer.EndRecord();
memory.WriteBuffer(this.BinaryFileWriter.data, 0, this.BinaryFileWriter.pos);
this.BinaryFileWriter.pos = 0;
}
this.WriteDrawing = function(memory, grObject, Document, oMapCommentId, oNumIdMap) this.WriteDrawing = function(memory, grObject, Document, oMapCommentId, oNumIdMap)
{ {
this.TreeDrawingIndex++; this.TreeDrawingIndex++;
......
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