X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-store.h;h=1974aed8ddb400e281ff76d7938bc9a9cf83d0ef;hb=bc02bc027697df3207f827de722c26d8cc87e824;hp=508f0cd68800079360ea483743b658e672bc5ce8;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp-builds.git diff --git a/src/ui/gui/psppire-data-store.h b/src/ui/gui/psppire-data-store.h index 508f0cd6..1974aed8 100644 --- a/src/ui/gui/psppire-data-store.h +++ b/src/ui/gui/psppire-data-store.h @@ -1,8 +1,7 @@ /* psppire-data-store.h - + PSPPIRE --- A Graphical User Interface for PSPP Copyright (C) 2006 Free Software Foundation - Written by John Darrington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,9 +21,9 @@ #ifndef __PSPPIRE_DATA_STORE_H__ #define __PSPPIRE_DATA_STORE_H__ -#include "gsheetmodel.h" +#include #include "psppire-dict.h" -#include "psppire-case-array.h" +#include "psppire-case-file.h" #ifdef __cplusplus extern "C" { @@ -58,8 +57,12 @@ struct _PsppireDataStore /*< 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 */ @@ -79,18 +82,26 @@ struct _PsppireDataStoreClass 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; -void psppire_data_store_create_system_file(PsppireDataStore *store, - struct file_handle *handle); +void psppire_data_store_create_system_file (PsppireDataStore *store, + struct file_handle *handle); + +gboolean psppire_data_store_insert_new_case (PsppireDataStore *ds, gint posn); + #ifdef __cplusplus