Fixed typos
[gnumeric.git] / plugins / excel / xlsx-utils.h
blobb975f5f8de5d9db8d096bc951e4a817edcccfeb9
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * xlsx-utils.h : utilities shared between xlsx import and export
5 * Copyright (C) 2006-2007 Jody Goldberg (jody@gnome.org)
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) version 3.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
20 * USA
23 /*****************************************************************************/
25 #ifndef GNM_XLSX_UTILS_H
26 #define GNM_XLSX_UTILS_H
28 #include <gnumeric.h>
30 enum {
31 XL_NS_SS,
32 XL_NS_SS_DRAW,
33 XL_NS_CHART,
34 XL_NS_CHART_DRAW,
35 XL_NS_DRAW,
36 XL_NS_DOC_REL,
37 XL_NS_PKG_REL,
38 XL_NS_LEG_OFF,
39 XL_NS_LEG_XL,
40 XL_NS_LEG_VML,
41 XL_NS_GNM_EXT,
42 XL_NS_PROP_CP,
43 XL_NS_PROP_DC,
44 XL_NS_PROP_DCMITYPE,
45 XL_NS_PROP_DCTERMS,
46 XL_NS_PROP_XSI,
47 XL_NS_PROP,
48 XL_NS_PROP_VT,
49 XL_NS_PROP_CUSTOM
52 #define XLSX_MaxCol 16384
53 #define XLSX_MaxRow 1048576
55 GnmConventions *xlsx_conventions_new (gboolean output);
56 void xlsx_conventions_free (GnmConventions *conv);
57 Workbook *xlsx_conventions_add_extern_ref (GnmConventions *conv,
58 char const *path);
59 GOFormat *xlsx_pivot_date_fmt (void);
61 typedef enum {
62 XLSX_PT_UNKNOWN,
63 XLSX_PT_GOGAREAPLOT,
64 XLSX_PT_GOGBARCOLPLOT,
65 XLSX_PT_GOGLINEPLOT,
66 XLSX_PT_GOGPIEPLOT,
67 XLSX_PT_GOGRINGPLOT,
68 XLSX_PT_GOGRADARPLOT,
69 XLSX_PT_GOGRADARAREAPLOT,
70 XLSX_PT_GOGBUBBLEPLOT,
71 XLSX_PT_GOGXYPLOT,
72 XLSX_PT_GOGCONTOURPLOT,
73 XLSX_PT_XLCONTOURPLOT
74 } XLSXPlotType;
75 XLSXPlotType xlsx_plottype_from_type_name (const char *type_name);
77 /*****************************************************************************/
79 typedef struct {
81 * Angle in degrees for the starting point.
82 * 0 is west, 90 is north; 180 is east; 270 is south.
83 * range is [0-360[ normally, but [0;180[ for mirrored.
85 unsigned angle : 16;
87 /* Gradient has three stop like F to B to F. */
88 unsigned mirrored : 1;
90 /* Gradient goes from B to F to B. */
91 unsigned reversed : 1;
92 } XLSXGradientInfo;
94 extern XLSXGradientInfo xlsx_gradient_info[GO_GRADIENT_MAX];
96 /*****************************************************************************/
98 long xlsx_relaxed_strtol (const char *s, char **endp, int base);
100 /*****************************************************************************/
102 #endif /* GNM_XLSX_UTILS_H */