diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-02-19 21:47:04 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-02-21 21:32:56 +0100 |
commit | e48b4275ceee82bd0eb128b2947302b9022e9c89 (patch) | |
tree | c40d1d0d100c67c7fc8076e34b9d8e0769638d37 /offapi | |
parent | 6fc75b669438728ba6a4e55d53a79fa0cf006529 (diff) |
report the saved mimetype when saving graphic + mime from stream
When saving we need to determine which mime type to use for the
graphic. Return this information back to the caller so the
metadata can be written into the file if necessary.
Also add function to determine the mime type from the XGraphic
by converting it to a stream first (only then we can determine the
format that will actually be used and written to the storage file.
Change-Id: I796da715e47f29d77dea605a2769a2217ecd6ba5
Reviewed-on: https://gerrit.libreoffice.org/49992
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/document/XGraphicStorageHandler.idl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/offapi/com/sun/star/document/XGraphicStorageHandler.idl b/offapi/com/sun/star/document/XGraphicStorageHandler.idl index 3c9ae6557efa..309309aefbf2 100644 --- a/offapi/com/sun/star/document/XGraphicStorageHandler.idl +++ b/offapi/com/sun/star/document/XGraphicStorageHandler.idl @@ -19,13 +19,12 @@ module com { module sun { module star { module document { */ interface XGraphicStorageHandler : com::sun::star::uno::XInterface { - com::sun::star::graphic::XGraphic loadGraphic([in] string aURL); com::sun::star::graphic::XGraphic loadGraphicFromOutputStream([in] com::sun::star::io::XOutputStream xOutputStream); string saveGraphic([in] com::sun::star::graphic::XGraphic xGraphic); - string saveGraphicByName([in] com::sun::star::graphic::XGraphic xGraphic, [in] string aRequestedName); + string saveGraphicByName([in] com::sun::star::graphic::XGraphic xGraphic, [out] string savedMimeType, [in] string aRequestedName); com::sun::star::io::XInputStream createInputStream([in] com::sun::star::graphic::XGraphic xGraphic); }; |