Kaydet (Commit) 30bb64dc authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Miklos Vajna

lok: send signature status on document load

Change-Id: If164d0edc9343b1db5ee96a2da46c9436ddbc73f
Reviewed-on: https://gerrit.libreoffice.org/62776
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 977ccf4b
......@@ -1515,8 +1515,10 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis,
return nullptr;
}
return new LibLODocument_Impl(xComponent);
LibLODocument_Impl* pDocument = new LibLODocument_Impl(xComponent);
int nState = doc_getSignatureState(pDocument);
pLib->mpCallback(LOK_CALLBACK_SIGNATURE_STATUS, OString::number(nState).getStr(), pLib->mpCallbackData);
return pDocument;
}
catch (const uno::Exception& exception)
{
......
......@@ -603,6 +603,11 @@ typedef enum
* Eg. com.sun.star.presentation.PresentationDocument TextObject
*/
LOK_CALLBACK_CONTEXT_CHANGED = 39,
/**
* On-load notification of the document signature status.
*/
LOK_CALLBACK_SIGNATURE_STATUS = 40,
}
LibreOfficeKitCallbackType;
......
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