Commit 6e39f8a5 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49290 954022d7-b5bf-4e40-9824-e11837661b57
parent 2c077ec3
......@@ -6875,67 +6875,33 @@ asc_docs_api.prototype.asc_getChartObject = function()
asc_docs_api.prototype.asc_addChartDrawingObject = function(chartBinary)
{
/*if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content) )
{
History.Create_NewPoint();
var diagramm = new CChartData(true);
diagramm.deserializeChart(chart);
diagramm.putToHistory();
var _image = this.ImageLoader.LoadImage(_getFullImageSrc(diagramm.img), 1);
if (null != _image)
{
this.WordControl.m_oLogicDocument.Add_InlineImage( this.WordControl.m_oLogicDocument.DrawingDocument.GetMMPerDot(diagramm.width),
this.WordControl.m_oLogicDocument.DrawingDocument.GetMMPerDot(diagramm.height), null, diagramm );
}
else
{
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = function(_image)
{
this.WordControl.m_oLogicDocument.Add_InlineImage( this.WordControl.m_oLogicDocument.DrawingDocument.GetMMPerDot(diagramm.width),
this.WordControl.m_oLogicDocument.DrawingDocument.GetMMPerDot(diagramm.height), null, diagramm);
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
}
}
}*/
/**/
// Приводим бинарик к объекту типа CChartAsGroup и добавляем объект
if ( isObject(chartBinary) )
{
var binary = chartBinary["binary"];
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content) )
{
History.Create_NewPoint();
this.WordControl.m_oLogicDocument.Add_InlineImage( null, null, null, binary );
}
}
}
asc_docs_api.prototype.asc_editChartDrawingObject = function(chartBinary)
{
/*if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content) )
{
History.Create_NewPoint();
var diagramm = new CChartData(true);
diagramm.deserializeChart(chart);
diagramm.putToHistory();
var _image = this.ImageLoader.LoadImage(_getFullImageSrc(diagramm.img), 1);
if (null != _image)
{
this.WordControl.m_oLogicDocument.Edit_Chart( diagramm );
}
else
{
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
this.asyncImageEndLoaded2 = function(_image)
{
this.WordControl.m_oLogicDocument.Edit_Chart( diagramm );
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadImage);
}
}
}*/
/**/
// Находим выделенную диаграмму и накатываем бинарник
if ( isObject(chartBinary) )
{
var binary = chartBinary["binary"];
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content) )
{
History.Create_NewPoint();
this.WordControl.m_oLogicDocument.Edit_Chart(binary);
}
}
}
......
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