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