| GNOME Print Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> | 
| 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.
| 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); | 
Retrieve the GnomePrintContext which applications print to.
| gint gnome_print_master_close (GnomePrintMaster *gpm); | 
* Closes the GnomePrintMaster gpm, ready for printing or previewing.
| 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.
| 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); | 
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); | 
| gint        gnome_print_master_print_to_file
                                            (GnomePrintMaster *gpm,
                                             gchar *output); |