From e2d46da076f43a7c0d56fc486b9f15339243f7c9 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 21 Jan 2021 15:08:13 +0100 Subject: avmedia: add doc model for bitmap fill of slide narrations This allows specifying a custom bitmap for a media shape. It's mostly useful for audio-only streams where the additional bitmap may be e.g. a speaker icon to indicate this a narration. Change-Id: I21c1b492ac09b631cf6e3ec8120be8b82c01c26d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109763 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- include/avmedia/mediaitem.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/avmedia') diff --git a/include/avmedia/mediaitem.hxx b/include/avmedia/mediaitem.hxx index 7246c9e7e2a1..9e3fb4cd4530 100644 --- a/include/avmedia/mediaitem.hxx +++ b/include/avmedia/mediaitem.hxx @@ -32,6 +32,7 @@ namespace com::sun::star::embed { class XStorage; } namespace com::sun::star::frame { class XModel; } namespace com::sun::star::io { class XInputStream; } namespace com::sun::star::io { class XStream; } +class Graphic; enum class AVMediaSetMask { @@ -45,11 +46,12 @@ enum class AVMediaSetMask ZOOM = 0x040, URL = 0x080, MIME_TYPE = 0x100, - ALL = 0x1ff, + GRAPHIC = 0x200, + ALL = 0x3ff, }; namespace o3tl { - template<> struct typed_flags : is_typed_flags {}; + template<> struct typed_flags : is_typed_flags {}; } @@ -115,6 +117,8 @@ public: void setMimeType( const OUString& rMimeType ); OUString getMimeType() const; + void setGraphic(const Graphic& rGraphic); + Graphic getGraphic() const; const OUString& getTempURL() const; const OUString& getReferer() const; -- cgit