excel.h 1.12 KB
Newer Older
1 2 3 4 5
/**
 * excel.h: Excel support interface to gnumeric
 *
 * Author:
 *    Michael Meeks (michael@imaginator.com)
6 7
 *
 * (C) 1998, 1999 Michael Meeks
8 9 10 11 12
 **/
#ifndef GNUMERIC_EXCEL_H
#define GNUMERIC_EXCEL_H

#include "ms-ole.h"
Michael Meeks's avatar
Michael Meeks committed
13
#include "sheet.h"
14

15
typedef enum _eBiff_version { eBiffV2=2, eBiffV3=3,
Michael Meeks's avatar
Michael Meeks committed
16 17 18 19 20
			      eBiffV4=4,
			      eBiffV5=5, /* Excel 5.0 */
			      eBiffV7=7, /* Excel 95 */
			      eBiffV8=8, /* Excel 97 */
			      eBiffVUnknown=0} eBiff_version ;
21

22 23 24
extern gboolean ms_excel_read_workbook  (Workbook *wb, MsOle *file);
extern int      ms_excel_write_workbook (MsOle *file, Workbook *wb,
					 eBiff_version ver);
25

26 27
/* We need to use these for both read and write */
typedef struct {
Jody Goldberg's avatar
Jody Goldberg committed
28
	int r, g, b;
29
} EXCEL_PALETTE_ENTRY;
30
extern  EXCEL_PALETTE_ENTRY const excel_default_palette[];
31 32 33 34 35
#define EXCEL_DEF_PAL_LEN   56

extern  char *excel_builtin_formats[];
#define EXCEL_BUILTIN_FORMAT_LEN 0x32

36 37 38 39 40 41
typedef struct 
{
	char *prefix ;
	int num_args ; /* -1 for multi-arg */
		       /* -2 for unknown args */
} FormulaFuncData;
42

43 44
extern FormulaFuncData formula_func_data[];
#define FORMULA_FUNC_DATA_LEN 368
45

46
#define ROW_BLOCK_MAX_LEN 32
47
#endif