3 PSPPIRE --- A Graphical User Interface for PSPP
4 Copyright (C) 2006 Free Software Foundation
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #ifndef __PSPPIRE_VAR_STORE_H__
22 #define __PSPPIRE_VAR_STORE_H__
24 #include <gtksheet/gsheetmodel.h>
25 #include "psppire-dict.h"
30 #endif /* __cplusplus */
32 #define GTK_TYPE_VAR_STORE (psppire_var_store_get_type ())
34 #define PSPPIRE_VAR_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
35 GTK_TYPE_VAR_STORE, PsppireVarStore))
37 #define PSPPIRE_VAR_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
39 PsppireVarStoreClass))
41 #define PSPPIRE_IS_VAR_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VAR_STORE))
43 #define PSPPIRE_IS_VAR_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VAR_STORE))
45 #define PSPPIRE_VAR_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
47 PsppireVarStoreClass))
49 typedef struct _PsppireVarStore PsppireVarStore;
50 typedef struct _PsppireVarStoreClass PsppireVarStoreClass;
54 struct _PsppireVarStore
61 const PangoFontDescription *font_desc;
64 struct _PsppireVarStoreClass
66 GObjectClass parent_class;
68 /* Padding for future expansion */
69 void (*_gtk_reserved1) (void);
70 void (*_gtk_reserved2) (void);
71 void (*_gtk_reserved3) (void);
72 void (*_gtk_reserved4) (void);
76 GType psppire_var_store_get_type (void) G_GNUC_CONST;
77 PsppireVarStore *psppire_var_store_new (PsppireDict *dict);
78 struct variable * psppire_var_store_get_var (PsppireVarStore *store, gint row);
80 void psppire_var_store_set_dictionary (PsppireVarStore *var_store, PsppireDict *dict);
83 /* Return the number of variables */
84 gint psppire_var_store_get_var_cnt (PsppireVarStore *var_store);
86 void psppire_var_store_set_font (PsppireVarStore *store, const PangoFontDescription *fd);
91 #endif /* __cplusplus */
94 #endif /* __PSPPIRE_VAR_STORE_H__ */