ruby-****@sourc*****
ruby-****@sourc*****
2006年 7月 9日 (日) 17:51:44 JST
------------------------- REMOTE_ADDR = 138.243.201.10 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = /hiki.cgi?Gtk%3A%3APrintUnixDialog ------------------------- TITLE = Gtk::PrintUnixDialog KEYWORD = = class Gtk::PrintUnixDialog Gtk::PrintUnixDialog implements a print dialog for platforms which don't provide a native print dialog, like Unix. It can be used very much like any other GTK+ dialog, at the cost of the portability offered by ((<Gtk::PrintOperation>)) In order to print something with Gtk::PrintUnixDialog, you need to use Gtk::PrintUnixDialog#selected_printer to obtain a Gtk::Printer object and use it to construct a Gtk::PrintJob using Gtk::PrintJob.new. Gtk:PrintUnixDialog uses the following response values: * Gtk::Dialog::RESPONSE_OK: for the "Print" button * Gtk::Dialog::RESPONSE_APPLY: for the "Preview" button * Gtk::Dialog::RESPONSE_CANCEL: for the "Cancel" button == Object Hierarchy * Object * GLib::Instantiatable * GLib::Object * GLib::InitiallyUnowned * Gtk::Object * Gtk::Widget * Gtk::Container * Gtk::Bin * Gtk::Window * Gtk::Dialog * Gtk::PrintUnixDialog == Class Methods --- Gtk::PrintUnixDialog.new(title=nil, parent=nil) Creates a new #GtkPrintUnixDialog. * title: Title of the dialog, or nil * parent: Transient parent of the dialog, or nil * Returns: a new Gtk::PrintUnixDialog == Instance Methods --- add_custom_tab(child, tab_label) Adds a custom tab to the print dialog. * child: the widget to put in the custom tab * tab_label: the widget to use as tab label --- manual_capability=(capabilities) This lets you specify the printing capabilities your application supports. For instance, if you can handle scaling the output then you pass Gtk::PrintCapability::SCALE. If you don't pass that, then the dialog will only let you select the scale if the printing system automatically handles scaling. * capabilities: the printing capabilities of your application --- set_manual_capability(capabilities) Same as #manual_capabilities=. * Returns: self --- settings Gets a new Gtk::PrintSettings object that represents the current values in the print dialog. Note that this creates a ((*new object*)). * Returns: a new Gtk::PrintSettings object with the values from self --- settings=(settings) Sets the Gtk::PrintSettings for the Gtk::PrintUnixDialog. Typically, this is used to restore saved print settings from a previous print operation before the print dialog is shown. * settings: a Gtk#PrintSettings, or nil --- set_settings(settings) Same as #settings=. * Returns: self --- current_page Gets the current page in the document. * Returns: The current page in the document --- current_page=(current_page) Sets the current page in the document. * current_page: The current page in the document * Returns: current_page --- set_current_page(current_page) Same as current_page=. * current_page: The current page in the document * Returns: self --- page_setup Gets the Gtk::PageSetup to use. * Returns: The Gtk::PageSetup to use --- page_setup=(page_setup) Sets the Gtk::PageSetup to use. * page_setup: The Gtk::PageSetup to use * Returns: page_setup --- set_page_setup(page_setup) Same as page_setup=. * page_setup: The Gtk::PageSetup to use * Returns: self --- print_settings Gets the Gtk::PrintSettings used for initializing the dialog. * Returns: The Gtk::PrintSettings used for initializing the dialog --- print_settings=(print_settings) Sets the Gtk::PrintSettings used for initializing the dialog. * print_settings: The Gtk::PrintSettings used for initializing the dialog * Returns: print_settings --- set_print_settings(print_settings) Same as print_settings=. * print_settings: The Gtk::PrintSettings used for initializing the dialog * Returns: self --- selected_printer Gets the Gtk::Printer which is selected. * Returns: The Gtk::Printer which is selected == Properties --- current-page: Integer (Read/Write) The current page in the document --- page-setup: Gtk::PageSetup (Read/Write) The Gtk::PageSetup to use --- print-settings: Gtk::PrintSettings (Read/Write) The Gtk::PrintSettings used for initializing the dialog --- selected-printer: Gtk::Printer (Read) The Gtk::Printer which is selected == See Also == ChangeLog * 2006-07-09: updated for 2.10. - ((<kou>)) - ((<kou>))