1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #ifndef INCLUDED_COMPHELPER_GMH_HXX
11 #define INCLUDED_COMPHELPER_GMH_HXX
13 #include <sal/config.h>
15 #include <string_view>
17 #include <comphelper/comphelperdllapi.h>
18 #include <rtl/ustring.hxx>
19 #include <vcl/salctype.hxx>
21 #include <com/sun/star/uno/Reference.h>
23 namespace com::sun::star::graphic
27 namespace com::sun::star::io
34 class COMPHELPER_DLLPUBLIC GraphicMimeTypeHelper
37 static OUString
GetMimeTypeForExtension(std::string_view rExt
);
39 GetMimeTypeForXGraphic(const css::uno::Reference
<css::graphic::XGraphic
>& xGraphic
);
41 GetMimeTypeForImageStream(const css::uno::Reference
<css::io::XInputStream
>& xInputStream
);
42 static OUString
GetMimeTypeForConvertDataFormat(ConvertDataFormat convertDataFormat
);
43 static char const* GetExtensionForConvertDataFormat(ConvertDataFormat nFormat
);
47 #endif // INCLUDED_COMPHELPER_GMH_HXX
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */