]> git.saurik.com Git - wxWidgets.git/blame - docs/doxygen/overviews/unixprinting.h
Use flat generic status bar by default and add wxSB_SUNKEN.
[wxWidgets.git] / docs / doxygen / overviews / unixprinting.h
CommitLineData
15b6757b 1/////////////////////////////////////////////////////////////////////////////
2cd3cc94 2// Name: unixprinting.h
15b6757b
FM
3// Purpose: topic overview
4// Author: wxWidgets team
5// RCS-ID: $Id$
526954c5 6// Licence: wxWindows licence
15b6757b
FM
7/////////////////////////////////////////////////////////////////////////////
8
880efa2a 9/**
36c9828f 10
2cd3cc94
BP
11@page overview_unixprinting Printing Under Unix (GTK+)
12
831e1028
BP
13@tableofcontents
14
2cd3cc94
BP
15Printing under Unix has always been a cause of problems as Unix does not
16provide a standard way to display text and graphics on screen and print it to a
17printer using the same application programming interface - instead, displaying
18on screen is done via the X11 library while printing has to be done with using
19PostScript commands. This was particularly difficult to handle for the case of
20fonts with the result that only a selected number of application could offer
21WYSIWYG under Unix. Equally, wxWidgets offered its own printing implementation
22using PostScript which never really matched the screen display.
23
24Starting with version 2.8.X, the GNOME project provides printing support
25through the libgnomeprint and libgnomeprintui libraries by which especially the
26font problem is mostly solved. Beginning with version 2.5.4, the GTK+ port of
27wxWidgets can make use of these libraries if wxWidgets is configured
28accordingly and if the libraries are present. You need to configure wxWidgets
29with the <tt>configure --with-gnomeprint</tt> switch and your application will
30then search for the GNOME print libraries at runtime. If they are found,
31printing will be done through these, otherwise the application will fall back
32to the old PostScript printing code. Note that the application will not require
33the GNOME print libraries to be installed in order to run (there will be no
34dependency on these libraries).
35
36In version GTK+ 2.10, support for printing has been added to GTK+ itself.
37Beginning with version wxWidgets 2.9.X, the GTK+ port of wxWidgets can make use
38of this feature if wxWidgets is configured accordingly and if the GTK+ version
39is = 2.10. You need to configure wxWidgets with the
40<tt>configure --with-gtkprint</tt> switch and your application will then search
41for the GTK+ print support at runtime. If it is found, printing will be done
42through GTK+, otherwise the application will fall back to GNOME printing
43support if it is available or, if it isn't, to the old PostScript printing
44code. Note that the application will not require a GTK+ version = 2.10 to be
45installed in order to run (there will be no dependency on this version).
46
47*/