Introspection: add col/row manipulations
[gnumeric.git] / src / preview-grid-impl.h
blob8c6548fe6d63afca846723154532dfcc151722e8
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_PREVIEW_GRID_IMPL_H_
3 #define _GNM_PREVIEW_GRID_IMPL_H_
5 #include "preview-grid.h"
6 #include <goffice/goffice.h>
8 G_BEGIN_DECLS
10 struct GnmPreviewGrid_ {
11 GocGroup base;
13 Sheet *sheet;
15 struct GnmPreviewGridDefaults_ {
16 int col_width;
17 int row_height;
18 GnmStyle *style;
19 GnmValue *value;
20 } defaults;
22 gboolean gridlines;
25 typedef struct {
26 GocGroupClass parent_class;
28 /* Virtuals */
29 GnmStyle * (* get_cell_style) (GnmPreviewGrid *pg, int col, int row);
30 GnmValue*(* get_cell_value) (GnmPreviewGrid *pg, int col, int row);
31 } GnmPreviewGridClass;
33 #define GNM_PREVIEW_GRID_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), gnm_preview_grid_get_type (), GnmPreviewGridClass))
35 G_END_DECLS
37 #endif /* _GNM_PREVIEW_GRID_IMPL_H_ */