1 /* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
2 * Copyright (C) 2007-2012 Holger Berndt <hb@claws-mail.org>
3 * and the Claws Mail team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __PRINTING_H__
21 #define __PRINTING_H__
27 #include "claws-features.h"
30 typedef struct _PrintData PrintData;
32 typedef struct _PrintRenderer {
33 PangoContext *(*get_pango_context)(gpointer renderer_data);
34 gpointer (*get_data_to_print)(gpointer renderer_data, gint sel_start, gint sel_end);
35 void (*cb_begin_print)(GtkPrintOperation *op, GtkPrintContext *context,
37 void (*cb_draw_page)(GtkPrintOperation* op, GtkPrintContext*, gint page_nr,
41 void printing_print(GtkTextView*, GtkWindow*, gint, gint);
42 void printing_print_full(GtkWindow *parent, PrintRenderer *renderer, gpointer renderer_data,
43 gint sel_start, gint sel_end);
44 void printing_page_setup(GtkWindow*);
45 gpointer printing_get_renderer_data(PrintData *print_data);
46 gdouble printing_get_zoom(PrintData *print_data);
47 void printing_set_n_pages(PrintData *print_data, gint n_pages);
48 GtkPrintSettings *printing_get_settings(void);
49 GtkPageSetup *printing_get_page_setup(void);
50 void printing_store_settings(GtkPrintSettings *new_settings);
52 #endif /* __PRINTING_H__ */