1fa579ffe31301aa1587710460eda0bebb2f8083
[pspp] / src / ui / gui / data-sheet.h
1 /* 
2    PSPPIRE --- A Graphical User Interface for PSPP
3    Copyright (C) 2004  Free Software Foundation
4    Written by John Darrington
5
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.
10
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.
15
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
19    02110-1301, USA. */
20
21
22 #ifndef DATA_SHEET_H
23 #define DATA_SHEET_H
24
25 #include <gtksheet/gtksheet.h>
26 #include "psppire-dict.h"
27
28 void psppire_data_sheet_clear(GtkSheet *sheet);
29
30 #if 0
31 void psppire_data_sheet_set_dictionary(GtkSheet *sheet, PsppireDict *d);
32 #endif
33
34 GtkWidget* psppire_data_sheet_create (gchar *widget_name, 
35                                       gchar *string1, 
36                                       gchar *string2, 
37                                       gint int1, gint int2);
38
39
40 void data_sheet_set_cell_value(GtkSheet *sheet, gint row, gint col, 
41                                const GValue *value);
42
43
44 void psppire_data_sheet_set_show_labels(GtkSheet *sheet, gboolean show_labels);
45
46 /* Repair any damage that may have been done to the data sheet */
47 void psppire_data_sheet_redisplay(GtkSheet *sheet);
48
49 guint columnWidthToPixels(GtkSheet *sheet, gint column, guint width);
50
51
52 #endif