gtk2/docs/reference/gtk/tmpl/gtkprintsettings.sgml
Alexander Larsson 27f746fbd0 Merge the gtk-printing branch. For more detailed ChangeLog entries, see
2006-04-21  Alexander Larsson  <alexl@redhat.com>

        Merge the gtk-printing branch.
	For more detailed ChangeLog entries, see the branch.

	* .cvsignore:
	* Makefile.am:
	* configure.in:
	* docs/tools/widgets.c:
	* gtk+-unix-print-2.0.pc.in:
	* gtk/Makefile.am:
	* gtk/gen-paper-names.c:
	* gtk/gtk.h:
	* gtk/gtk.symbols:
	* gtk/gtkenums.h:
	* gtk/gtkiconfactory.c:
	* gtk/gtkmarshalers.list:
	* gtk/gtkpagesetup.[ch]:
	* gtk/gtkpagesetupunixdialog.[ch]:
	* gtk/gtkpapersize.[ch]:
	* gtk/gtkprint-win32.[ch]:
	* gtk/gtkprintbackend.[ch]:
	* gtk/gtkprintcontext.[ch]:
	* gtk/gtkprinter-private.h:
	* gtk/gtkprinter.[ch]:
	* gtk/gtkprinteroption.[ch]:
	* gtk/gtkprinteroptionset.[ch]:
	* gtk/gtkprinteroptionwidget.[ch]:
	* gtk/gtkprintjob.[ch]:
	* gtk/gtkprintoperation-private.h:
	* gtk/gtkprintoperation-unix.c:
	* gtk/gtkprintoperation-win32.c:
	* gtk/gtkprintoperation.[ch]:
	* gtk/gtkprintsettings.[ch]:
	* gtk/gtkprintunixdialog.[ch]:
	* gtk/paper_names.c:
	* gtk/paper_names_offsets.c:
	Platform independent printing API and implementations
	for unix and windows.

	* gtk/gtkstock.h:
	* gtk/stock-icons/24/gtk-orientation-landscape.png:
	* gtk/stock-icons/24/gtk-orientation-portrait.png:
	* gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
	Add stock icons for page orientation.

	* modules/Makefile.am:
	* modules/printbackends/Makefile.am:
	* modules/printbackends/cups/Makefile.am:
	* modules/printbackends/cups/gtkcupsutils.[ch]:
	* modules/printbackends/cups/gtkprintbackendcups.[ch]:
	* modules/printbackends/cups/gtkprintercups.[ch]:

	Cups printing backend for unix.

	* modules/printbackends/lpr/Makefile.am:
	* modules/printbackends/lpr/gtkprintbackendlpr.[ch]:
	lpr printing backend for unix.

	* modules/printbackends/pdf/Makefile.am:
	* modules/printbackends/pdf/gtkprintbackendpdf.[ch]:
	print-to-pdf printing backend for unix.

	* tests/.cvsignore:
	* tests/Makefile.am:
	* tests/print-editor.c:
	Test application for printing.

	* gdk/gdk.symbols:
	* gdk/win32/gdkevents-win32.c:
	* gdk/win32/gdkwin32.h:
	Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the
	mainloop while displaying a win32 common dialog.

	* gdk/directfb/Makefile.am:
	Whitespace cleanup.
2006-04-21 15:09:32 +00:00

698 lines
8.6 KiB
Plaintext

