Compilation: prefer glib functions over goffice equivalents
[gnumeric.git] / plugins / excel / ms-excel-xf.h
blobab746cd6311e43431301d1d5186237efe5d0c8f4
1 /* vim: set sw=8 ts=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /**
3 * ms-excel-xf.h: MS Excel support for Gnumeric
5 * Authors:
6 * Jody Goldberg (jody@gnome.org)
7 * Michael Meeks (michael@ximian.com)
9 * (C) 1998-2001 Michael Meeks
10 * (C) 2002-2005 Jody Goldberg
11 **/
12 #ifndef GNM_MS_EXCEL_XF_H
13 #define GNM_MS_EXCEL_XF_H
15 #include "style.h"
16 #include "style-border.h"
17 #include "style-color.h"
19 #define STYLE_TOP (MSTYLE_BORDER_TOP - MSTYLE_BORDER_TOP)
20 #define STYLE_BOTTOM (MSTYLE_BORDER_BOTTOM - MSTYLE_BORDER_TOP)
21 #define STYLE_LEFT (MSTYLE_BORDER_LEFT - MSTYLE_BORDER_TOP)
22 #define STYLE_RIGHT (MSTYLE_BORDER_RIGHT - MSTYLE_BORDER_TOP)
23 #define STYLE_DIAGONAL (MSTYLE_BORDER_DIAGONAL - MSTYLE_BORDER_TOP)
24 #define STYLE_REV_DIAGONAL (MSTYLE_BORDER_REV_DIAGONAL - MSTYLE_BORDER_TOP)
26 #define STYLE_ORIENT_MAX 6
28 typedef struct _BiffXFData {
29 guint16 font_idx;
30 guint16 format_idx;
31 GOFormat const *style_format;
32 gboolean is_simple_format;
34 gboolean hidden;
35 gboolean locked;
36 MsBiffXfType xftype; /* -- Very important field... */
37 MsBiffFormat format;
38 guint16 parentstyle;
39 GnmHAlign halign;
40 GnmVAlign valign;
41 gboolean wrap_text;
42 gboolean shrink_to_fit;
43 int rotation;
44 int indent;
45 GnmTextDir text_dir;
46 guint16 border_color[STYLE_ORIENT_MAX];
47 GnmStyleBorderType border_type[STYLE_ORIENT_MAX];
48 guint16 fill_pattern_idx;
49 guint16 pat_foregnd_col;
50 guint16 pat_backgnd_col;
51 guint16 differences;
53 GnmStyle *mstyle;
54 } BiffXFData;
56 #endif /* GNM_MS_EXCEL_XF_H */