aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-11 05:16:45 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-11 05:16:45 +0800
commitc57de49bb5d65df1fa0d63285b296397be3af6f8 (patch)
treeb3812be586e590ebe6de41ac2739bde89c1d29b2 /widgets/table/e-cell.c
parent5dc1015e9666ef59682c46e306ed3a4add0a9356 (diff)
downloadgsoc2013-evolution-c57de49bb5d65df1fa0d63285b296397be3af6f8.tar
gsoc2013-evolution-c57de49bb5d65df1fa0d63285b296397be3af6f8.tar.gz
gsoc2013-evolution-c57de49bb5d65df1fa0d63285b296397be3af6f8.tar.bz2
gsoc2013-evolution-c57de49bb5d65df1fa0d63285b296397be3af6f8.tar.lz
gsoc2013-evolution-c57de49bb5d65df1fa0d63285b296397be3af6f8.tar.xz
gsoc2013-evolution-c57de49bb5d65df1fa0d63285b296397be3af6f8.tar.zst
gsoc2013-evolution-c57de49bb5d65df1fa0d63285b296397be3af6f8.zip
Added $(GNOME_PRINT_LIBS) to all of the LDADDs.
2000-06-10 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(GNOME_PRINT_LIBS) to all of the LDADDs. * e-cell-text.c: Added printing of text cells. * e-cell.c, e-cell.h: Added print and print_height methods. * e-table-field-chooser.glade: Added a minimum size. * e-table-group-container.c: Fixed a rectangle sizing bug. * e-table-group-leaf.c: Implemented get_printable. * e-table-group.c, e-table-group.h: Added a get_printable method to return an EPrintable. * e-table-item.c, e-table-item.h: Added a get_printable function to return an EPrintable. * e-table.c, e-table.h: Added a get_printable function to return an EPrintable. svn path=/trunk/; revision=3511
Diffstat (limited to 'widgets/table/e-cell.c')
-rw-r--r--widgets/table/e-cell.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/widgets/table/e-cell.c b/widgets/table/e-cell.c
index b472b6f6ff..75be2ce916 100644
--- a/widgets/table/e-cell.c
+++ b/widgets/table/e-cell.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* e-cell.c: base class for cell renderers in e-table
*
@@ -104,6 +105,8 @@ e_cell_class_init (GtkObjectClass *object_class)
ecc->height = ec_height;
ecc->enter_edit = ec_enter_edit;
ecc->leave_edit = ec_leave_edit;
+ ecc->print = NULL;
+ ecc->print_height = NULL;
}
static void
@@ -145,7 +148,7 @@ e_cell_unrealize (ECellView *ecell_view)
{
E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->unrealize (ecell_view);
}
-
+
void
e_cell_draw (ECellView *ecell_view, GdkDrawable *drawable,
int model_col, int view_col, int row, gboolean selected, int x1, int y1, int x2, int y2)
@@ -154,6 +157,27 @@ e_cell_draw (ECellView *ecell_view, GdkDrawable *drawable,
ecell_view, drawable, model_col, view_col, row, selected, x1, y1, x2, y2);
}
+void
+e_cell_print (ECellView *ecell_view, GnomePrintContext *context,
+ int model_col, int view_col, int row,
+ double width, double height)
+{
+ E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->print
+ (ecell_view, context, model_col, view_col, row, width, height);
+}
+
+gdouble
+e_cell_print_height (ECellView *ecell_view, GnomePrintContext *context,
+ int model_col, int view_col, int row,
+ double width)
+{
+ if (E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->print_height)
+ return E_CELL_CLASS (GTK_OBJECT (ecell_view->ecell)->klass)->print_height
+ (ecell_view, context, model_col, view_col, row, width);
+ else
+ return 0.0;
+}
+
int
e_cell_height (ECellView *ecell_view, int model_col, int view_col, int row)
{