#include <glib-object.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
-
+#include "gtkextra-sheet.h"
G_BEGIN_DECLS
struct _GtkSheetRange
{
- glong row0,col0; /* upper-left cell */
- glong rowi,coli; /* lower-right cell */
+ glong row0, col0; /* upper-left cell */
+ glong rowi, coli; /* lower-right cell */
};
struct _GtkSheetCellBorder
+
+
/* Virtual Table */
gchar * (* get_string) (const GSheetModel *sheet_model,
glong row, glong column);
+
+ /* column related metadata */
+
+ gchar * (*get_column_title) (const GSheetModel *mode, gint col);
+ gchar * (*get_column_subtitle) (const GSheetModel *mode, gint col);
+ gboolean * (*get_column_sensitivity) (const GSheetModel *mode, gint col);
+ GtkJustification (*get_column_justification) (const GSheetModel *mode, gint col);
+ const GtkSheetButton * (* get_button) (const GSheetModel *model, gint col);
+
glong (*get_column_count) (const GSheetModel *model);
- glong (*get_row_count) (const GSheetModel *model);
+ /* row related metadata */
+ glong (*get_row_count) (const GSheetModel *model);
};
gint g_sheet_model_get_row_count (const GSheetModel *sheet_model);
+\f
+
+gboolean g_sheet_model_get_column_sensitivity (const GSheetModel *model,
+ gint col);
+
+gchar * g_sheet_model_get_column_subtitle (const GSheetModel *model,
+ gint col);
+
+GtkSheetButton * g_sheet_model_get_column_button (const GSheetModel *, gint);
+
+GtkJustification g_sheet_model_get_column_justification (const GSheetModel *,
+ gint);
+
+
G_END_DECLS
#endif /* __G_SHEET_MODEL_H__ */