GnuCash  5.6-150-g038405b370+
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 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
49 void gnc_print_operation_save_print_settings(GtkPrintOperation *op);
50 
59 void gnc_print_operation_init(GtkPrintOperation *op, const gchar* jobname);
60 
67 void gnc_ui_page_setup(GtkWindow *parent);
68 
71 GtkPrintSettings *gnc_print_get_settings(void);
72 
74 #define GNC_GTK_PRINT_SETTINGS_EXPORT_DIR "gnc-pdf-export-directory"
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 
84 #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:39
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:71
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:51
GtkPrintSettings * gnc_print_get_settings(void)
Returns the pointer to our static GtkPrintSettings object.