2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _GTKMM_PAGESETUPUNIXDIALOG_H
4
#define _GTKMM_PAGESETUPUNIXDIALOG_H
9
/* Copyright (C) 2006 The gtkmm Development Team
11
* This library is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU Lesser General Public
13
* License as published by the Free Software Foundation; either
14
* version 2.1 of the License, or (at your option) any later version.
16
* This library is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Lesser General Public License for more details.
21
* You should have received a copy of the GNU Lesser General Public
22
* License along with this library; if not, write to the Free
23
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
#include <gtkmm/dialog.h>
27
#include <gtkmm/pagesetup.h>
28
#include <gtkmm/printsettings.h>
31
#ifndef DOXYGEN_SHOULD_SKIP_THIS
32
typedef struct _GtkPageSetupUnixDialog GtkPageSetupUnixDialog;
33
typedef struct _GtkPageSetupUnixDialogClass GtkPageSetupUnixDialogClass;
34
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
38
{ class PageSetupUnixDialog_Class; } // namespace Gtk
42
/** PageSetupUnixDialog implements a page setup dialog for platforms
43
* which don't provide a native page setup dialog, like Unix. It can
44
* be used very much like any other GTK+ dialog, at the cost of
45
* the portability offered by the high-level printing API exposed
46
* through PrintOperation.
53
class PageSetupUnixDialog : public Dialog
56
#ifndef DOXYGEN_SHOULD_SKIP_THIS
57
typedef PageSetupUnixDialog CppObjectType;
58
typedef PageSetupUnixDialog_Class CppClassType;
59
typedef GtkPageSetupUnixDialog BaseObjectType;
60
typedef GtkPageSetupUnixDialogClass BaseClassType;
61
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
63
virtual ~PageSetupUnixDialog();
65
#ifndef DOXYGEN_SHOULD_SKIP_THIS
68
friend class PageSetupUnixDialog_Class;
69
static CppClassType pagesetupunixdialog_class_;
72
PageSetupUnixDialog(const PageSetupUnixDialog&);
73
PageSetupUnixDialog& operator=(const PageSetupUnixDialog&);
76
explicit PageSetupUnixDialog(const Glib::ConstructParams& construct_params);
77
explicit PageSetupUnixDialog(GtkPageSetupUnixDialog* castitem);
79
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
82
#ifndef DOXYGEN_SHOULD_SKIP_THIS
83
static GType get_type() G_GNUC_CONST;
86
static GType get_base_type() G_GNUC_CONST;
89
///Provides access to the underlying C GtkObject.
90
GtkPageSetupUnixDialog* gobj() { return reinterpret_cast<GtkPageSetupUnixDialog*>(gobject_); }
92
///Provides access to the underlying C GtkObject.
93
const GtkPageSetupUnixDialog* gobj() const { return reinterpret_cast<GtkPageSetupUnixDialog*>(gobject_); }
97
//C++ methods used to invoke GTK+ virtual functions:
100
//GTK+ Virtual Functions (override these to change behaviour):
102
//Default Signal Handlers::
108
//This is not available in on Win32.
109
//This source file will not be compiled,
110
//and the class will not be registered in wrap_init.h or wrap_init.cc
114
explicit PageSetupUnixDialog(Gtk::Window& parent, const Glib::ustring& title);
115
explicit PageSetupUnixDialog(const Glib::ustring& title);
118
/** Sets the Gtk::PageSetup from which the page setup
119
* dialog takes its values.
122
* @param page_setup A Gtk::PageSetup.
124
void set_page_setup(const Glib::RefPtr<PageSetup>& page_setup);
126
/** Gets the currently selected page setup from the dialog.
129
* @return The current page setup.
131
Glib::RefPtr<PageSetup> get_page_setup();
133
/** Gets the currently selected page setup from the dialog.
136
* @return The current page setup.
138
Glib::RefPtr<const PageSetup> get_page_setup() const;
141
/** Sets the Gtk::PrintSettings from which the page setup dialog
145
* @param print_settings A Gtk::PrintSettings.
147
void set_print_settings(const Glib::RefPtr<PrintSettings>& print_settings);
149
/** Gets the current print settings from the dialog.
152
* @return The current print settings.
154
Glib::RefPtr<PrintSettings> get_print_settings();
156
/** Gets the current print settings from the dialog.
159
* @return The current print settings.
161
Glib::RefPtr<const PrintSettings> get_print_settings() const;
171
/** A Glib::wrap() method for this object.
173
* @param object The C instance.
174
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
175
* @result A C++ instance that wraps this C instance.
177
* @relates Gtk::PageSetupUnixDialog
179
Gtk::PageSetupUnixDialog* wrap(GtkPageSetupUnixDialog* object, bool take_copy = false);
183
#endif /* _GTKMM_PAGESETUPUNIXDIALOG_H */