GnuCash c935c2f+
Loading...
Searching...
No Matches
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
40extern "C" {
41#endif
42
49void gnc_print_operation_save_print_settings(GtkPrintOperation *op);
50
59void gnc_print_operation_init(GtkPrintOperation *op, const gchar* jobname);
60
67void gnc_ui_page_setup(GtkWindow *parent);
68
71GtkPrintSettings *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_ui_page_setup(GtkWindow *parent)
Run a page setup dialog and save the resulting GtkPageSetup in a static variable.
GtkPrintSettings * gnc_print_get_settings(void)
Returns the pointer to our static GtkPrintSettings object.
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 ...
void gnc_print_operation_save_print_settings(GtkPrintOperation *op)
Retrieve the print settings from the GtkPrintOperation op and save them in a static variable.