Fix truncated input widgets in preferences window
[claws.git] / src / printing.h
blob79a29f8527b283ea2fbdd2ac3485320cb05cac45
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__
23 #include <gtk/gtk.h>
25 #ifdef HAVE_CONFIG_H
26 #include "claws-features.h"
27 #endif
29 typedef struct _PrintData PrintData;
31 typedef struct _PrintRenderer {
32 PangoContext *(*get_pango_context)(gpointer renderer_data);
33 gpointer (*get_data_to_print)(gpointer renderer_data, gint sel_start, gint sel_end);
34 void (*cb_begin_print)(GtkPrintOperation *op, GtkPrintContext *context,
35 gpointer user_data);
36 void (*cb_draw_page)(GtkPrintOperation* op, GtkPrintContext*, gint page_nr,
37 gpointer user_data);
38 } PrintRenderer;
40 void printing_print(GtkTextView*, GtkWindow*, gint, gint, GtkImage *avatar);
41 void printing_print_full(GtkWindow *parent, PrintRenderer *renderer, gpointer renderer_data,
42 gint sel_start, gint sel_end, GtkImage *avatar);
43 void printing_page_setup(GtkWindow*);
44 gpointer printing_get_renderer_data(PrintData *print_data);
45 gdouble printing_get_zoom(PrintData *print_data);
46 void printing_set_n_pages(PrintData *print_data, gint n_pages);
47 GtkPrintSettings *printing_get_settings(void);
48 GtkPageSetup *printing_get_page_setup(void);
49 void printing_store_settings(GtkPrintSettings *new_settings);
51 #endif /* __PRINTING_H__ */