add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / gtk / src / pagesetupunixdialog.hg
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 Library General Public
5  * License as published by the Free Software Foundation; either
6  * version 2 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  * Library General Public License for more details.
12  *
13  * You should have received a copy of the GNU Library General Public
14  * License along with this library; if not, write to the Free
15  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16  */
17
18 #include <gtkmm/dialog.h>
19 #include <gtkmm/pagesetup.h>
20 #include <gtkmm/printsettings.h>
21
22 _DEFS(gtkmm,gtk)
23 _PINCLUDE(gtkmm/private/dialog_p.h)
24
25 namespace Gtk
26 {
27
28 /** PageSetupUnixDialog implements a page setup dialog for platforms
29  * which don't provide a native page setup dialog, like Unix. It can
30  * be used very much like any other GTK+ dialog, at the cost of
31  * the portability offered by the high-level printing API exposed
32  * through PrintOperation.
33  *
34  * @newin2p10
35  *
36  * @ingroup Printing
37  */
38 class PageSetupUnixDialog : public Dialog
39 {
40   _CLASS_GTKOBJECT(PageSetupUnixDialog, GtkPageSetupUnixDialog, GTK_PAGE_SETUP_UNIX_DIALOG, Gtk::Dialog, GtkDialog)
41   _GTKMMPROC_WIN32_NO_WRAP
42
43 public:
44   explicit PageSetupUnixDialog(Gtk::Window& parent, const Glib::ustring& title);
45   explicit PageSetupUnixDialog(const Glib::ustring& title);
46
47   _WRAP_METHOD(void set_page_setup(const Glib::RefPtr<PageSetup>& page_setup), gtk_page_setup_unix_dialog_set_page_setup)
48   _WRAP_METHOD(Glib::RefPtr<PageSetup> get_page_setup(), gtk_page_setup_unix_dialog_get_page_setup, refreturn)
49   _WRAP_METHOD(Glib::RefPtr<const PageSetup> get_page_setup() const,
50                gtk_page_setup_unix_dialog_get_page_setup, refreturn, constversion)
51
52   _WRAP_METHOD(void set_print_settings(const Glib::RefPtr<PrintSettings>& print_settings),
53                gtk_page_setup_unix_dialog_set_print_settings)
54   _WRAP_METHOD(Glib::RefPtr<PrintSettings> get_print_settings(),
55                gtk_page_setup_unix_dialog_get_print_settings, refreturn)
56   _WRAP_METHOD(Glib::RefPtr<const PrintSettings> get_print_settings() const,
57                gtk_page_setup_unix_dialog_get_print_settings, refreturn, constversion)
58 };
59
60 } // namespace Gtk