~ubuntu-branches/ubuntu/precise/gtkmm3.0/precise

« back to all changes in this revision

Viewing changes to gtk/gtkmm/pagesetupunixdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-17 00:12:44 UTC
  • Revision ID: james.westby@ubuntu.com-20110617001244-9hl5an15hiaaahi6
Tags: upstream-3.0.1
ImportĀ upstreamĀ versionĀ 3.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GTKMM_PAGESETUPUNIXDIALOG_H
 
4
#define _GTKMM_PAGESETUPUNIXDIALOG_H
 
5
 
 
6
 
 
7
#include <glibmm.h>
 
8
 
 
9
/* Copyright (C) 2006 The gtkmm Development Team
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
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.
 
24
 */
 
25
 
 
26
#include <gtkmm/dialog.h>
 
27
#include <gtkmm/pagesetup.h>
 
28
#include <gtkmm/printsettings.h>
 
29
 
 
30
 
 
31
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
32
typedef struct _GtkPageSetupUnixDialog GtkPageSetupUnixDialog;
 
33
typedef struct _GtkPageSetupUnixDialogClass GtkPageSetupUnixDialogClass;
 
34
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
35
 
 
36
 
 
37
namespace Gtk
 
38
{ class PageSetupUnixDialog_Class; } // namespace Gtk
 
39
namespace Gtk
 
40
{
 
41
 
 
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.
 
47
 *
 
48
 * @newin{2,10}
 
49
 *
 
50
 * @ingroup Printing
 
51
 */
 
52
 
 
53
class PageSetupUnixDialog : public Dialog
 
54
{
 
55
  public:
 
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 */
 
62
 
 
63
  virtual ~PageSetupUnixDialog();
 
64
 
 
65
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
66
 
 
67
private:
 
68
  friend class PageSetupUnixDialog_Class;
 
69
  static CppClassType pagesetupunixdialog_class_;
 
70
 
 
71
  // noncopyable
 
72
  PageSetupUnixDialog(const PageSetupUnixDialog&);
 
73
  PageSetupUnixDialog& operator=(const PageSetupUnixDialog&);
 
74
 
 
75
protected:
 
76
  explicit PageSetupUnixDialog(const Glib::ConstructParams& construct_params);
 
77
  explicit PageSetupUnixDialog(GtkPageSetupUnixDialog* castitem);
 
78
 
 
79
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
80
 
 
81
public:
 
82
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
83
  static GType get_type()      G_GNUC_CONST;
 
84
 
 
85
 
 
86
  static GType get_base_type() G_GNUC_CONST;
 
87
#endif
 
88
 
 
89
  ///Provides access to the underlying C GtkObject.
 
90
  GtkPageSetupUnixDialog*       gobj()       { return reinterpret_cast<GtkPageSetupUnixDialog*>(gobject_); }
 
91
 
 
92
  ///Provides access to the underlying C GtkObject.
 
93
  const GtkPageSetupUnixDialog* gobj() const { return reinterpret_cast<GtkPageSetupUnixDialog*>(gobject_); }
 
94
 
 
95
 
 
96
public:
 
97
  //C++ methods used to invoke GTK+ virtual functions:
 
98
 
 
99
protected:
 
100
  //GTK+ Virtual Functions (override these to change behaviour):
 
101
 
 
102
  //Default Signal Handlers::
 
103
 
 
104
 
 
105
private:
 
106
 
 
107
  
 
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
 
111
 
 
112
 
 
113
public:
 
114
  explicit PageSetupUnixDialog(Gtk::Window& parent, const Glib::ustring& title);
 
115
  explicit PageSetupUnixDialog(const Glib::ustring& title);
 
116
 
 
117
  
 
118
  /** Sets the Gtk::PageSetup from which the page setup
 
119
   * dialog takes its values.
 
120
   * 
 
121
   * @newin{2,10}
 
122
   * @param page_setup A Gtk::PageSetup.
 
123
   */
 
124
  void set_page_setup(const Glib::RefPtr<PageSetup>& page_setup);
 
125
  
 
126
  /** Gets the currently selected page setup from the dialog. 
 
127
   * 
 
128
   * @newin{2,10}
 
129
   * @return The current page setup.
 
130
   */
 
131
  Glib::RefPtr<PageSetup> get_page_setup();
 
132
  
 
133
  /** Gets the currently selected page setup from the dialog. 
 
134
   * 
 
135
   * @newin{2,10}
 
136
   * @return The current page setup.
 
137
   */
 
138
  Glib::RefPtr<const PageSetup> get_page_setup() const;
 
139
 
 
140
  
 
141
  /** Sets the Gtk::PrintSettings from which the page setup dialog
 
142
   * takes its values.
 
143
   * 
 
144
   * @newin{2,10}
 
145
   * @param print_settings A Gtk::PrintSettings.
 
146
   */
 
147
  void set_print_settings(const Glib::RefPtr<PrintSettings>& print_settings);
 
148
  
 
149
  /** Gets the current print settings from the dialog.
 
150
   * 
 
151
   * @newin{2,10}
 
152
   * @return The current print settings.
 
153
   */
 
154
  Glib::RefPtr<PrintSettings> get_print_settings();
 
155
  
 
156
  /** Gets the current print settings from the dialog.
 
157
   * 
 
158
   * @newin{2,10}
 
159
   * @return The current print settings.
 
160
   */
 
161
  Glib::RefPtr<const PrintSettings> get_print_settings() const;
 
162
 
 
163
 
 
164
};
 
165
 
 
166
} // namespace Gtk
 
167
 
 
168
 
 
169
namespace Glib
 
170
{
 
171
  /** A Glib::wrap() method for this object.
 
172
   * 
 
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.
 
176
   *
 
177
   * @relates Gtk::PageSetupUnixDialog
 
178
   */
 
179
  Gtk::PageSetupUnixDialog* wrap(GtkPageSetupUnixDialog* object, bool take_copy = false);
 
180
} //namespace Glib
 
181
 
 
182
 
 
183
#endif /* _GTKMM_PAGESETUPUNIXDIALOG_H */
 
184