| GNOME Print Reference Manual |
|---|
struct GnomePrintMaster; struct GnomePrintMasterClass; GnomePrintMaster* gnome_print_master_new (void); GnomePrintMaster* gnome_print_master_new_from_config (GnomePrintConfig *config); GnomePrintConfig* gnome_print_master_get_config (GnomePrintMaster *gpm); GnomePrintContext* gnome_print_master_get_context (GnomePrintMaster *gpm); gint gnome_print_master_close (GnomePrintMaster *gpm); gint gnome_print_master_print (GnomePrintMaster *gpm); gint gnome_print_master_render (GnomePrintMaster *gpm, GnomePrintContext *ctx); gint gnome_print_master_render_page (GnomePrintMaster *gpm, GnomePrintContext *ctx, gint page, gboolean pageops); gint gnome_print_master_get_pages (GnomePrintMaster *gpm); gboolean gnome_print_master_get_page_size_from_config (GnomePrintConfig *config, gdouble *width, gdouble *height); gint gnome_print_master_print_to_file (GnomePrintMaster *gpm, gchar *output);
GnomePrintMaster* gnome_print_master_new (void);
Create a new GnomePrintMaster. All values are initialised to sensible defaults.
| Returns : | A new GnomePrintMaster. |
GnomePrintMaster* gnome_print_master_new_from_config (GnomePrintConfig *config);
| config : | |
| Returns : |
|
GnomePrintConfig* gnome_print_master_get_config (GnomePrintMaster *gpm);
| gpm : | |
| Returns : |
|
GnomePrintContext* gnome_print_master_get_context (GnomePrintMaster *gpm);
Retrieve the GnomePrintContext which applications print to.
| gpm : | An initialised GnomePrintMaster. |
| Returns : | The printing context. |
gint gnome_print_master_close (GnomePrintMaster *gpm);
* Closes the GnomePrintMaster gpm, ready for printing or previewing.
| gpm : | A GnomePrintMaster which has had printing performed |
| Returns : |
|
gint gnome_print_master_print (GnomePrintMaster *gpm);
Print the pages stored in the GnomePrintMaster to the phyisical printing device.
If no printer has been set, then a dialogue is presented, asking the user for the printer to print to.
| gpm : | A completed GnomePrintMaster. |
| Returns : | Returns -1 on error. |
gint gnome_print_master_render (GnomePrintMaster *gpm, GnomePrintContext *ctx);
| gpm : | |
| ctx : | |
| Returns : |
|
gint gnome_print_master_render_page (GnomePrintMaster *gpm, GnomePrintContext *ctx, gint page, gboolean pageops);
| gpm : | |
| ctx : | |
| page : | |
| pageops : | |
| Returns : |
|
gint gnome_print_master_get_pages (GnomePrintMaster *gpm);
Find the number of pages stored in a completed printout.
| gpm : | An initialised and closed GnomePrintMaster. |
| Returns : | If gpm has not been closed using gnome_print_master_close(), then 0, otherwise the number of pages created by the application. |
gboolean gnome_print_master_get_page_size_from_config
(GnomePrintConfig *config,
gdouble *width,
gdouble *height);| config : | |
| width : | |
| height : | |
| Returns : |
|
gint gnome_print_master_print_to_file
(GnomePrintMaster *gpm,
gchar *output);| gpm : | |
| output : | |
| Returns : |
|
| <<< gnome-print-config | gnome-print-paper >>> |