diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/graphicmimetype.hxx | 8 | ||||
-rw-r--r-- | include/xmloff/xmlexp.hxx | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/comphelper/graphicmimetype.hxx b/include/comphelper/graphicmimetype.hxx index 3f2b5308b2d6..970342f2e5f5 100644 --- a/include/comphelper/graphicmimetype.hxx +++ b/include/comphelper/graphicmimetype.hxx @@ -13,12 +13,20 @@ #include <comphelper/comphelperdllapi.h> #include <rtl/ustring.hxx> +#include <com/sun/star/graphic/XGraphic.hpp> +#include <com/sun/star/io/XInputStream.hpp> +#include <com/sun/star/uno/Reference.hxx> + namespace comphelper { class COMPHELPER_DLLPUBLIC GraphicMimeTypeHelper { public: static OUString GetMimeTypeForExtension(const OString& rExt); + static OUString GetMimeTypeForXGraphic(css::uno::Reference<css::graphic::XGraphic> xGraphic); + static OUString GetMimeTypeForImageUrl(const OUString& rImageUrl); + static OUString + GetMimeTypeForImageStream(css::uno::Reference<css::io::XInputStream> xInputStream); }; } diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx index 474d718d5a41..4127e2a883fa 100644 --- a/include/xmloff/xmlexp.hxx +++ b/include/xmloff/xmlexp.hxx @@ -460,6 +460,8 @@ public: OUString AddEmbeddedGraphicObject( const OUString& rGraphicObjectURL ); + css::uno::Reference<css::io::XInputStream> GetEmbeddedGraphicObjectStream( + const OUString& rGraphicObjectURL); bool AddEmbeddedGraphicObjectAsBase64( const OUString& rGraphicObjectURL ); |