sd: support inserting background image from file via .uno:SelectBackground

Desktop / LibreOffice - Ashod Nakashian [] - 6 June 2019 12:33 UTC

The UNO command always prompted the user via file open dialog. This change allows for passing the filename as an argument to allow for inserting slide background programatically.

Also, hide the Insert Image button in the sidebar since we can't use that (just yet), because it invokes .uno:SelectBackground directly. We would need to send LOOL a notification to invoke this on its own end to first prompt the user for a file.

(cherry picked from commit 2118143bdd246921439ba9e835207585203dd45f)

Change-Id: I20c0e33d66f8bcd72a6388e39c4ac92e64978f45 Reviewed-on:

905e6bd3ae0c sd: support inserting background image from file via .uno:SelectBackground
sd/sdi/sdraw.sdi | 2 +-
sd/source/ui/func/fupage.cxx | 62 +++++++++++++++++++--------
sd/source/ui/inc/fupage.hxx | 2 +-
sd/source/ui/sidebar/MasterPageDescriptor.cxx | 1 +
sd/source/ui/sidebar/SlideBackground.cxx | 10 ++++-
5 files changed, 56 insertions(+), 21 deletions(-)


  • Share