diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-17 16:37:51 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-17 16:37:51 +0000 |
commit | ee986e1d0acfc586a81aa593c72f9278077f3299 (patch) | |
tree | 9da1d53a770d8b828e73ab0db176fbff36b1dd06 /desktop/print.h | |
parent | f41d666fe17ef2bf4a1a4161283049d2817a4087 (diff) | |
download | netsurf-ee986e1d0acfc586a81aa593c72f9278077f3299.tar.gz netsurf-ee986e1d0acfc586a81aa593c72f9278077f3299.tar.bz2 |
Divorce PDF export and printing.
At some point, the RISC OS printing code should be ported to the core page-based output engine.
svn path=/trunk/netsurf/; revision=6544
Diffstat (limited to 'desktop/print.h')
-rw-r--r-- | desktop/print.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/desktop/print.h b/desktop/print.h index 98f382eca..bc07e377e 100644 --- a/desktop/print.h +++ b/desktop/print.h @@ -40,7 +40,7 @@ struct printer; enum { MARGINLEFT = 0, MARGINRIGHT = 1, MARGINTOP = 2, MARGINBOTTOM = 3}; /** Predefined printing configuration names*/ -typedef enum {DEFAULT, OPTIONS} print_configuration; +typedef enum { PRINT_DEFAULT, PRINT_OPTIONS } print_configuration; /** Settings for a print - filled in by print_make_settings or * 'manually' by the caller @@ -62,19 +62,19 @@ struct print_settings{ }; -bool print_basic_run(struct content *, const struct printer *, struct print_settings *); -bool print_set_up(struct content *content, - const struct printer *printer, struct print_settings *settings, - double *height); +bool print_basic_run(struct content *, const struct printer *, + struct print_settings *); +bool print_set_up(struct content *content, const struct printer *printer, + struct print_settings *settings, double *height); bool print_draw_next_page(const struct printer *printer, struct print_settings *settings); bool print_cleanup(struct content *, const struct printer *, struct print_settings *settings); struct print_settings *print_make_settings(print_configuration configuration, - const char *url); + const char *url, const struct font_functions *font_func); -/*is the content currently redrawn fo printing?*/ +/*is the content currently redrawn for printing?*/ extern bool html_redraw_printing; /*if something is partially under this Y coordinate it won't be drawn...*/ extern int html_redraw_printing_border; @@ -82,3 +82,4 @@ extern int html_redraw_printing_border; extern int html_redraw_printing_top_cropped; #endif + |