diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-01-21 15:08:13 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-01-21 21:40:20 +0100 |
commit | e2d46da076f43a7c0d56fc486b9f15339243f7c9 (patch) | |
tree | 4519509c29cec2aa9c6e1b6fca3275d97a186d96 /include/avmedia | |
parent | 9fd193168fe092bf15edbc81b8b1a15ca6d7c032 (diff) |
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 <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'include/avmedia')
-rw-r--r-- | include/avmedia/mediaitem.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
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<AVMediaSetMask> : is_typed_flags<AVMediaSetMask, 0x1ff> {}; + template<> struct typed_flags<AVMediaSetMask> : is_typed_flags<AVMediaSetMask, 0x3ff> {}; } @@ -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; |