sheet.c 650 Bytes
Newer Older
Arturo Espinosa's avatar
Arturo Espinosa committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <gnome.h>
#include "gnumeric.h"
#include "gnumeric-sheet.h"

Sheet *
sheet_new (Workbook *wb, char *name)
{
	Sheet *sheet;

	sheet = g_new0 (Sheet, 1);
	sheet->parent_workbook = wb;
	sheet->name = g_strdup (name);
	sheet->sheet_view = gnumeric_sheet_new (sheet);
	gtk_widget_show (sheet->sheet_view);
	
	return sheet;
}

19 20 21 22 23 24
ColInfo *
sheet_get_col_info (Sheet *sheet, int col)
{
	static ColInfo c;

	c.col   = col;
25
	c.width = (col + 1) * 15;
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
	c.style = NULL;

	return &c;
}

RowInfo *
sheet_get_row_info (Sheet *sheet, int row)
{
	static RowInfo r;

	/* Just a stub for now */
	r.row    = row;
	r.height = 20;
	r.style  = NULL;

	return &r;
}