Add stuff missing from yesterday's library commit.
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / pagesetupunixdialog.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3
4 #include <gtkmm/pagesetupunixdialog.h>
5 #include <gtkmm/private/pagesetupunixdialog_p.h>
6
7 // -*- c++ -*-
8 /* Copyright (C) 2006 The gtkmm Development Team
9  *
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.
14  *
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.
19  *
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.
23  */
24
25 #include <gtk/gtkpagesetupunixdialog.h>
26
27 namespace Gtk
28 {
29
30 PageSetupUnixDialog::PageSetupUnixDialog(Gtk::Window& parent, const Glib::ustring& title)
31 :
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))
34 {
35   set_transient_for(parent);
36 }
37
38 PageSetupUnixDialog::PageSetupUnixDialog(const Glib::ustring& title)
39 :
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))
42 {
43 }
44
45 } // namespace Gtk
46
47 namespace
48 {
49 } // anonymous namespace
50
51
52 namespace Glib
53 {
54
55 Gtk::PageSetupUnixDialog* wrap(GtkPageSetupUnixDialog* object, bool take_copy)
56 {
57   return dynamic_cast<Gtk::PageSetupUnixDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
58 }
59
60 } /* namespace Glib */
61
62 namespace Gtk
63 {
64
65
66 /* The *_Class implementation: */
67
68 const Glib::Class& PageSetupUnixDialog_Class::init()
69 {
70   if(!gtype_) // create the GType if necessary
71   {
72     // Glib::Class has to know the class init function to clone custom types.
73     class_init_func_ = &PageSetupUnixDialog_Class::class_init_function;
74
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();
78
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());
81
82     // Add derived versions of interfaces, if the C type implements any interfaces:
83   }
84
85   return *this;
86 }
87
88 void PageSetupUnixDialog_Class::class_init_function(void* g_class, void* class_data)
89 {
90   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
91   CppClassParent::class_init_function(klass, class_data);
92
93 #ifdef GLIBMM_VFUNCS_ENABLED
94 #endif //GLIBMM_VFUNCS_ENABLED
95
96 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
97 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
98 }
99
100 #ifdef GLIBMM_VFUNCS_ENABLED
101 #endif //GLIBMM_VFUNCS_ENABLED
102
103 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
104 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
105
106
107 Glib::ObjectBase* PageSetupUnixDialog_Class::wrap_new(GObject* o)
108 {
109   return manage(new PageSetupUnixDialog((GtkPageSetupUnixDialog*)(o)));
110
111 }
112
113
114 /* The implementation: */
115
116 PageSetupUnixDialog::PageSetupUnixDialog(const Glib::ConstructParams& construct_params)
117 :
118   Gtk::Dialog(construct_params)
119 {
120   }
121
122 PageSetupUnixDialog::PageSetupUnixDialog(GtkPageSetupUnixDialog* castitem)
123 :
124   Gtk::Dialog((GtkDialog*)(castitem))
125 {
126   }
127
128 PageSetupUnixDialog::~PageSetupUnixDialog()
129 {
130   destroy_();
131 }
132
133 PageSetupUnixDialog::CppClassType PageSetupUnixDialog::pagesetupunixdialog_class_; // initialize static member
134
135 GType PageSetupUnixDialog::get_type()
136 {
137   return pagesetupunixdialog_class_.init().get_type();
138 }
139
140 GType PageSetupUnixDialog::get_base_type()
141 {
142   return gtk_page_setup_unix_dialog_get_type();
143 }
144
145
146 void PageSetupUnixDialog::set_page_setup(const Glib::RefPtr<PageSetup>& page_setup)
147 {
148 gtk_page_setup_unix_dialog_set_page_setup(gobj(), Glib::unwrap(page_setup)); 
149 }
150
151 Glib::RefPtr<PageSetup> PageSetupUnixDialog::get_page_setup()
152 {
153
154   Glib::RefPtr<PageSetup> retvalue = Glib::wrap(gtk_page_setup_unix_dialog_get_page_setup(gobj()));
155   if(retvalue)
156     retvalue->reference(); //The function does not do a ref for us.
157   return retvalue;
158
159 }
160
161 Glib::RefPtr<const PageSetup> PageSetupUnixDialog::get_page_setup() const
162 {
163   return const_cast<PageSetupUnixDialog*>(this)->get_page_setup();
164 }
165
166 void PageSetupUnixDialog::set_print_settings(const Glib::RefPtr<PrintSettings>& print_settings)
167 {
168 gtk_page_setup_unix_dialog_set_print_settings(gobj(), Glib::unwrap(print_settings)); 
169 }
170
171 Glib::RefPtr<PrintSettings> PageSetupUnixDialog::get_print_settings()
172 {
173
174   Glib::RefPtr<PrintSettings> retvalue = Glib::wrap(gtk_page_setup_unix_dialog_get_print_settings(gobj()));
175   if(retvalue)
176     retvalue->reference(); //The function does not do a ref for us.
177   return retvalue;
178
179 }
180
181 Glib::RefPtr<const PrintSettings> PageSetupUnixDialog::get_print_settings() const
182 {
183   return const_cast<PageSetupUnixDialog*>(this)->get_print_settings();
184 }
185
186
187 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
188 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
189
190 #ifdef GLIBMM_VFUNCS_ENABLED
191 #endif //GLIBMM_VFUNCS_ENABLED
192
193
194 } // namespace Gtk
195
196