<!-- ##### SECTION Title ##### -->
GtkPrintSettings
<!-- ##### SECTION Short_Description ##### -->
Stores print settings
<!-- ##### SECTION Long_Description ##### -->
<para>
A GtkPrintSettings object represents the settings of a print dialog in
a system-independent way. The main use for this object is that once
you've printed you can get a settings object that represents the settings
the user chose, and the next time you print you can pass that object in so
that the user doesn't have to re-set all his settings.
</para>
<para>
Its also possible to enumerate the settings so that you can easily save
the settings for the next time your app runs, or even store them in a
document. The predefined keys try to use shared values as much as possible
so that moving such a document between systems still works.
</para>
<!-- TODO example of getting, storing and setting settings -->
<para>
Printing support was added in GTK+ 2.10.
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### STRUCT GtkPrintSettings ##### -->
<para>
</para>
<!-- ##### USER_FUNCTION GtkPrintSettingsFunc ##### -->
<para>
</para>
@key:
@value:
@user_data:
<!-- ##### FUNCTION gtk_print_settings_new ##### -->
<para>
</para>
@Returns:
<!-- ##### FUNCTION gtk_print_settings_copy ##### -->
<para>
</para>
@other:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_has_key ##### -->
<para>
</para>
@settings:
@key:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_get ##### -->
<para>
</para>
@settings:
@key:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set ##### -->
<para>
</para>
@settings:
@key:
@value:
<!-- ##### FUNCTION gtk_print_settings_unset ##### -->
<para>
</para>
@settings:
@key:
<!-- ##### FUNCTION gtk_print_settings_foreach ##### -->
<para>
</para>
@settings:
@func:
@user_data:
<!-- ##### FUNCTION gtk_print_settings_get_bool ##### -->
<para>
</para>
@settings:
@key:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_bool ##### -->
<para>
</para>
@settings:
@key:
@value:
<!-- ##### FUNCTION gtk_print_settings_get_double ##### -->
<para>
</para>
@settings:
@key:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_get_double_with_default ##### -->
<para>
</para>
@settings:
@key:
@def:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_double ##### -->
<para>
</para>
@settings:
@key:
@value:
<!-- ##### FUNCTION gtk_print_settings_get_length ##### -->
<para>
</para>
@settings:
@key:
@unit:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_length ##### -->
<para>
</para>
@settings:
@key:
@value:
@unit:
<!-- ##### FUNCTION gtk_print_settings_get_int ##### -->
<para>
</para>
@settings:
@key:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_get_int_with_default ##### -->
<para>
</para>
@settings:
@key:
@def:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_int ##### -->
<para>
</para>
@settings:
@key:
@value:
<!-- ##### FUNCTION gtk_print_settings_get_printer ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_printer ##### -->
<para>
</para>
@settings:
@printer:
<!-- ##### ENUM GtkPageOrientation ##### -->
<para>
</para>
@GTK_PAGE_ORIENTATION_PORTRAIT:
@GTK_PAGE_ORIENTATION_LANDSCAPE:
@GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT:
@GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE:
<!-- ##### FUNCTION gtk_print_settings_get_orientation ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_orientation ##### -->
<para>
</para>
@settings:
@orientation:
<!-- ##### FUNCTION gtk_print_settings_get_paper_size ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_paper_size ##### -->
<para>
</para>
@settings:
@paper_size:
<!-- ##### FUNCTION gtk_print_settings_get_paper_width ##### -->
<para>
</para>
@settings:
@unit:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_paper_width ##### -->
<para>
</para>
@settings:
@width:
@unit:
<!-- ##### FUNCTION gtk_print_settings_get_paper_height ##### -->
<para>
</para>
@settings:
@unit:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_paper_height ##### -->
<para>
</para>
@settings:
@width:
@unit:
<!-- ##### FUNCTION gtk_print_settings_get_use_color ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_use_color ##### -->
<para>
</para>
@settings:
@use_color:
<!-- ##### FUNCTION gtk_print_settings_get_collate ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_collate ##### -->
<para>
</para>
@settings:
@collate:
<!-- ##### FUNCTION gtk_print_settings_get_reverse ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_reverse ##### -->
<para>
</para>
@settings:
@reverse:
<!-- ##### ENUM GtkPrintDuplex ##### -->
<para>
</para>
@GTK_PRINT_DUPLEX_SIMPLEX:
@GTK_PRINT_DUPLEX_HORIZONTAL:
@GTK_PRINT_DUPLEX_VERTICAL:
<!-- ##### FUNCTION gtk_print_settings_get_duplex ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_duplex ##### -->
<para>
</para>
@settings:
@duplex:
<!-- ##### ENUM GtkPrintQuality ##### -->
<para>
</para>
@GTK_PRINT_QUALITY_LOW:
@GTK_PRINT_QUALITY_NORMAL:
@GTK_PRINT_QUALITY_HIGH:
@GTK_PRINT_QUALITY_DRAFT:
<!-- ##### FUNCTION gtk_print_settings_get_quality ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_quality ##### -->
<para>
</para>
@settings:
@quality:
<!-- ##### FUNCTION gtk_print_settings_get_num_copies ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_num_copies ##### -->
<para>
</para>
@settings:
@num_copies:
<!-- ##### FUNCTION gtk_print_settings_get_number_up ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_number_up ##### -->
<para>
</para>
@settings:
@number_up:
<!-- ##### FUNCTION gtk_print_settings_get_resolution ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_resolution ##### -->
<para>
</para>
@settings:
@resolution:
<!-- ##### FUNCTION gtk_print_settings_get_scale ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_scale ##### -->
<para>
</para>
@settings:
@scale:
<!-- ##### FUNCTION gtk_print_settings_get_print_to_file ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_print_to_file ##### -->
<para>
</para>
@settings:
@print_to_file:
<!-- ##### ENUM GtkPrintPages ##### -->
<para>
</para>
@GTK_PRINT_PAGES_ALL:
@GTK_PRINT_PAGES_CURRENT:
@GTK_PRINT_PAGES_RANGES:
<!-- ##### FUNCTION gtk_print_settings_get_print_pages ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_print_pages ##### -->
<para>
</para>
@settings:
@pages:
<!-- ##### STRUCT GtkPageRange ##### -->
<para>
</para>
@start:
@end:
<!-- ##### FUNCTION gtk_print_settings_get_page_ranges ##### -->
<para>
</para>
@settings:
@num_ranges:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_page_ranges ##### -->
<para>
</para>
@settings:
@page_ranges:
@num_ranges:
<!-- ##### ENUM GtkPageSet ##### -->
<para>
</para>
@GTK_PAGE_SET_ALL:
@GTK_PAGE_SET_EVEN:
@GTK_PAGE_SET_ODD:
<!-- ##### FUNCTION gtk_print_settings_get_page_set ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_page_set ##### -->
<para>
</para>
@settings:
@page_set:
<!-- ##### FUNCTION gtk_print_settings_get_default_source ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_default_source ##### -->
<para>
</para>
@settings:
@default_source:
<!-- ##### FUNCTION gtk_print_settings_get_media_type ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_media_type ##### -->
<para>
</para>
@settings:
@media_type:
<!-- ##### FUNCTION gtk_print_settings_get_dither ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_dither ##### -->
<para>
</para>
@settings:
@dither:
<!-- ##### FUNCTION gtk_print_settings_get_finishings ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_finishings ##### -->
<para>
</para>
@settings:
@finishings:
<!-- ##### FUNCTION gtk_print_settings_get_output_bin ##### -->
<para>
</para>
@settings:
@Returns:
<!-- ##### FUNCTION gtk_print_settings_set_output_bin ##### -->
<para>
</para>
@settings:
@output_bin: