mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
[oform] Add method when oform preparation is ready
This commit is contained in:
@ -4561,6 +4561,7 @@
|
||||
window['AscDFH'].historydescription_RemoveAllInks = 0x01c4;
|
||||
window['AscDFH'].historydescription_DisconnectEveryone = 0x01c5;
|
||||
window['AscDFH'].historydescription_OForm_RoleFilled = 0x01c6;
|
||||
window['AscDFH'].historydescription_OForm_CompletePreparation = 0x01c7;
|
||||
|
||||
// pdf
|
||||
window['AscDFH'].historydescription_Pdf_AddAnnot = 0x29a;
|
||||
|
||||
25
word/api.js
25
word/api.js
@ -11417,6 +11417,30 @@ background-repeat: no-repeat;\
|
||||
AscCommon.CollaborativeEditing.Set_GlobalLock(true);
|
||||
this.asc_Save(false);
|
||||
};
|
||||
asc_docs_api.prototype.asc_CompletePreparingOForm = function(disconnect)
|
||||
{
|
||||
let logicDocument = this.private_GetLogicDocument();
|
||||
if (!logicDocument)
|
||||
return false;
|
||||
|
||||
if (logicDocument.IsSelectionLocked(AscCommon.changestype_Document_Settings))
|
||||
return false;
|
||||
|
||||
logicDocument.StartAction(AscDFH.historydescription_OForm_CompletePreparation);
|
||||
logicDocument.GetOFormDocument().setAllRolesNotFilled();
|
||||
if (disconnect)
|
||||
logicDocument.GetHistory().Add(new CChangesDocumentDisconnectEveryone(logicDocument));
|
||||
|
||||
logicDocument.FinalizeAction();
|
||||
|
||||
if (disconnect)
|
||||
{
|
||||
this.forceSaveDisconnectRequest = true;
|
||||
AscCommon.CollaborativeEditing.Set_GlobalLock(true);
|
||||
this.asc_Save(false);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
asc_docs_api.prototype.asc_UncheckContentControlButtons = function()
|
||||
{
|
||||
@ -14940,6 +14964,7 @@ background-repeat: no-repeat;\
|
||||
asc_docs_api.prototype['asc_GetAllFormsData'] = asc_docs_api.prototype.asc_GetAllFormsData;
|
||||
asc_docs_api.prototype['asc_GetOForm'] = asc_docs_api.prototype.asc_GetOForm;
|
||||
asc_docs_api.prototype['asc_DisconnectEveryone'] = asc_docs_api.prototype.asc_DisconnectEveryone;
|
||||
asc_docs_api.prototype['asc_CompletePreparingOForm'] = asc_docs_api.prototype.asc_CompletePreparingOForm;
|
||||
|
||||
asc_docs_api.prototype['asc_BeginViewModeInReview'] = asc_docs_api.prototype.asc_BeginViewModeInReview;
|
||||
asc_docs_api.prototype['asc_EndViewModeInReview'] = asc_docs_api.prototype.asc_EndViewModeInReview;
|
||||
|
||||
Reference in New Issue
Block a user