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 
14 #include <rtl/ustring.hxx>
15 #include <vcl/salctype.hxx>
16 
17 #include <com/sun/star/uno/Reference.h>
18 
19 namespace com
20 {
21 namespace sun
22 {
23 namespace star
24 {
25 namespace graphic
26 {
27 class XGraphic;
28 }
29 }
30 }
31 }
32 namespace com
33 {
34 namespace sun
35 {
36 namespace star
37 {
38 namespace io
39 {
40 class XInputStream;
41 }
42 }
43 }
44 }
45 
46 namespace comphelper
47 {
49 {
50 public:
51  static OUString GetMimeTypeForExtension(const OString& rExt);
52  static OUString
53  GetMimeTypeForXGraphic(const css::uno::Reference<css::graphic::XGraphic>& xGraphic);
54  static OUString
55  GetMimeTypeForImageStream(const css::uno::Reference<css::io::XInputStream>& xInputStream);
56  static OUString GetMimeTypeForConvertDataFormat(ConvertDataFormat convertDataFormat);
57 };
58 }
59 
60 #endif // INCLUDED_COMPHELPER_GMH_HXX
61 
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
exports com.sun.star. io
exports com.sun.star. graphic
ConvertDataFormat
#define COMPHELPER_DLLPUBLIC
Reference< XGraphic > xGraphic