diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-06-13 22:37:28 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-06-13 22:37:28 +0800 |
commit | c9bdd525e41cd0e2392da161dde2cf6aa72d8b4d (patch) | |
tree | f20b908b57e9c2a60dd24d3dab56e384458ed53a /e-util/e-printable.h | |
parent | 799153001fa43ad0991c260c461b7bbc266daee9 (diff) | |
download | gsoc2013-evolution-c9bdd525e41cd0e2392da161dde2cf6aa72d8b4d.tar gsoc2013-evolution-c9bdd525e41cd0e2392da161dde2cf6aa72d8b4d.tar.gz gsoc2013-evolution-c9bdd525e41cd0e2392da161dde2cf6aa72d8b4d.tar.bz2 gsoc2013-evolution-c9bdd525e41cd0e2392da161dde2cf6aa72d8b4d.tar.lz gsoc2013-evolution-c9bdd525e41cd0e2392da161dde2cf6aa72d8b4d.tar.xz gsoc2013-evolution-c9bdd525e41cd0e2392da161dde2cf6aa72d8b4d.tar.zst gsoc2013-evolution-c9bdd525e41cd0e2392da161dde2cf6aa72d8b4d.zip |
Changed the needed e_marshal functions.
2000-06-13 Christopher James Lahey <clahey@helixcode.com>
* e-util.c, e-util.h: Changed the needed e_marshal functions.
* e-printable.c, e-printable.h: Added a quantize parameter to
e_printable_height. Also, added a e_printable_will_fit function.
svn path=/trunk/; revision=3551
Diffstat (limited to 'e-util/e-printable.h')
-rw-r--r-- | e-util/e-printable.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/e-util/e-printable.h b/e-util/e-printable.h index 2f8532e0ec..18e6ec8472 100644 --- a/e-util/e-printable.h +++ b/e-util/e-printable.h @@ -33,7 +33,16 @@ typedef struct { void (*print_page) (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble height, gboolean quantized); gboolean (*data_left) (EPrintable *etm); void (*reset) (EPrintable *etm); - gdouble (*height) (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble max_height); + gdouble (*height) (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble max_height, gboolean quantized); + + /* e_printable_will_fit (ep, ...) should be equal in value to + * (e_printable_print_page (ep, ...), + * !e_printable_data_left(ep)) except that the latter has the + * side effect of doing the printing and advancing the + * position of the printable. + */ + + gboolean (*will_fit) (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble max_height, gboolean quantized); } EPrintableClass; GtkType e_printable_get_type (void); @@ -41,8 +50,7 @@ GtkType e_printable_get_type (void); EPrintable *e_printable_new (void); /* - * Routines for emitting signals on the e_table - */ + * Routines for emitting signals on the e_table */ void e_printable_print_page (EPrintable *e_printable, GnomePrintContext *context, gdouble width, @@ -53,6 +61,12 @@ void e_printable_reset (EPrintable *e_printable); gdouble e_printable_height (EPrintable *e_printable, GnomePrintContext *context, gdouble width, - gdouble max_height); + gdouble max_height, + gboolean quantized); +gboolean e_printable_will_fit (EPrintable *e_printable, + GnomePrintContext *context, + gdouble width, + gdouble max_height, + gboolean quantized); #endif /* _E_PRINTABLE_H_ */ |