1 /* vim: set sw=8 ts=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * ms-excel-xf.h: MS Excel support for Gnumeric
6 * Jody Goldberg (jody@gnome.org)
7 * Michael Meeks (michael@ximian.com)
9 * (C) 1998-2001 Michael Meeks
10 * (C) 2002-2005 Jody Goldberg
12 #ifndef GNM_MS_EXCEL_XF_H
13 #define GNM_MS_EXCEL_XF_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
{
31 GOFormat
const *style_format
;
32 gboolean is_simple_format
;
36 MsBiffXfType xftype
; /* -- Very important field... */
42 gboolean shrink_to_fit
;
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
;
56 #endif /* GNM_MS_EXCEL_XF_H */