summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/gtk
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-19 11:23:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-19 18:24:25 +0100
commit750d96706c36824e599113a70f5741753edcede8 (patch)
treeec3645074dfaff96d434df5cf312fc51f9c34d58 /vcl/inc/unx/gtk
parent83f92f0c567ddba9715b2a48836fae78144aa0fd (diff)
loplugin:unusedmethods
GtkPrintWrapper stuff is dead since commit ed07ec7606cb24cccaf6b7b81b2bd308debaa2e6 drop never completed GtkSalPrinter Change-Id: Ia42e9bca020a9683ba247d466f743a0018e920f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109618 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/unx/gtk')
-rw-r--r--vcl/inc/unx/gtk/gtkinst.hxx6
-rw-r--r--vcl/inc/unx/gtk/gtkprintwrapper.hxx66
2 files changed, 0 insertions, 72 deletions
diff --git a/vcl/inc/unx/gtk/gtkinst.hxx b/vcl/inc/unx/gtk/gtkinst.hxx
index 3095e80144b3..6d88211fdc44 100644
--- a/vcl/inc/unx/gtk/gtkinst.hxx
+++ b/vcl/inc/unx/gtk/gtkinst.hxx
@@ -38,8 +38,6 @@
#include <vcl/weldutils.hxx>
#include <gtk/gtk.h>
-namespace vcl::unx { class GtkPrintWrapper; }
-
vcl::Font pango_to_vcl(const PangoFontDescription* font, const css::lang::Locale& rLocale);
class GenPspGraphics;
@@ -240,8 +238,6 @@ public:
void RemoveTimer ();
- std::shared_ptr<vcl::unx::GtkPrintWrapper> const & getPrintWrapper() const;
-
void* CreateGStreamerSink(const SystemChildWindow*) override;
private:
@@ -250,8 +246,6 @@ private:
bool IsTimerExpired();
bool bNeedsInit;
cairo_font_options_t* m_pLastCairoFontOptions;
-
- mutable std::shared_ptr<vcl::unx::GtkPrintWrapper> m_xPrintWrapper;
};
class SalGtkXWindow final : public weld::TransportAsXWindow
diff --git a/vcl/inc/unx/gtk/gtkprintwrapper.hxx b/vcl/inc/unx/gtk/gtkprintwrapper.hxx
deleted file mode 100644
index 8b09c95281bd..000000000000
--- a/vcl/inc/unx/gtk/gtkprintwrapper.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#ifndef INCLUDED_VCL_UNX_GTK_INC_GTKPRINTWRAPPER_HXX
-#define INCLUDED_VCL_UNX_GTK_INC_GTKPRINTWRAPPER_HXX
-
-#include <gtk/gtk.h>
-
-#include <gtk/gtkunixprint.h>
-
-#include <osl/module.hxx>
-#include <sal/types.h>
-
-namespace vcl::unx
-{
-
-class GtkPrintWrapper
-{
-private:
- GtkPrintWrapper(const GtkPrintWrapper&) = delete;
- GtkPrintWrapper& operator=(const GtkPrintWrapper&) = delete;
-public:
- GtkPrintWrapper();
- ~GtkPrintWrapper();
-
- bool supportsPrinting() const;
- bool supportsPrintSelection() const;
-
- // general printing support, since 2.10.0
- GtkPageSetup* page_setup_new() const;
-
- GtkPrintJob* print_job_new(const gchar* title, GtkPrinter* printer, GtkPrintSettings* settings, GtkPageSetup* page_setup) const;
- void print_job_send(GtkPrintJob* job, GtkPrintJobCompleteFunc callback, gpointer user_data, GDestroyNotify dnotify) const;
- gboolean print_job_set_source_file(GtkPrintJob* job, const gchar* filename, GError** error) const;
-
- const gchar* print_settings_get(GtkPrintSettings* settings, const gchar* key) const;
- gboolean print_settings_get_collate(GtkPrintSettings* settings) const;
- void print_settings_set_collate(GtkPrintSettings* settings, gboolean collate) const;
- gint print_settings_get_n_copies(GtkPrintSettings* settings) const;
- void print_settings_set_n_copies(GtkPrintSettings* settings, gint num_copies) const;
- GtkPageRange* print_settings_get_page_ranges(GtkPrintSettings* settings, gint* num_ranges) const;
- void print_settings_set_print_pages(GtkPrintSettings* settings, GtkPrintPages pages) const;
-
- GtkWidget* print_unix_dialog_new() const;
- void print_unix_dialog_add_custom_tab(GtkPrintUnixDialog* dialog, GtkWidget* child, GtkWidget* tab_label) const;
- GtkPrinter* print_unix_dialog_get_selected_printer(GtkPrintUnixDialog* dialog) const;
- void print_unix_dialog_set_manual_capabilities(GtkPrintUnixDialog* dialog, GtkPrintCapabilities capabilities) const;
- GtkPrintSettings* print_unix_dialog_get_settings(GtkPrintUnixDialog* dialog) const;
- void print_unix_dialog_set_settings(GtkPrintUnixDialog* dialog, GtkPrintSettings* settings) const;
-
- // print selection support, since 2.17.4
- void print_unix_dialog_set_support_selection(GtkPrintUnixDialog* dialog, gboolean support_selection) const;
- void print_unix_dialog_set_has_selection(GtkPrintUnixDialog* dialog, gboolean has_selection) const;
-};
-
-}
-
-#endif // INCLUDED_VCL_UNX_GTK_INC_GTKPRINTWRAPPER_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */