sw content controls, picture: add LOK API

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 23 May 2022 16:04 UTC

- send a LOK_CALLBACK_CONTENT_CONTROL callback with action=change-picture when a file picker should be shown

- extend lok::Document::sendContentControlEvent() to be able to replace the placeholder with the selected URL

- update gtktiledviewer to work with these

Change-Id: Ifb3750803885fc09fc82905b0cf85b2b8ca06e77 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134750

9a76be53dfb8 sw content controls, picture: add LOK API
desktop/source/lib/init.cxx | 4 +-
include/LibreOfficeKit/LibreOfficeKit.hxx | 10 +++--
include/LibreOfficeKit/LibreOfficeKitEnums.h | 23 +++++++++---
libreofficekit/source/gtk/lokdocview.cxx | 27 +++++++++++++-
sw/source/uibase/uno/unotxdoc.cxx | 56 +++++++++++++++++++---------
sw/source/uibase/wrtsh/wrtsh3.cxx | 18 ++++++++-
6 files changed, 106 insertions(+), 32 deletions(-)

Upstream: cgit.freedesktop.org


  • Share