1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
Stores page setup information
7
<!-- ##### SECTION Long_Description ##### -->
9
A GtkPageSetup object stores the page size, orientation and margins.
10
The idea is that you can get one of these from the page setup dialog
11
and then pass it to the #GtkPrintOperation when printing.
12
The benefit of splitting this out of the #GtkPrintSettings is that
13
these affect the actual layout of the page, and thus need to be set
14
long before user prints.
16
<para id="print-margins">
17
The margins specified in this object are the "print margins", i.e. the
18
parts of the page that the printer cannot print on. These are different
19
from the layout margins that a word processor uses; they are typically
20
used to determine the <emphasis>minimal</emphasis> size for the layout
24
To obtain a #GtkPageSetup use gtk_page_setup_new()
25
to get the defaults, or use gtk_print_run_page_setup_dialog() to show
26
the page setup dialog and receive the resulting page setup.
29
<title>A page setup dialog</title>
31
static GtkPrintSettings *settings = NULL;
32
static GtkPageSetup *page_setup = NULL;
37
GtkPageSetup *new_page_setup;
40
settings = gtk_print_settings_new (<!-- -->);
42
new_page_setup = gtk_print_run_page_setup_dialog (GTK_WINDOW (main_window),
43
page_setup, settings);
46
g_object_unref (page_setup);
48
page_setup = new_page_setup;
53
Printing support was added in GTK+ 2.10.
56
<!-- ##### SECTION See_Also ##### -->
61
<!-- ##### SECTION Stability_Level ##### -->
64
<!-- ##### SECTION Image ##### -->
67
<!-- ##### STRUCT GtkPageSetup ##### -->
73
<!-- ##### FUNCTION gtk_page_setup_new ##### -->
82
<!-- ##### FUNCTION gtk_page_setup_copy ##### -->
91
<!-- ##### FUNCTION gtk_page_setup_get_orientation ##### -->
100
<!-- ##### FUNCTION gtk_page_setup_set_orientation ##### -->
109
<!-- ##### FUNCTION gtk_page_setup_get_paper_size ##### -->
118
<!-- ##### FUNCTION gtk_page_setup_set_paper_size ##### -->
127
<!-- ##### FUNCTION gtk_page_setup_get_top_margin ##### -->
137
<!-- ##### FUNCTION gtk_page_setup_set_top_margin ##### -->
147
<!-- ##### FUNCTION gtk_page_setup_get_bottom_margin ##### -->
157
<!-- ##### FUNCTION gtk_page_setup_set_bottom_margin ##### -->
167
<!-- ##### FUNCTION gtk_page_setup_get_left_margin ##### -->
177
<!-- ##### FUNCTION gtk_page_setup_set_left_margin ##### -->
187
<!-- ##### FUNCTION gtk_page_setup_get_right_margin ##### -->
197
<!-- ##### FUNCTION gtk_page_setup_set_right_margin ##### -->
207
<!-- ##### FUNCTION gtk_page_setup_set_paper_size_and_default_margins ##### -->
216
<!-- ##### FUNCTION gtk_page_setup_get_paper_width ##### -->
226
<!-- ##### FUNCTION gtk_page_setup_get_paper_height ##### -->
236
<!-- ##### FUNCTION gtk_page_setup_get_page_width ##### -->
246
<!-- ##### FUNCTION gtk_page_setup_get_page_height ##### -->
256
<!-- ##### FUNCTION gtk_page_setup_new_from_file ##### -->
266
<!-- ##### FUNCTION gtk_page_setup_new_from_key_file ##### -->
277
<!-- ##### FUNCTION gtk_page_setup_load_file ##### -->
288
<!-- ##### FUNCTION gtk_page_setup_load_key_file ##### -->
300
<!-- ##### FUNCTION gtk_page_setup_to_file ##### -->
311
<!-- ##### FUNCTION gtk_page_setup_to_key_file ##### -->