-static inline gchar *
-psppire_data_store_get_string_wrapper (const GSheetModel *model, glong row,
- glong column)
-{
- return psppire_data_store_get_string (PSPPIRE_DATA_STORE (model), row, column);
-}
-
-
-static inline gboolean
-psppire_data_store_set_string_wrapper (GSheetModel *model,
- const gchar *text,
- glong row, glong column)
-{
- return psppire_data_store_set_string (PSPPIRE_DATA_STORE (model), text,
- row, column);
-}
-
-
-
-static gchar * get_column_subtitle (const GSheetModel *model, gint col);
-static gchar * get_column_button_label (const GSheetModel *model, gint col);
-static gboolean get_column_sensitivity (const GSheetModel *model, gint col);
-static GtkJustification get_column_justification (const GSheetModel *model, gint col);
-
-static gchar * get_row_button_label (const GSheetModel *model, gint row);
-static gboolean get_row_sensitivity (const GSheetModel *model, gint row);
-
-
-static void
-psppire_data_store_sheet_model_init (GSheetModelIface *iface)
-{
- iface->free_strings = TRUE;
- iface->get_string = psppire_data_store_get_string_wrapper;
- iface->set_string = psppire_data_store_set_string_wrapper;
- iface->clear_datum = psppire_data_store_clear_datum;
- iface->is_editable = NULL;
- iface->get_foreground = NULL;
- iface->get_background = NULL;
- iface->get_cell_border = NULL;
- iface->get_column_count = psppire_data_store_get_var_count;
- iface->get_row_count = psppire_data_store_get_case_count_wrapper;
-
- iface->get_column_subtitle = get_column_subtitle;
- iface->get_column_title = get_column_button_label;
- iface->get_column_sensitivity = get_column_sensitivity;
- iface->get_column_justification = get_column_justification;
-
- iface->get_row_title = get_row_button_label;
- iface->get_row_sensitivity = get_row_sensitivity;
-}
-
-static void
-delete_cases_callback (GtkWidget *w,
- casenumber first, casenumber n_cases, gpointer data)
-{
- PsppireDataStore *store ;
-
- g_return_if_fail (data);
-
- store = PSPPIRE_DATA_STORE (data);
-
- g_assert (first >= 0);
-
- g_sheet_model_rows_deleted (G_SHEET_MODEL (store), first, n_cases);
-}
-
-
-static void
-insert_case_callback (GtkWidget *w, casenumber casenum, gpointer data)
-{
- PsppireDataStore *store = PSPPIRE_DATA_STORE (data);
-
- g_return_if_fail (data);
-
- g_print ("%s\n", __FUNCTION__);
-
- g_sheet_model_range_changed (G_SHEET_MODEL (store),
- casenum, -1,
- psppire_data_store_get_case_count (store),
- -1);
-
- g_sheet_model_rows_inserted (G_SHEET_MODEL (store), casenum, 1);
-}
-
-
-static void
-changed_case_callback (GtkWidget *w, gint casenum, gpointer data)
-{
- PsppireDataStore *store ;
- g_return_if_fail (data);
-
- store = PSPPIRE_DATA_STORE (data);
-
- g_sheet_model_range_changed (G_SHEET_MODEL (store),
- casenum, -1,
- casenum, -1);
-}
-
-