preview-grid-impl.h 800 Bytes
Newer Older
1
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 3
#ifndef _GNM_PREVIEW_GRID_IMPL_H_
# define _GNM_PREVIEW_GRID_IMPL_H_
4 5

#include "preview-grid.h"
6
#include <goffice/goffice.h>
7

8 9
G_BEGIN_DECLS

10
struct _PreviewGrid {
11
	GocGroup base;
12

13 14
	Sheet *sheet;

15 16 17
	struct {
		int     col_width;
		int     row_height;
Morten Welinder's avatar
Morten Welinder committed
18
		GnmStyle *style;
Jody Goldberg's avatar
Jody Goldberg committed
19
		GnmValue  *value;
20 21 22 23 24 25
	} defaults;

	gboolean gridlines;
};

typedef struct {
26
	GocGroupClass parent_class;
27 28

	/* Virtuals */
Morten Welinder's avatar
Morten Welinder committed
29
	GnmStyle * (* get_cell_style) (PreviewGrid *pg, int col, int row);
Jody Goldberg's avatar
Jody Goldberg committed
30
	GnmValue*(* get_cell_value) (PreviewGrid *pg, int col, int row);
31 32 33 34
} PreviewGridClass;

#define PREVIEW_GRID_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), preview_grid_get_type (), PreviewGridClass))

35 36 37
G_END_DECLS

#endif /* _GNM_PREVIEW_GRID_IMPL_H_ */