1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
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
23 /*****************************************************************************/
25 #ifndef GNM_XLSX_UTILS_H
26 #define GNM_XLSX_UTILS_H
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
,
59 GOFormat
*xlsx_pivot_date_fmt (void);
64 XLSX_PT_GOGBARCOLPLOT
,
69 XLSX_PT_GOGRADARAREAPLOT
,
70 XLSX_PT_GOGBUBBLEPLOT
,
72 XLSX_PT_GOGCONTOURPLOT
,
75 XLSXPlotType
xlsx_plottype_from_type_name (const char *type_name
);
77 /*****************************************************************************/
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.
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;
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 */