nss: upgrade to release 3.73
[LibreOffice.git] / vcl / unx / gtk3 / gtk3gtkprintwrapper.cxx
blob0066fa004cbfbf5a549bf3525541ddd87a73a8af
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <unx/gtk/gtkprintwrapper.hxx>
12 namespace vcl::unx
15 GtkPrintWrapper::GtkPrintWrapper()
19 GtkPrintWrapper::~GtkPrintWrapper()
23 bool GtkPrintWrapper::supportsPrinting() const
25 (void) this; // loplugin:staticmethods
26 return true;
29 bool GtkPrintWrapper::supportsPrintSelection() const
31 (void) this; // loplugin:staticmethods
32 return true;
35 GtkPageSetup* GtkPrintWrapper::page_setup_new() const
37 (void) this; // loplugin:staticmethods
38 return gtk_page_setup_new();
41 GtkPrintJob* GtkPrintWrapper::print_job_new(const gchar* title, GtkPrinter* printer, GtkPrintSettings* settings, GtkPageSetup* page_setup) const
43 (void) this; // loplugin:staticmethods
44 return gtk_print_job_new(title, printer, settings, page_setup);
47 void GtkPrintWrapper::print_job_send(GtkPrintJob* job, GtkPrintJobCompleteFunc callback, gpointer user_data, GDestroyNotify dnotify) const
49 (void) this; // loplugin:staticmethods
50 gtk_print_job_send(job, callback, user_data, dnotify);
53 gboolean GtkPrintWrapper::print_job_set_source_file(GtkPrintJob* job, const gchar* filename, GError** error) const
55 (void) this; // loplugin:staticmethods
56 return gtk_print_job_set_source_file(job, filename, error);
59 const gchar* GtkPrintWrapper::print_settings_get(GtkPrintSettings* settings, const gchar* key) const
61 (void) this; // loplugin:staticmethods
62 return gtk_print_settings_get(settings, key);
65 gboolean GtkPrintWrapper::print_settings_get_collate(GtkPrintSettings* settings) const
67 (void) this; // loplugin:staticmethods
68 return gtk_print_settings_get_collate(settings);
71 void GtkPrintWrapper::print_settings_set_collate(GtkPrintSettings* settings, gboolean collate) const
73 (void) this; // loplugin:staticmethods
74 gtk_print_settings_set_collate(settings, collate);
77 gint GtkPrintWrapper::print_settings_get_n_copies(GtkPrintSettings* settings) const
79 (void) this; // loplugin:staticmethods
80 return gtk_print_settings_get_n_copies(settings);
83 void GtkPrintWrapper::print_settings_set_n_copies(GtkPrintSettings* settings, gint num_copies) const
85 (void) this; // loplugin:staticmethods
86 gtk_print_settings_set_n_copies(settings, num_copies);
89 GtkPageRange* GtkPrintWrapper::print_settings_get_page_ranges(GtkPrintSettings* settings, gint* num_ranges) const
91 (void) this; // loplugin:staticmethods
92 return gtk_print_settings_get_page_ranges(settings, num_ranges);
95 void GtkPrintWrapper::print_settings_set_print_pages(GtkPrintSettings* settings, GtkPrintPages pages) const
97 (void) this; // loplugin:staticmethods
98 gtk_print_settings_set_print_pages(settings, pages);
101 GtkWidget* GtkPrintWrapper::print_unix_dialog_new() const
103 (void) this; // loplugin:staticmethods
104 return gtk_print_unix_dialog_new(nullptr, nullptr);
107 void GtkPrintWrapper::print_unix_dialog_add_custom_tab(GtkPrintUnixDialog* dialog, GtkWidget* child, GtkWidget* tab_label) const
109 (void) this; // loplugin:staticmethods
110 gtk_print_unix_dialog_add_custom_tab(dialog, child, tab_label);
113 GtkPrinter* GtkPrintWrapper::print_unix_dialog_get_selected_printer(GtkPrintUnixDialog* dialog) const
115 (void) this; // loplugin:staticmethods
116 GtkPrinter* pRet = gtk_print_unix_dialog_get_selected_printer(dialog);
117 g_object_ref(G_OBJECT(pRet));
118 return pRet;
121 void GtkPrintWrapper::print_unix_dialog_set_manual_capabilities(GtkPrintUnixDialog* dialog, GtkPrintCapabilities capabilities) const
123 (void) this; // loplugin:staticmethods
124 gtk_print_unix_dialog_set_manual_capabilities(dialog, capabilities);
127 GtkPrintSettings* GtkPrintWrapper::print_unix_dialog_get_settings(GtkPrintUnixDialog* dialog) const
129 (void) this; // loplugin:staticmethods
130 return gtk_print_unix_dialog_get_settings(dialog);
133 void GtkPrintWrapper::print_unix_dialog_set_settings(GtkPrintUnixDialog* dialog, GtkPrintSettings* settings) const
135 (void) this; // loplugin:staticmethods
136 gtk_print_unix_dialog_set_settings(dialog, settings);
139 void GtkPrintWrapper::print_unix_dialog_set_support_selection(GtkPrintUnixDialog* dialog, gboolean support_selection) const
141 (void) this; // loplugin:staticmethods
142 gtk_print_unix_dialog_set_support_selection(dialog, support_selection);
145 void GtkPrintWrapper::print_unix_dialog_set_has_selection(GtkPrintUnixDialog* dialog, gboolean has_selection) const
147 (void) this; // loplugin:staticmethods
148 gtk_print_unix_dialog_set_has_selection(dialog, has_selection);
153 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */