Implemented data-store using a casefile instead of an array of cases.
[pspp-builds.git] / lib / gtksheet / gsheet-column-iface.h
index 6c9970806b90561ee5196d67cde36ab68fc1cc9f..430814abc3768304a292fd3e8b0abec1662d53b1 100644 (file)
@@ -47,37 +47,37 @@ struct _GSheetColumnIface
                                      gint col, gint n_columns);
 
   /* Virtual Table */
-  gint (* get_width) (const GSheetColumn *gcolumn, gint col, const GtkSheet *);
-  void (* set_width) (GSheetColumn *gcolumn, gint col, gint width, const GtkSheet *);
+  gint (* get_width) (const GSheetColumn *gcolumn, gint col, gpointer data);
+  void (* set_width) (GSheetColumn *gcolumn, gint col, gint width, gpointer data);
 
-  gboolean (* get_visibility) (const GSheetColumn *gcolumn, gint col, const GtkSheet *);
-  gboolean (* get_sensitivity) (const GSheetColumn *gcolumn, gint col, const GtkSheet *);
-  const GtkSheetButton * (* get_button) (const GSheetColumn *gcolumn, gint col, const GtkSheet *);
-  GtkJustification (* get_justification) (const GSheetColumn *gcolumn, gint col, const GtkSheet *);
+  gboolean (* get_visibility) (const GSheetColumn *gcolumn, gint col, gpointer data);
+  gboolean (* get_sensitivity) (const GSheetColumn *gcolumn, gint col, gpointer data);
+  const GtkSheetButton * (* get_button) (const GSheetColumn *gcolumn, gint col, gpointer data);
+  GtkJustification (* get_justification) (const GSheetColumn *gcolumn, gint col, gpointer data);
 
   gint  (*get_left_text_column) (const GSheetColumn *gcolumn,
-                                gint col, const GtkSheet *);
+                                gint col, gpointer data);
 
   gint  (*get_right_text_column) (const GSheetColumn *gcolumn,
-                                 gint col, const GtkSheet *);
+                                 gint col, gpointer data);
 
   void (* set_left_text_column) (const GSheetColumn *gcolumn,
-                                gint col, gint i, const GtkSheet *);
+                                gint col, gint i, gpointer data);
 
   void (* set_right_text_column) (const GSheetColumn *gcolumn,
-                                 gint col, gint i, const GtkSheet *);
+                                 gint col, gint i, gpointer data);
 
-  gint  (* get_column_count) (const GSheetColumn *geo, const GtkSheet *);
+  gint  (* get_column_count) (const GSheetColumn *geo, gpointer data);
 
 
-  GtkStateType  (*get_button_state)(const GSheetColumn *geo, gint col, const GtkSheet *);
-  gchar * (*get_button_label)(const GSheetColumn *geo, gint col, const GtkSheet *);
+  GtkStateType  (*get_button_state)(const GSheetColumn *geo, gint col, gpointer data);
+  gchar * (*get_button_label)(const GSheetColumn *geo, gint col, gpointer data);
   gboolean      (*get_button_visibility)(const GSheetColumn *geo, 
-                                       gint col, const GtkSheet *);
+                                       gint col, gpointer data);
   const GtkSheetChild * (*get_button_child)(const GSheetColumn *geo, 
-                                          gint col, const GtkSheet *);
+                                          gint col, gpointer data);
   GtkJustification * (*get_button_justification)(const GSheetColumn *geo, 
-                                               gint col, const GtkSheet *);
+                                               gint col, gpointer data);
 };
 
 
@@ -85,47 +85,46 @@ inline GType g_sheet_column_get_type   (void) G_GNUC_CONST;
 
 
 inline gint  g_sheet_column_get_width (const GSheetColumn *gcolumn,
-                                       gint col, const GtkSheet *sheet);
+                                      gint col, gpointer data);
 
 
 inline void  g_sheet_column_set_width (GSheetColumn *gcolumn,
-                                       gint col, gint size, const GtkSheet *sheet);
+                                      gint col, gint size, gpointer data);
 
 
 inline gboolean  g_sheet_column_get_visibility(const GSheetColumn *gcolumn,
-                                           gint col, const GtkSheet *sheet);
+                                           gint col, gpointer data);
 
 inline gboolean  g_sheet_column_get_sensitivity(const GSheetColumn *gcolumn,
-                                            gint col, const GtkSheet *sheet);
+                                            gint col, gpointer data);
 
 
 inline GtkSheetButton *g_sheet_column_get_button(const GSheetColumn *gcolumn,
-                                            gint col, const GtkSheet *sheet);
+                                            gint col, gpointer data);
 
-inline GtkJustification g_sheet_column_get_justification(const GSheetColumn *gcolumn, gint col, const GtkSheet *sheet);
+inline GtkJustification g_sheet_column_get_justification(const GSheetColumn *gcolumn, gint col, gpointer data);
 
 
 inline gint  g_sheet_column_get_left_text_column (const GSheetColumn *gcolumn,
-                                       gint col, const GtkSheet *sheet);
+                                       gint col, gpointer data);
 
 inline gint  g_sheet_column_get_right_text_column (const GSheetColumn *gcolumn,
-                                       gint col, const GtkSheet *sheet);
+                                       gint col, gpointer data);
 
 inline void g_sheet_column_set_left_text_column (const GSheetColumn *gcolumn,
-                                       gint col, gint i, const GtkSheet *sheet);
+                                       gint col, gint i, gpointer data);
 
 
 inline void g_sheet_column_set_right_text_column (const GSheetColumn *gcolumn,
-                                       gint col, gint i, const GtkSheet *sheet);
+                                       gint col, gint i, gpointer data);
 
 
-inline gint  g_sheet_column_get_column_count(const GSheetColumn *geo, const GtkSheet *sheet);
+inline gint  g_sheet_column_get_column_count(const GSheetColumn *geo, gpointer data);
 
-inline gint  g_sheet_column_start_pixel(const GSheetColumn *geo, gint col, const GtkSheet *sheet);
-
-inline void g_sheet_column_columns_deleted(GSheetColumn *geo, 
-                                     gint first, gint n_columns);
+inline gint  g_sheet_column_start_pixel(const GSheetColumn *geo, gint col, gpointer data);
 
+inline void g_sheet_column_columns_changed(GSheetColumn *geo, 
+                                          gint first, gint n_columns);
 
 G_END_DECLS