Commit ae0f7f15 authored by Sergey Luzyanin's avatar Sergey Luzyanin

delete unused code

parent 2b5bbc90
...@@ -111,31 +111,6 @@ function CDistance(L, T, R, B) ...@@ -111,31 +111,6 @@ function CDistance(L, T, R, B)
} }
function HistoryInterface()
{
this.m_aChanges = [];
this.m_oBinaryWriter = new CMemory();
}
HistoryInterface.prototype.Add = function(Class, Data)
{
var Binary_Pos = this.m_oBinaryWriter.GetCurPosition();
this.m_oBinaryWriter.WriteString2(Class.Get_Id());
Class.Save_Changes( Data, this.m_oBinaryWriter );
var Binary_Len = this.m_oBinaryWriter.GetCurPosition() - Binary_Pos;
this.m_aChanges.push(Binary_Len + ";" + this.m_oBinaryWriter.GetBase64Memory2(Binary_Pos, Binary_Len));
};
HistoryInterface.prototype.GetResultChanges = function()
{
return this.m_aChanges;
};
HistoryInterface.prototype.Is_On = function()
{
return true;
};HistoryInterface.prototype.Is_On = function()
{
return true;
};
function checkObjectInArray(aObjects, oObject) function checkObjectInArray(aObjects, oObject)
{ {
......
...@@ -2088,12 +2088,6 @@ CTableId.prototype.Save_Changes = function(Data, Writer) ...@@ -2088,12 +2088,6 @@ CTableId.prototype.Save_Changes = function(Data, Writer)
break; break;
} }
case historyitem_Common_AddWatermark:
{
Writer.WriteString2("AVSUnregisteredVersion.emf");
break;
}
} }
}; };
CTableId.prototype.Save_Changes2 = function(Data, Writer) CTableId.prototype.Save_Changes2 = function(Data, Writer)
......
...@@ -338,26 +338,6 @@ CGraphicObjects.prototype = ...@@ -338,26 +338,6 @@ CGraphicObjects.prototype =
}, this, []); }, this, []);
}, },
getTrialChanges: function()
{
var oOldHistory = History;
var oInterfaceHistory = new HistoryInterface();
History = oInterfaceHistory;
var oParaDrawing = new ParaDrawing();
oParaDrawing.Set_RelativeHeight(251659264);
oParaDrawing.Set_PositionH(c_oAscRelativeFromH.Page, true, c_oAscAlignH.Center, undefined);
oParaDrawing.Set_PositionV(c_oAscRelativeFromV.Page, true, c_oAscAlignV.Center, undefined);
oParaDrawing.Set_WrappingType(WRAPPING_TYPE_NONE);
oParaDrawing.Set_BehindDoc( false );
oParaDrawing.Set_Distance( 3.2, 0, 3.2, 0 );
var oShape = this.createWatermarkImage();
oShape.setParent(oParaDrawing);
oParaDrawing.Set_GraphicObject(oShape);
this.document.Content[0].Add(oParaDrawing);
History = oOldHistory;
return oInterfaceHistory.GetResultChanges();
},
recalculate_: function(data) recalculate_: function(data)
{ {
......
...@@ -233,14 +233,7 @@ asc_docs_api.prototype.asc_isOffline = function() ...@@ -233,14 +233,7 @@ asc_docs_api.prototype.asc_isOffline = function()
return true; return true;
}; };
//Получаем изменения добавления ватермарка для триальной версии
asc_docs_api.prototype.asc_getTrialChanges = function()
{
if (this.WordControl.m_oLogicDocument != null)
{
return this.WordControl.m_oLogicDocument.DrawingObjects.getTrialChanges();
}
};
asc_docs_api.prototype["asc_addImage"] = asc_docs_api.prototype.asc_addImage; asc_docs_api.prototype["asc_addImage"] = asc_docs_api.prototype.asc_addImage;
asc_docs_api.prototype["AddImageUrl"] = asc_docs_api.prototype.AddImageUrl; asc_docs_api.prototype["AddImageUrl"] = asc_docs_api.prototype.AddImageUrl;
...@@ -249,7 +242,7 @@ asc_docs_api.prototype["asc_Save"] = asc_docs_api.prototype.asc_Save; ...@@ -249,7 +242,7 @@ asc_docs_api.prototype["asc_Save"] = asc_docs_api.prototype.asc_Save;
asc_docs_api.prototype["asc_DownloadAs"] = asc_docs_api.prototype.asc_DownloadAs; asc_docs_api.prototype["asc_DownloadAs"] = asc_docs_api.prototype.asc_DownloadAs;
asc_docs_api.prototype["asc_isOffline"] = asc_docs_api.prototype.asc_isOffline; asc_docs_api.prototype["asc_isOffline"] = asc_docs_api.prototype.asc_isOffline;
asc_docs_api.prototype["SetDocumentModified"] = asc_docs_api.prototype.SetDocumentModified; asc_docs_api.prototype["SetDocumentModified"] = asc_docs_api.prototype.SetDocumentModified;
asc_docs_api.prototype["asc_getTrialChanges"] = asc_docs_api.prototype.asc_getTrialChanges;
window["DesktopOfflineAppDocumentAddImageEnd"] = function(url) window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
{ {
......
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