sd signature line: pass the model down to xmlsecurity

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 25 June 2020 13:41 EDT

So it can avoid SfxObjectShell::Current(), which is only correct when a single document is open.

Also add an sfx2::DigitalSignatures interface so this can be done without UNO API changes.

Change-Id: Ie81996b8f1e8851975b27c43a53f9d23e316004e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97116

c3f8702241b6 sd signature line: pass the model down to xmlsecurity
include/sfx2/digitalsignatures.hxx | 38 ++++++++++++++++
include/sfx2/docfile.hxx | 10 +++--
sfx2/source/doc/docfile.cxx | 22 +++++++---
sfx2/source/doc/objserv.cxx | 3 +-
xmlsecurity/inc/documentsignaturemanager.hxx | 6 +++
xmlsecurity/inc/pdfsignaturehelper.hxx | 7 ++-
.../source/component/documentdigitalsignatures.cxx | 51 +++++++++++++++++-----
.../source/helper/documentsignaturemanager.cxx | 8 +++-
xmlsecurity/source/helper/pdfsignaturehelper.cxx | 15 +++----
9 files changed, 126 insertions(+), 34 deletions(-)

Upstream: cgit.freedesktop.org


  • Share