/* Copyright (C) 2006 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ #include #include #include _DEFS(gtkmm,gtk) _PINCLUDE(glibmm/private/interface_p.h) #ifndef DOXYGEN_SHOULD_SKIP_THIS extern "C" { typedef struct _GtkPrintOperationPreviewIface GtkPrintOperationPreviewIface; } #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gtk { //TODO: There is no GtkPrintOperationPreview documentation either. // See http://bugzilla.gnome.org/show_bug.cgi?id=575538 /** * @newin{2,10} * * @ingroup Printing */ class GTKMM_API PrintOperationPreview : public Glib::Interface { _CLASS_INTERFACE(PrintOperationPreview, GtkPrintOperationPreview, GTK_PRINT_OPERATION_PREVIEW, GtkPrintOperationPreviewIface, , , GTKMM_API) public: _WRAP_METHOD(void render_page(int page_nr), gtk_print_operation_preview_render_page) _WRAP_METHOD(void end_preview(), gtk_print_operation_preview_end_preview) _WRAP_METHOD(bool is_selected(int page_nr) const, gtk_print_operation_preview_is_selected) _WRAP_VFUNC(void render_page(int page_nr), "render_page") _WRAP_VFUNC(void end_preview(), "end_preview") _WRAP_VFUNC(bool is_selected(int page_nr) const, "is_selected") #m4 _CONVERSION(`GtkPageSetup*',`const Glib::RefPtr&',`Glib::wrap($3, true)') #m4 _CONVERSION(`const Glib::RefPtr&',`GtkPageSetup*',__CONVERT_REFPTR_TO_P($3)) #m4 _CONVERSION(`GtkPrintContext*',`const Glib::RefPtr&',`Glib::wrap($3, true)') _WRAP_SIGNAL(void ready(const Glib::RefPtr& context), "ready") _WRAP_SIGNAL(void got_page_size(const Glib::RefPtr& context, const Glib::RefPtr& page_setup), "got_page_size") }; } // namespace Gtk