| 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 <gtkmm/dialog.h> |
| 18 |
#include <gtkmm/pagesetup.h> |
| 19 |
#include <gtkmm/printsettings.h> |
| 20 |
|
| 21 |
_DEFS(gtkmm,gtk) |
| 22 |
_PINCLUDE(gtkmm/private/dialog_p.h) |
| 23 |
|
| 24 |
namespace Gtk |
| 25 |
{ |
| 26 |
|
| 27 |
/** PageSetupUnixDialog implements a page setup dialog for platforms |
| 28 |
* which don't provide a native page setup dialog, like Unix. It can |
| 29 |
* be used very much like any other GTK+ dialog, at the cost of |
| 30 |
* the portability offered by the high-level printing API exposed |
| 31 |
* through PrintOperation. |
| 32 |
* |
| 33 |
* @newin{2,10} |
| 34 |
* |
| 35 |
* @ingroup Printing |
| 36 |
*/ |
| 37 |
class GTKMM_API PageSetupUnixDialog : public Dialog |
| 38 |
{ |
| 39 |
_CLASS_GTKOBJECT(PageSetupUnixDialog, GtkPageSetupUnixDialog, GTK_PAGE_SETUP_UNIX_DIALOG, Gtk::Dialog, GtkDialog, , , GTKMM_API) |
| 40 |
_UNMANAGEABLE |
| 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 |