Debian Codegraph @

gtk/src/printoperationpreview.hg

raw
1 /* Copyright (C) 2006 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 #include <glibmm/interface.h>
18
19 #include <gtkmm/pagesetup.h>
20 #include <gtkmm/printcontext.h>
21
22 _DEFS(gtkmm,gtk)
23 _PINCLUDE(glibmm/private/interface_p.h)
24
25 #ifndef DOXYGEN_SHOULD_SKIP_THIS
26 extern "C"
27 {
28 typedef struct _GtkPrintOperationPreviewIface GtkPrintOperationPreviewIface;
29 }
30 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
31
32 namespace Gtk
33 {
34
35 //TODO: There is no GtkPrintOperationPreview documentation either.
36 // See http://bugzilla.gnome.org/show_bug.cgi?id=575538
37 /**
38 * @newin{2,10}
39 *
40 * @ingroup Printing
41 */
42 class GTKMM_API PrintOperationPreview : public Glib::Interface
43 {
44 _CLASS_INTERFACE(PrintOperationPreview, GtkPrintOperationPreview, GTK_PRINT_OPERATION_PREVIEW, GtkPrintOperationPreviewIface, , , GTKMM_API)
45 public:
46
47 _WRAP_METHOD(void render_page(int page_nr), gtk_print_operation_preview_render_page)
48 _WRAP_METHOD(void end_preview(), gtk_print_operation_preview_end_preview)
49 _WRAP_METHOD(bool is_selected(int page_nr) const, gtk_print_operation_preview_is_selected)
50
51 _WRAP_VFUNC(void render_page(int page_nr), "render_page")
52 _WRAP_VFUNC(void end_preview(), "end_preview")
53 _WRAP_VFUNC(bool is_selected(int page_nr) const, "is_selected")
54
55 #m4 _CONVERSION(`GtkPageSetup*',`const Glib::RefPtr<PageSetup>&',`Glib::wrap($3, true)')
56 #m4 _CONVERSION(`const Glib::RefPtr<PageSetup>&',`GtkPageSetup*',__CONVERT_REFPTR_TO_P($3))
57
58 #m4 _CONVERSION(`GtkPrintContext*',`const Glib::RefPtr<PrintContext>&',`Glib::wrap($3, true)')
59
60 _WRAP_SIGNAL(void ready(const Glib::RefPtr<PrintContext>& context), "ready")
61 _WRAP_SIGNAL(void got_page_size(const Glib::RefPtr<PrintContext>& context, const Glib::RefPtr<PageSetup>& page_setup), "got_page_size")
62 };
63
64 } // namespace Gtk