Commit dccd1ade authored by Oleg Korshul's avatar Oleg Korshul

.

parent 7192fb6c
...@@ -1301,6 +1301,8 @@ ...@@ -1301,6 +1301,8 @@
_add_sig.email = _sig.email; _add_sig.email = _sig.email;
} }
} }
return _sigs_ret;
}; };
baseEditorsApi.prototype.asc_Sign = function(guid) baseEditorsApi.prototype.asc_Sign = function(guid)
......
...@@ -3502,21 +3502,13 @@ background-repeat: no-repeat;\ ...@@ -3502,21 +3502,13 @@ background-repeat: no-repeat;\
}; };
// signatures // signatures
asc_docs_api.prototype.asc_AddSignatureLine2 = function(_obj) asc_docs_api.prototype.asc_addSignatureLine = function (sGuid, sSigner, sSigner2, sEmail) {
{
function s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); }
function guid() { return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); }
return this.asc_addSignatureLine(guid(), _obj.asc_getSigner1(), _obj.asc_getSigner2(), _obj.asc_getEmail());
};
asc_docs_api.prototype.asc_addSignatureLine = function (sGuid, sSigner, sSigner2, sEmail) {
if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Document_Content_Add)) if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Document_Content_Add))
{ {
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_InsertSignatureLine); this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_InsertSignatureLine);
var oSignature = AscFormat.fCreateSignatureShape(sGuid, sSigner, sSigner2, sEmail, true, null); var oSignature = AscFormat.fCreateSignatureShape(sGuid, sSigner, sSigner2, sEmail, true, null);
var Drawing = new ParaDrawing(oSignature.spPr.xfrm.extX, oSignature.spPr.xfrm.extY, null, this.WordControl.m_oDrawingDocument, null, null); var Drawing = new AscCommonWord.ParaDrawing(oSignature.spPr.xfrm.extX, oSignature.spPr.xfrm.extY, null, this.WordControl.m_oDrawingDocument, null, null);
oSignature.setParent(Drawing); oSignature.setParent(Drawing);
Drawing.Set_GraphicObject(oSignature); Drawing.Set_GraphicObject(oSignature);
this.WordControl.m_oLogicDocument.AddSignatureLine(Drawing); this.WordControl.m_oLogicDocument.AddSignatureLine(Drawing);
......
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