21 #ifndef GNUCASH_SHEET_H 22 #define GNUCASH_SHEET_H 40 #define GNUCASH_TYPE_SHEET (gnucash_sheet_get_type ()) 41 #define GNUCASH_SHEET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNUCASH_TYPE_SHEET, GnucashSheet)) 42 #define GNUCASH_SHEET_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNUCASH_TYPE_SHEET)) 43 #define GNUCASH_IS_SHEET(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GNUCASH_TYPE_SHEET)) 63 GType gnucash_sheet_get_type (
void);
64 GtkWidget *gnucash_sheet_new (Table *
table);
66 void gnucash_sheet_table_load (GnucashSheet *sheet, gboolean do_scroll);
68 void gnucash_sheet_recompute_block_offsets (GnucashSheet *sheet);
70 SheetBlock *gnucash_sheet_get_block (GnucashSheet *sheet,
71 VirtualCellLocation vcell_loc);
73 gint gnucash_sheet_col_max_width (GnucashSheet *sheet,
74 gint virt_col, gint cell_col);
76 void gnucash_sheet_redraw_all (GnucashSheet *sheet);
77 void gnucash_sheet_redraw_help (GnucashSheet *sheet);
79 void gnucash_sheet_redraw_block (GnucashSheet *sheet,
80 VirtualCellLocation vcell_loc);
82 const char * gnucash_sheet_modify_current_cell (GnucashSheet *sheet,
83 const gchar *new_text);
85 gboolean gnucash_sheet_block_set_from_table (GnucashSheet *sheet,
86 VirtualCellLocation vcell_loc);
88 void gnucash_sheet_set_scroll_region (GnucashSheet *sheet);
90 void gnucash_sheet_cursor_set_from_table (GnucashSheet *sheet,
93 void gnucash_sheet_compute_visible_range (GnucashSheet *sheet);
95 void gnucash_sheet_make_cell_visible (GnucashSheet *sheet,
96 VirtualLocation virt_loc);
98 void gnucash_sheet_show_range (GnucashSheet *sheet,
99 VirtualCellLocation start_loc,
100 VirtualCellLocation end_loc);
102 void gnucash_sheet_update_adjustments (GnucashSheet *sheet);
104 void gnucash_sheet_set_window (GnucashSheet *sheet, GtkWidget *window);
109 void gnucash_sheet_set_text_bounds (GnucashSheet *sheet, GdkRectangle *rect,
110 gint x, gint y, gint width, gint height);
112 gint gnucash_sheet_get_text_offset (GnucashSheet *sheet,
const VirtualLocation virt_loc,
113 gint rect_width, gint logical_width);
115 gboolean gnucash_sheet_is_read_only (GnucashSheet *sheet);
117 void gnucash_sheet_set_has_focus (GnucashSheet *sheet, gboolean has_focus);
TableModels specialized for SplitRegister and template SplitRegister.
void gnucash_get_style_classes(GnucashSheet *sheet, GtkStyleContext *stylectxt, RegisterColor field_type, gboolean use_neg_class)
Map a cell color type to a css style class.
gboolean visible
y origin of block
SheetBlockStyle * style
The style for this block.
Declarations for the Table object.
RegisterColor
Color definitions used for table elements.
gint origin_y
x origin of block