1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/pagesetupunixdialog.h>
5 #include <gtkmm/private/pagesetupunixdialog_p.h>
8 /* Copyright (C) 2006 The gtkmm Development Team
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the Free
22 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #include <gtk/gtkpagesetupunixdialog.h>
30 PageSetupUnixDialog::PageSetupUnixDialog(Gtk::Window& parent, const Glib::ustring& title)
32 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
33 Gtk::Dialog(Glib::ConstructParams(pagesetupunixdialog_class_.init(), "title",title.c_str(), (char*) 0))
35 set_transient_for(parent);
38 PageSetupUnixDialog::PageSetupUnixDialog(const Glib::ustring& title)
40 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
41 Gtk::Dialog(Glib::ConstructParams(pagesetupunixdialog_class_.init(), "title",title.c_str(), (char*) 0))
49 } // anonymous namespace
55 Gtk::PageSetupUnixDialog* wrap(GtkPageSetupUnixDialog* object, bool take_copy)
57 return dynamic_cast<Gtk::PageSetupUnixDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
60 } /* namespace Glib */
66 /* The *_Class implementation: */
68 const Glib::Class& PageSetupUnixDialog_Class::init()
70 if(!gtype_) // create the GType if necessary
72 // Glib::Class has to know the class init function to clone custom types.
73 class_init_func_ = &PageSetupUnixDialog_Class::class_init_function;
75 // This is actually just optimized away, apparently with no harm.
76 // Make sure that the parent type has been created.
77 //CppClassParent::CppObjectType::get_type();
79 // Create the wrapper type, with the same class/instance size as the base type.
80 register_derived_type(gtk_page_setup_unix_dialog_get_type());
82 // Add derived versions of interfaces, if the C type implements any interfaces:
88 void PageSetupUnixDialog_Class::class_init_function(void* g_class, void* class_data)
90 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
91 CppClassParent::class_init_function(klass, class_data);
93 #ifdef GLIBMM_VFUNCS_ENABLED
94 #endif //GLIBMM_VFUNCS_ENABLED
96 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
97 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
100 #ifdef GLIBMM_VFUNCS_ENABLED
101 #endif //GLIBMM_VFUNCS_ENABLED
103 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
104 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
107 Glib::ObjectBase* PageSetupUnixDialog_Class::wrap_new(GObject* o)
109 return manage(new PageSetupUnixDialog((GtkPageSetupUnixDialog*)(o)));
114 /* The implementation: */
116 PageSetupUnixDialog::PageSetupUnixDialog(const Glib::ConstructParams& construct_params)
118 Gtk::Dialog(construct_params)
122 PageSetupUnixDialog::PageSetupUnixDialog(GtkPageSetupUnixDialog* castitem)
124 Gtk::Dialog((GtkDialog*)(castitem))
128 PageSetupUnixDialog::~PageSetupUnixDialog()
133 PageSetupUnixDialog::CppClassType PageSetupUnixDialog::pagesetupunixdialog_class_; // initialize static member
135 GType PageSetupUnixDialog::get_type()
137 return pagesetupunixdialog_class_.init().get_type();
140 GType PageSetupUnixDialog::get_base_type()
142 return gtk_page_setup_unix_dialog_get_type();
146 void PageSetupUnixDialog::set_page_setup(const Glib::RefPtr<PageSetup>& page_setup)
148 gtk_page_setup_unix_dialog_set_page_setup(gobj(), Glib::unwrap(page_setup));
151 Glib::RefPtr<PageSetup> PageSetupUnixDialog::get_page_setup()
154 Glib::RefPtr<PageSetup> retvalue = Glib::wrap(gtk_page_setup_unix_dialog_get_page_setup(gobj()));
156 retvalue->reference(); //The function does not do a ref for us.
161 Glib::RefPtr<const PageSetup> PageSetupUnixDialog::get_page_setup() const
163 return const_cast<PageSetupUnixDialog*>(this)->get_page_setup();
166 void PageSetupUnixDialog::set_print_settings(const Glib::RefPtr<PrintSettings>& print_settings)
168 gtk_page_setup_unix_dialog_set_print_settings(gobj(), Glib::unwrap(print_settings));
171 Glib::RefPtr<PrintSettings> PageSetupUnixDialog::get_print_settings()
174 Glib::RefPtr<PrintSettings> retvalue = Glib::wrap(gtk_page_setup_unix_dialog_get_print_settings(gobj()));
176 retvalue->reference(); //The function does not do a ref for us.
181 Glib::RefPtr<const PrintSettings> PageSetupUnixDialog::get_print_settings() const
183 return const_cast<PageSetupUnixDialog*>(this)->get_print_settings();
187 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
188 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
190 #ifdef GLIBMM_VFUNCS_ENABLED
191 #endif //GLIBMM_VFUNCS_ENABLED