![]() |
![]() |
It can be used very much like any other GTK+ dialog, at the cost of the portability offered by the high-level printing API exposed through PrintOperation.
In order to print something with PrintUnixDialog, you need to use get_selected_printer() to obtain a Printer object and use it to construct a PrintJob using PrintJob::create().
PrintUnixDialog uses the following response values:
Public Member Functions | |
void | add_custom_tab (const Widget& child, const Widget& tab_label) |
void | add_custom_tab (const Widget& child, const Glib::ustring& tab_label) |
int | get_current_page () const |
Glib::RefPtr<const PageSetup> | get_page_setup () const |
Glib::RefPtr<PageSetup> | get_page_setup () |
Glib::RefPtr<const Printer> | get_selected_printer () const |
Glib::RefPtr<Printer> | get_selected_printer () |
Glib::RefPtr<const PrintSettings> | get_settings () const |
Glib::RefPtr<PrintSettings> | get_settings () |
Gets the settings object holding the settings (global property settings, RC file information, etc) used for this widget. | |
const GtkPrintUnixDialog* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkPrintUnixDialog* | gobj () |
Provides access to the underlying C GtkObject. | |
PrintUnixDialog (const Glib::ustring& title) | |
PrintUnixDialog (Gtk::Window& parent, const Glib::ustring& title) | |
Glib::PropertyProxy_ReadOnly< int > | property_current_page () const |
The current page in the document. | |
Glib::PropertyProxy<int> | property_current_page () |
The current page in the document. | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<PageSetup >> | property_page_setup () const |
The GtkPageSetup to use. | |
Glib::PropertyProxy< Glib::RefPtr< PageSetup > > | property_page_setup () |
The GtkPageSetup to use. | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<PrintSettings >> | property_print_settings () const |
The GtkPrintSettings used for initializing the dialog. | |
Glib::PropertyProxy< Glib::RefPtr< PrintSettings > > | property_print_settings () |
The GtkPrintSettings used for initializing the dialog. | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Printer >> | property_selected_printer () const |
The GtkPrinter which is selected. | |
void | set_current_page (int current_page) |
void | set_manual_capabilities (PrintCapabilities capabilities) |
void | set_page_setup (const Glib::RefPtr<PageSetup>& page_setup) |
void | set_settings (const Glib::RefPtr<PrintSettings>& print_settings) |
virtual | ~PrintUnixDialog () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::PrintUnixDialog* | wrap (GtkPrintUnixDialog* object, bool take_copy=false) |
virtual Gtk::PrintUnixDialog::~PrintUnixDialog | ( | ) | [virtual] |
Gtk::PrintUnixDialog::PrintUnixDialog | ( | Gtk::Window& | parent, | |
const Glib::ustring & | title | |||
) | [explicit] |
Gtk::PrintUnixDialog::PrintUnixDialog | ( | const Glib::ustring & | title | ) | [explicit] |
void Gtk::PrintUnixDialog::add_custom_tab | ( | const Widget& | child, | |
const Glib::ustring & | tab_label | |||
) |
int Gtk::PrintUnixDialog::get_current_page | ( | ) | const |
Glib::RefPtr<const PageSetup> Gtk::PrintUnixDialog::get_page_setup | ( | ) | const |
Glib::RefPtr<PageSetup> Gtk::PrintUnixDialog::get_page_setup | ( | ) |
Glib::RefPtr<const Printer> Gtk::PrintUnixDialog::get_selected_printer | ( | ) | const |
Glib::RefPtr<Printer> Gtk::PrintUnixDialog::get_selected_printer | ( | ) |
Glib::RefPtr<const PrintSettings> Gtk::PrintUnixDialog::get_settings | ( | ) | const |
Glib::RefPtr<PrintSettings> Gtk::PrintUnixDialog::get_settings | ( | ) |
Gets the settings object holding the settings (global property settings, RC file information, etc) used for this widget.
Note that this function can only be called when the Gtk::Widget is attached to a toplevel, since the settings object is specific to a particular Gdk::Screen.
Reimplemented from Gtk::Widget.
const GtkPrintUnixDialog* Gtk::PrintUnixDialog::gobj | ( | ) | const [inline] |
GtkPrintUnixDialog* Gtk::PrintUnixDialog::gobj | ( | ) | [inline] |
Glib::PropertyProxy_ReadOnly<int> Gtk::PrintUnixDialog::property_current_page | ( | ) | const |
The current page in the document.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<int> Gtk::PrintUnixDialog::property_current_page | ( | ) |
The current page in the document.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<Glib::RefPtr<PageSetup>> Gtk::PrintUnixDialog::property_page_setup | ( | ) | const |
The GtkPageSetup to use.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<Glib::RefPtr<PageSetup>> Gtk::PrintUnixDialog::property_page_setup | ( | ) |
The GtkPageSetup to use.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<Glib::RefPtr<PrintSettings>> Gtk::PrintUnixDialog::property_print_settings | ( | ) | const |
The GtkPrintSettings used for initializing the dialog.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<Glib::RefPtr<PrintSettings>> Gtk::PrintUnixDialog::property_print_settings | ( | ) |
The GtkPrintSettings used for initializing the dialog.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<Glib::RefPtr<Printer>> Gtk::PrintUnixDialog::property_selected_printer | ( | ) | const |
The GtkPrinter which is selected.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void Gtk::PrintUnixDialog::set_current_page | ( | int | current_page | ) |
void Gtk::PrintUnixDialog::set_manual_capabilities | ( | PrintCapabilities | capabilities | ) |
void Gtk::PrintUnixDialog::set_page_setup | ( | const Glib::RefPtr<PageSetup>& | page_setup | ) |
void Gtk::PrintUnixDialog::set_settings | ( | const Glib::RefPtr<PrintSettings>& | print_settings | ) |
Gtk::PrintUnixDialog* wrap | ( | GtkPrintUnixDialog * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |