excel.h 1.25 KB
Newer Older
1
/* vim: set sw=8 ts=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 3 4
/**
 * excel.h: Excel support interface to gnumeric
 *
5 6
 * Authors:
 *    Jody Goldberg (jody@gnome.org)
7
 *    Michael Meeks (michael@ximian.com)
8
 *
9 10
 * (C) 1998-2001 Michael Meeks
 * (C) 2002-2005 Jody Goldberg
11
 **/
12 13
#ifndef GNM_MS_EXCEL_H
#define GNM_MS_EXCEL_H
14

15
#include "gnumeric.h"
16
#include "ms-biff.h"
17

18 19
void excel_read_workbook (IOContext *context, WorkbookView *new_wb, GsfInput *input,
			  gboolean *is_double_stream_file);
Morten Welinder's avatar
Morten Welinder committed
20

21 22
typedef struct _ExcelWriteState	 ExcelWriteState;
void		 excel_write_state_free (ExcelWriteState *ewb);
23
ExcelWriteState *excel_write_state_new  (IOContext *context, WorkbookView const *wbv,
24 25 26 27
					 gboolean biff7, gboolean biff8);

void excel_write_v7 (ExcelWriteState *ewb, GsfOutfile *output);
void excel_write_v8 (ExcelWriteState *ewb, GsfOutfile *output);
28

29
typedef struct {
30
	guint8 r, g, b;
31
} ExcelPaletteEntry;
32 33 34
extern ExcelPaletteEntry const excel_default_palette_v8 [];
extern ExcelPaletteEntry const excel_default_palette_v7 [];

35 36
#define EXCEL_DEF_PAL_LEN   56

Jody Goldberg's avatar
Jody Goldberg committed
37
extern  char const *excel_builtin_formats[];
38 39
#define EXCEL_BUILTIN_FORMAT_LEN 0x32

40
#define ROW_BLOCK_MAX_LEN 32
41

42 43 44
#define	CODENAME_KEY	"XL_CODENAME_utf8"

#endif /* GNM_MS_EXCEL_H */