GnuCash  4.11-137-g155922540d+
print-session.h
Go to the documentation of this file.
1 /********************************************************************\
2  * print-session.h -- data structures for printing via gtkprint *
3  * (GnuCash) *
4  * Copyright (C) 2000 Bill Gribble <grib@billgribble.com> *
5  * *
6  * This program is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License as *
8  * published by the Free Software Foundation; either version 2 of *
9  * the License, or (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License*
17  * along with this program; if not, contact: *
18  * *
19  * Free Software Foundation Voice: +1-617-542-5942 *
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21  * Boston, MA 02110-1301, USA gnu@gnu.org *
22 \********************************************************************/
23 
24 #ifndef PRINT_SESSION_H
25 #define PRINT_SESSION_H
26 
37 #include <gtk/gtk.h>
38 
45 void gnc_print_operation_save_print_settings(GtkPrintOperation *op);
46 
55 void gnc_print_operation_init(GtkPrintOperation *op, const gchar* jobname);
56 
63 void gnc_ui_page_setup(GtkWindow *parent);
64 
67 GtkPrintSettings *gnc_print_get_settings(void);
68 
70 #define GNC_GTK_PRINT_SETTINGS_EXPORT_DIR "gnc-pdf-export-directory"
71 
72 
76 #endif
void gnc_print_operation_save_print_settings(GtkPrintOperation *op)
Retrieve the print settings from the GtkPrintOperation op and save them in a static variable...
Definition: print-session.c:47
void gnc_ui_page_setup(GtkWindow *parent)
Run a page setup dialog and save the resulting GtkPageSetup in a static variable. ...
Definition: print-session.c:79
void gnc_print_operation_init(GtkPrintOperation *op, const gchar *jobname)
If print settings have been saved by gnc_print_operation_save_print_settings(), then set them on the ...
Definition: print-session.c:59
GtkPrintSettings * gnc_print_get_settings(void)
Returns the pointer to our static GtkPrintSettings object.