LibreOffice Module comphelper (master)
1
include
comphelper
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
17
#include <
comphelper/comphelperdllapi.h
>
18
#include <rtl/ustring.hxx>
19
#include <
vcl/salctype.hxx
>
20
21
#include <com/sun/star/uno/Reference.h>
22
23
namespace
com::sun::star::graphic
24
{
25
class
XGraphic;
26
}
27
namespace
com::sun::star::io
28
{
29
class
XInputStream;
30
}
31
32
namespace
comphelper
33
{
34
class
COMPHELPER_DLLPUBLIC
GraphicMimeTypeHelper
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: */
comphelper::GraphicMimeTypeHelper
Definition:
graphicmimetype.hxx:35
comphelperdllapi.h
COMPHELPER_DLLPUBLIC
#define COMPHELPER_DLLPUBLIC
Definition:
comphelperdllapi.h:27
config.h
com::sun::star::graphic
com::sun::star::io
comphelper
salctype.hxx
ConvertDataFormat
ConvertDataFormat
Generated on Sun Jul 30 2023 04:30:35 for LibreOffice Module comphelper (master) by
1.9.3