gnome-print-master

Name

gnome-print-master -- 

Synopsis



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);

Description

Details

struct GnomePrintMaster

struct GnomePrintMaster;


struct GnomePrintMasterClass

struct GnomePrintMasterClass;


gnome_print_master_new ()

GnomePrintMaster* gnome_print_master_new    (void);

Create a new GnomePrintMaster. All values are initialised to sensible defaults.

Returns : A new GnomePrintMaster.


gnome_print_master_new_from_config ()

GnomePrintMaster* gnome_print_master_new_from_config
                                            (GnomePrintConfig *config);

config : 
Returns : 


gnome_print_master_get_config ()

GnomePrintConfig* gnome_print_master_get_config
                                            (GnomePrintMaster *gpm);

gpm : 
Returns : 


gnome_print_master_get_context ()

GnomePrintContext* gnome_print_master_get_context
                                            (GnomePrintMaster *gpm);

Retrieve the GnomePrintContext which applications print to.

gpm : An initialised GnomePrintMaster.
Returns : The printing context.


gnome_print_master_close ()

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 : 


gnome_print_master_print ()

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.


gnome_print_master_render ()

gint        gnome_print_master_render       (GnomePrintMaster *gpm,
                                             GnomePrintContext *ctx);

gpm : 
ctx : 
Returns : 


gnome_print_master_render_page ()

gint        gnome_print_master_render_page  (GnomePrintMaster *gpm,
                                             GnomePrintContext *ctx,
                                             gint page,
                                             gboolean pageops);

gpm : 
ctx : 
page : 
pageops : 
Returns : 


gnome_print_master_get_pages ()

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.


gnome_print_master_get_page_size_from_config ()

gboolean    gnome_print_master_get_page_size_from_config
                                            (GnomePrintConfig *config,
                                             gdouble *width,
                                             gdouble *height);

config : 
width : 
height : 
Returns : 


gnome_print_master_print_to_file ()

gint        gnome_print_master_print_to_file
                                            (GnomePrintMaster *gpm,
                                             gchar *output);

gpm : 
output : 
Returns :