aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-cell.h
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table/e-cell.h')
-rw-r--r--widgets/e-table/e-cell.h42
1 files changed, 25 insertions, 17 deletions
diff --git a/widgets/e-table/e-cell.h b/widgets/e-table/e-cell.h
index 8804d2066f..40b257f264 100644
--- a/widgets/e-table/e-cell.h
+++ b/widgets/e-table/e-cell.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef _E_CELL_H_
#define _E_CELL_H_
@@ -32,23 +33,28 @@ struct _ECellView {
typedef struct {
GtkObjectClass parent_class;
- ECellView *(*new_view) (ECell *ecell, ETableModel *table_model, void *e_table_item_view);
- void (*kill_view) (ECellView *ecell_view);
-
- void (*realize) (ECellView *ecell_view);
- void (*unrealize) (ECellView *ecell_view);
-
- void (*draw) (ECellView *ecell_view, GdkDrawable *drawable,
- int model_col, int view_col, int row,
- gboolean selected, int x1, int y1, int x2, int y2);
- gint (*event) (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row);
- void (*focus) (ECellView *ecell_view, int model_col, int view_col,
- int row, int x1, int y1, int x2, int y2);
- void (*unfocus) (ECellView *ecell_view);
- int (*height) (ECellView *ecell_view, int model_col, int view_col, int row);
-
- void *(*enter_edit)(ECellView *ecell_view, int model_col, int view_col, int row);
- void (*leave_edit)(ECellView *ecell_view, int model_col, int view_col, int row, void *context);
+ ECellView *(*new_view) (ECell *ecell, ETableModel *table_model, void *e_table_item_view);
+ void (*kill_view) (ECellView *ecell_view);
+
+ void (*realize) (ECellView *ecell_view);
+ void (*unrealize) (ECellView *ecell_view);
+
+ void (*draw) (ECellView *ecell_view, GdkDrawable *drawable,
+ int model_col, int view_col, int row,
+ gboolean selected, int x1, int y1, int x2, int y2);
+ gint (*event) (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row);
+ void (*focus) (ECellView *ecell_view, int model_col, int view_col,
+ int row, int x1, int y1, int x2, int y2);
+ void (*unfocus) (ECellView *ecell_view);
+ int (*height) (ECellView *ecell_view, int model_col, int view_col, int row);
+
+ void *(*enter_edit) (ECellView *ecell_view, int model_col, int view_col, int row);
+ void (*leave_edit) (ECellView *ecell_view, int model_col, int view_col, int row, void *context);
+ void (*print) (ECellView *ecell_view, GnomePrintContext *context,
+ int model_col, int view_col, int row,
+ gdouble width, gdouble height);
+ gdouble (*print_height) (ECellView *ecell_view, GnomePrintContext *context,
+ int model_col, int view_col, int row, gdouble width);
} ECellClass;
GtkType e_cell_get_type (void);
@@ -66,6 +72,8 @@ void e_cell_draw (ECellView *ecell_view, GdkDrawable *dr,
void e_cell_print (ECellView *ecell_view, GnomePrintContext *context,
int model_col, int view_col, int row,
double width, double height);
+gdouble e_cell_print_height (ECellView *ecell_view, GnomePrintContext *context,
+ int model_col, int view_col, int row, gdouble width);
void e_cell_focus (ECellView *ecell_view, int model_col, int view_col, int row,
int x1, int y1, int x2, int y2);
void e_cell_unfocus (ECellView *ecell_view);