diff options
author | John Tytgat <joty@netsurf-browser.org> | 2008-09-28 13:40:06 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2008-09-28 13:40:06 +0000 |
commit | 9c36d71ab89c8768dfe05cbf91f453282fc8baf9 (patch) | |
tree | 1dcb796a1c05994929e26f1aa1eab2c37705ca1b /desktop/save_pdf/pdf_plotters.h | |
parent | 598b5fbbc18d57c765b9aa1cfbabb98f4bf9113f (diff) | |
download | netsurf-9c36d71ab89c8768dfe05cbf91f453282fc8baf9.tar.gz netsurf-9c36d71ab89c8768dfe05cbf91f453282fc8baf9.tar.bz2 |
* desktop/save_pdf/pdf_plotters.c:
- save_pdf(): constify path parameter and routine no longer frees it.
Follow latter change in pdf_end(), nsgtk_PDF_set_pass() and nsgtk_PDF_no_pass()
- pdf_printer: constify
- last_clip_x0, last_clip_y0, last_clip_x1, last_clip_y1, in_text_mode, text_mode_request: make static
- pdf_doc: free previous PDF document if previous save attempt failed.
- set PDF Creator entry based on our user_agent_string().
* other minor changes.
svn path=/trunk/netsurf/; revision=5452
Diffstat (limited to 'desktop/save_pdf/pdf_plotters.h')
-rw-r--r-- | desktop/save_pdf/pdf_plotters.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop/save_pdf/pdf_plotters.h b/desktop/save_pdf/pdf_plotters.h index ba815c552..a64b91768 100644 --- a/desktop/save_pdf/pdf_plotters.h +++ b/desktop/save_pdf/pdf_plotters.h @@ -24,12 +24,11 @@ #define NETSURF_PDF_PLOTTERS_H #include "desktop/print.h" -struct plotter_table; -extern struct printer pdf_printer; +extern const struct printer pdf_printer; /**Start plotting a pdf file*/ -bool pdf_begin(struct print_settings* settings); +bool pdf_begin(struct print_settings *settings); /**Finish the current page and start a new one*/ bool pdf_next_page(void); @@ -39,6 +38,6 @@ void pdf_end(void); void pdf_set_scale(float s); -void save_pdf(char *path); +void save_pdf(const char *path); #endif /*NETSURF_PDF_PLOTTERS_H*/ |