forked from AuroraMiddleware/gtk
27f746fbd0
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.
276 lines
3.3 KiB
Plaintext
276 lines
3.3 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
GtkPaperSize
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
Support for named paper sizes
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
GtkPaperSize handles paper sizes. It uses the standard called
|
|
"PWG 5101.1-2002 PWG: Standard for Media Standardized Names"
|
|
<!-- FIXME link here -->
|
|
to name the paper sizes (and to get the data for the page sizes).
|
|
In addition to standard paper sizes, GtkPaperSize allows to
|
|
construct custom paper sizes with arbitrary dimensions.
|
|
</para>
|
|
<para>
|
|
The #GtkPaperSize object stores not only the dimensions (width
|
|
and height) of a paper size and its name, it also provides
|
|
default <link linkend="print-margins">print margins</link>.
|
|
</para>
|
|
|
|
<para>
|
|
Printing support has been added in GTK+ 2.10.
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
#GtkPageSetup
|
|
</para>
|
|
|
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
<!-- ##### STRUCT GtkPaperSize ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
<!-- ##### ENUM GtkUnit ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@GTK_UNIT_PIXEL:
|
|
@GTK_UNIT_POINTS:
|
|
@GTK_UNIT_INCH:
|
|
@GTK_UNIT_MM:
|
|
|
|
<!-- ##### MACRO GTK_PAPER_NAME_A3 ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_PAPER_NAME_A4 ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_PAPER_NAME_A5 ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_PAPER_NAME_B5 ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_PAPER_NAME_LETTER ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_PAPER_NAME_EXECUTIVE ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO GTK_PAPER_NAME_LEGAL ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_new ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@name:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_new_from_ppd ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@ppd_name:
|
|
@ppd_display_name:
|
|
@width:
|
|
@height:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_new_custom ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@name:
|
|
@display_name:
|
|
@width:
|
|
@height:
|
|
@unit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_copy ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@other:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_free ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_is_equal ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size1:
|
|
@size2:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_name ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_display_name ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_ppd_name ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_width ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@unit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_height ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@unit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_is_custom ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_set_size ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@width:
|
|
@height:
|
|
@unit:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_default_top_margin ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@unit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_default_bottom_margin ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@unit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_default_left_margin ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@unit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_default_right_margin ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@size:
|
|
@unit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_paper_size_get_default ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@Returns:
|
|
|
|
|