1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
6 #include "sheet-object.h"
7 #include <goffice/goffice.h>
8 #include <glib-object.h>
12 void gnm_go_data_set_sheet (GOData
*dat
, Sheet
*sheet
);
13 Sheet
*gnm_go_data_get_sheet (GOData
const *dat
);
14 GnmExprTop
const *gnm_go_data_get_expr (GOData
const *dat
);
15 void gnm_go_data_foreach_dep (GOData
*dat
, SheetObject
*so
,
16 SheetObjectForeachDepFunc func
, gpointer user
);
18 #define GNM_GO_DATA_SCALAR_TYPE (gnm_go_data_scalar_get_type ())
19 #define GNM_GO_DATA_SCALAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_GO_DATA_SCALAR_TYPE, GnmGODataScalar))
20 #define GNM_IS_GO_DATA_SCALAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_GO_DATA_SCALAR_TYPE))
22 typedef struct _GnmGODataScalar GnmGODataScalar
;
23 GType
gnm_go_data_scalar_get_type (void);
24 GOData
*gnm_go_data_scalar_new_expr (Sheet
*sheet
, GnmExprTop
const *texpr
);
26 #define GNM_GO_DATA_VECTOR_TYPE (gnm_go_data_vector_get_type ())
27 #define GNM_GO_DATA_VECTOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_GO_DATA_VECTOR_TYPE, GnmGODataVector))
28 #define GNM_IS_GO_DATA_VECTOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_GO_DATA_VECTOR_TYPE))
30 typedef struct _GnmGODataVector GnmGODataVector
;
31 GType
gnm_go_data_vector_get_type (void);
32 GOData
*gnm_go_data_vector_new_expr (Sheet
*sheet
, GnmExprTop
const *texpr
);
34 #define GNM_GO_DATA_MATRIX_TYPE (gnm_go_data_matrix_get_type ())
35 #define GNM_GO_DATA_MATRIX(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_GO_DATA_MATRIX_TYPE, GnmGODataMatrix))
36 #define GNM_IS_GO_DATA_MATRIX(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_GO_DATA_MATRIX_TYPE))
38 typedef struct _GnmGODataMatrix GnmGODataMatrix
;
39 GType
gnm_go_data_matrix_get_type (void);
40 GOData
*gnm_go_data_matrix_new_expr (Sheet
*sheet
, GnmExprTop
const *texpr
);
42 /* closure for data allocation */
44 int colrowmode
; /* 0 = auto; 1 = columns; 2 = rows */
45 gboolean share_x
, new_sheet
;
47 GogDataAllocator
*dalloc
;
48 GnmSOAnchorMode anchor_mode
;
49 } GnmGraphDataClosure
;
53 #endif /* _GNM_GRAPH_H_ */