LibreOffice Module comphelper (master)  1
graphicmimetype.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_COMPHELPER_GMH_HXX
11 #define INCLUDED_COMPHELPER_GMH_HXX
12 
13 #include <sal/config.h>
14 
15 #include <string_view>
16 
18 #include <rtl/ustring.hxx>
19 #include <vcl/salctype.hxx>
20 
21 #include <com/sun/star/uno/Reference.h>
22 
24 {
25 class XGraphic;
26 }
27 namespace com::sun::star::io
28 {
29 class XInputStream;
30 }
31 
32 namespace comphelper
33 {
35 {
36 public:
37  static OUString GetMimeTypeForExtension(std::string_view rExt);
38  static OUString
39  GetMimeTypeForXGraphic(const css::uno::Reference<css::graphic::XGraphic>& xGraphic);
40  static OUString
41  GetMimeTypeForImageStream(const css::uno::Reference<css::io::XInputStream>& xInputStream);
42  static OUString GetMimeTypeForConvertDataFormat(ConvertDataFormat convertDataFormat);
43  static char const* GetExtensionForConvertDataFormat(ConvertDataFormat nFormat);
44 };
45 }
46 
47 #endif // INCLUDED_COMPHELPER_GMH_HXX
48 
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ConvertDataFormat
#define COMPHELPER_DLLPUBLIC
Reference< XGraphic > xGraphic