#ifndef __PSPPIRE_DATA_STORE_H__
#define __PSPPIRE_DATA_STORE_H__
-#include "gsheetmodel.h"
+#include <gtksheet/gsheetmodel.h>
#include "psppire-dict.h"
-#include "psppire-case-array.h"
+#include "psppire-case-file.h"
#ifdef __cplusplus
extern "C" {
/*< private >*/
PsppireDict *dict;
- PsppireCaseArray *cases;
- PangoFontDescription *font_desc;
+ PsppireCaseFile *case_file;
+ const PangoFontDescription *font_desc;
+
+ /* The width of an upper case 'M' rendered in the current font */
+ gint width_of_m ;
+
gboolean show_labels;
/* Geometry */
inline GType psppire_data_store_get_type (void) G_GNUC_CONST;
-PsppireDataStore *psppire_data_store_new (PsppireDict *dict, PsppireCaseArray *cases);
+PsppireDataStore *psppire_data_store_new (PsppireDict *dict);
-void psppire_data_store_set_dictionary(PsppireDataStore *data_store, PsppireDict *dict);
-void psppire_data_store_set_font(PsppireDataStore *store, PangoFontDescription *fd);
+void psppire_data_store_set_dictionary(PsppireDataStore *data_store,
+ PsppireDict *dict);
-void psppire_data_store_show_labels(PsppireDataStore *store, gboolean show_labels);
+void psppire_data_store_set_font(PsppireDataStore *store,
+ const PangoFontDescription *fd);
+void psppire_data_store_show_labels(PsppireDataStore *store,
+ gboolean show_labels);
+
+void psppire_data_store_clear(PsppireDataStore *data_store);
struct file_handle;