From 0ef74c936f7a5b36a66ea828506b4b44e25a1998 Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Fri, 10 Jul 2009 11:28:31 +0200 Subject: Add paper size combo and orientation combo to print dialog Paper size combo and orientation combo can be added by gtk_print_operation_set_embed_page_setup_dialog() to GtkPrinUnixDialog now. This function induce calling of gtk_print_unix_dailog_set_embed_page_setup_dialog() after creation of dialog. These two functions control embed-page-setup-dialog properties in GtkPrintOperation and in GtkPrintUnixDialog. There is also new function gtk_print_unix_dialog_get_page_setup_set() which says whether page setup was set by user. Selected page setup is stored as default page setup in GtkPrintOperation. New class is added, its name is GtkCustomPaperUnixDialog. The class manages custom sizes. It is derived from GtkPageSetupUnixDialog's CustomPaperDialog structure. Page layout preview is modified, so, it shows dimensions of current page setup (mm or inch - depends on locale). It also shows the name of actual paper if page setup dialog is not embedded (paper size combo is not visible). gtk-demo is actualized to include this new feature. --- gtk/gtkprintoperation.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk/gtkprintoperation.h') diff --git a/gtk/gtkprintoperation.h b/gtk/gtkprintoperation.h index aee3d95ec6..7ac38d4c2a 100644 --- a/gtk/gtkprintoperation.h +++ b/gtk/gtkprintoperation.h @@ -184,6 +184,9 @@ gboolean gtk_print_operation_get_support_selection (GtkPrintOper void gtk_print_operation_set_has_selection (GtkPrintOperation *op, gboolean has_selection); gboolean gtk_print_operation_get_has_selection (GtkPrintOperation *op); +void gtk_print_operation_set_embed_page_setup (GtkPrintOperation *op, + gboolean embed); +gboolean gtk_print_operation_get_embed_page_setup (GtkPrintOperation *op); GtkPageSetup *gtk_print_run_page_setup_dialog (GtkWindow *parent, GtkPageSetup *page_setup, -- cgit v1.2.1