1.1.1
by Sebastien Bacher
Import upstream version 2.21.6 |
1 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2 |
/* GdkPixbuf library - Win32 GDI+ Pixbuf Loader
|
|
3 |
*
|
|
4 |
* Copyright (C) 2008 Dominic Lachowicz
|
|
5 |
* Copyright (C) 2008 Alberto Ruiz
|
|
6 |
*
|
|
7 |
* Authors: Dominic Lachowicz <domlachowicz@gmail.com>
|
|
8 |
* Alberto Ruiz <aruiz@gnome.org>
|
|
9 |
*
|
|
10 |
* This library is free software; you can redistribute it and/or
|
|
11 |
* modify it under the terms of the GNU Lesser General Public
|
|
12 |
* License as published by the Free Software Foundation; either
|
|
13 |
* version 2 of the License, or (at your option) any later version.
|
|
14 |
*
|
|
15 |
* This library is distributed in the hope that it will be useful,
|
|
16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
18 |
* Lesser General Public License for more * You should have received a copy of the GNU Lesser General Public
|
|
19 |
* License along with this library; if not, write to the
|
|
20 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
21 |
* Boston, MA 02111-1307, USA.
|
|
22 |
*/
|
|
23 |
||
24 |
#include "io-gdip-utils.h" |
|
25 |
||
26 |
#ifndef INCLUDE_gdiplus
|
|
27 |
#define MODULE_ENTRY(function) G_MODULE_EXPORT void function
|
|
28 |
#else
|
|
29 |
#define MODULE_ENTRY(function) void _gdk_pixbuf__gdip_emf_ ## function
|
|
30 |
#endif
|
|
31 |
||
32 |
MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module) |
|
33 |
{
|
|
34 |
gdip_fill_vector_vtable (module); |
|
35 |
}
|
|
36 |
||
37 |
MODULE_ENTRY (fill_info) (GdkPixbufFormat *info) |
|
38 |
{
|
|
39 |
static GdkPixbufModulePattern signature[] = { |
|
40 |
{ "\x01\x00\x00\x00", NULL, 100 }, /* EMF */ |
|
41 |
{ NULL, NULL, 0 } |
|
42 |
};
|
|
43 |
||
44 |
static gchar *mime_types[] = { |
|
45 |
"application/emf", |
|
46 |
"application/x-emf", |
|
47 |
"image/x-emf", |
|
48 |
"image/x-mgx-emf", |
|
49 |
NULL
|
|
50 |
};
|
|
51 |
||
52 |
static gchar *extensions[] = { |
|
53 |
"emf", |
|
54 |
NULL
|
|
55 |
};
|
|
56 |
||
57 |
info->name = "emf"; |
|
58 |
info->signature = signature; |
|
59 |
info->description = _("The EMF image format"); |
|
60 |
info->mime_types = mime_types; |
|
61 |
info->extensions = extensions; |
|
62 |
info->flags = GDK_PIXBUF_FORMAT_THREADSAFE; |
|
63 |
info->license = "LGPL"; |
|
64 |
}
|