ms-formula-write.h 921 Bytes
Newer Older
1 2 3
/*
 * ms-formula-read.h: MS Excel -> Gnumeric formula conversion
 *
4
 * Authors:
5
 *    Jody Goldberg (jody@gnome.org)
6
 *    Michael Meeks (michael@ximian.com)
7
 *
8
 * (C) 1998-2001 Michael Meeks
9
 * (C) 2002-2005 Jody Goldberg
10
 */
11 12
#ifndef GNM_MS_FORMULA_WRITE_H
#define GNM_MS_FORMULA_WRITE_H
13

14
#include <gnumeric.h>
15 16 17 18 19 20 21 22 23 24
#include "excel.h"

typedef enum {
	EXCEL_CALLED_FROM_CELL,
	EXCEL_CALLED_FROM_ARRAY,
	EXCEL_CALLED_FROM_SHARED,
	EXCEL_CALLED_FROM_CONDITION,
	EXCEL_CALLED_FROM_VALIDATION,
	EXCEL_CALLED_FROM_NAME
} ExcelFuncContext;
25

26
guint32 excel_write_formula    (ExcelWriteState *ewb, GnmExpr const *expr,
27
				Sheet *sheet, int fn_col, int fn_row,
28
				ExcelFuncContext context);
29

30
void excel_write_prep_expressions (ExcelWriteState *ewb);
31
void excel_write_prep_expr  	  (ExcelWriteState *ewb, GnmExpr const *expr);
32
void excel_write_prep_sheet	  (ExcelWriteState *ewb, Sheet const *sheet);
33

34
#endif /* GNM_MS_FORMULA_W_H */