Hi all,

I'm building Kyber for LibreOffice —
a governance extension that writes
SHA-256 audit metadata into ODF Custom
Properties on document commit:

LIAN_AuditHash · LIAN_RequestID ·
LIAN_ActionClass · LIAN_Principal etc.

Following Heiko's suggestion, I'd like
to implement a Verify Extension using
the Infobar (not Statusbar) that:

1. Triggers on document open/load
2. Reads ODF Custom Properties
3. Recomputes SHA-256 hash
4. Shows infobar:
🟢 "LIAN · Verified · unverändert"
🔴 "LIAN · Hash Mismatch · verändert"
⚪ (silent if no LIAN stamp)

Two technical questions:

Q1: Document Event Listener
Which interface/service should I use
to trigger Python code on document open?
com.sun.star.document.XDocumentEventListener?
Or better via Addons.xcu dispatch?

Q2: Infobar API
How do I create/show an Infobar
programmatically from a Python extension?
Is there a service or UNO interface
for this?

Extension on extensions.libreoffice.org:
https://extensions.libreoffice.org/en/extensions/show/99544
DOI: https://doi.org/10.5281/zenodo.20044626

Thanks for any pointers!

[LINKEDIN](https://www.linkedin.com/public-profile/settings?trk=d_flagship3_profile_self_view_public_profile)Architect
 of Admissible Autonomous Systems Designing enforceable execution boundaries 
for AI systems

Interlink Bridge · Rendsburg

Gesendet mit [Proton Mail](https://proton.me/mail/home): Ein sicherer 
E-Mail-Dienst.

Reply via email to