1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * gsf-msole-utils.h: various tools for handling MS OLE files
5 * Copyright (C) 2002-2006 Jody Goldberg (jody@gnome.org)
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2.1 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22 #ifndef GSF_MSOLE_UTILS_H
23 #define GSF_MSOLE_UTILS_H
26 #include <gsf/gsf-doc-meta-data.h>
30 GError *gsf_msole_metadata_read (GsfInput *in,
31 GsfDocMetaData *accum);
32 gboolean gsf_msole_metadata_write (GsfOutput *out,
33 GsfDocMetaData const *meta_data,
34 gboolean doc_not_component);
36 guint gsf_msole_lid_for_language (char const *lang);
37 guint gsf_msole_codepage_to_lid (int codepage);
38 int gsf_msole_lid_to_codepage (guint lid);
39 gchar *gsf_msole_lid_to_codepage_str (guint lid);
40 char const *gsf_msole_language_for_lid (guint lid);
42 int gsf_msole_iconv_win_codepage (void) ;
43 GIConv gsf_msole_iconv_open_for_import (int codepage) ;
44 GIConv gsf_msole_iconv_open_for_export (void) ;
46 GIConv gsf_msole_iconv_open_codepage_for_import (char const *to, int codepage);
47 GIConv gsf_msole_iconv_open_codepages_for_export (int codepage_to, char const *from);
48 GIConv gsf_msole_iconv_open_codepage_for_export (int codepage_to);
50 GByteArray *gsf_msole_inflate (GsfInput *input, gsf_off_t offset);
54 #endif /* GSF_MSOLE_UTILS_H */