The Gnome Chemistry Utils  0.14.0
print-setup-dlg.h
Go to the documentation of this file.
1 /*
2  * Gnome Chemistry Utils
3  * print-setup-dlg.h
4  *
5  * Copyright (C) 2008-2012 Jean Bréfort <jean.brefort@normalesup.org>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
20  * USA
21  */
22 
23 #ifndef GCU_GTK_PRINT_SETUP_DLG_H
24 #define GCU_GTK_PRINT_SETUP_DLG_H
25 
26 #include "dialog.h"
27 #include "printable.h"
28 
30 namespace gcugtk {
31 
32 class Application;
33 
37 class PrintSetupDlg: public Dialog
38 {
39 friend class PrintSetupDlgPrivate;
40 public:
47  PrintSetupDlg (Application* App, Printable *printable);
51  virtual ~PrintSetupDlg ();
52 
53 private:
54  Printable *m_Printable;
55  GtkLabel *m_PageSizeLbl, *m_PageTypeLbl;
56  GtkToggleButton *m_PortraitBtn, *m_RPortraitBtn, *m_LandscapeBtn, *m_RLandscapeBtn;
57  gulong m_PortraitId, m_RPortraitId, m_LandscapeId, m_RLandscapeId;
58  GtkSpinButton *m_MarginTopBtn, *m_MarginBottomBtn, *m_MarginRightBtn, *m_MarginLeftBtn, *m_HeaderHeightBtn, *m_FooterHeightBtn;
59  gulong m_MarginTopId, m_MarginBottomId, m_MarginRightId, m_MarginLeftId, m_HeaderHeightId, m_FooterHeightId;
60  GtkListStore *m_UnitList;
61  GtkComboBox *m_UnitBox;
62  GtkToggleButton *m_HBtn, *m_VBtn;
63  gulong m_UnitId, m_HId, m_VId;
64  GtkToggleButton *m_ScalingNoneBtn, *m_ScalingFixedBtn, *m_ScalingAutoBtn, *m_HFitBtn, *m_VFitBtn;
65  gulong m_ScalingNoneId, m_ScalingFixedId, m_ScalingAutoId, m_HFitId, m_VFitId;
66  GtkSpinButton *m_HPagesBtn, *m_VPagesBtn, *m_ScaleBtn;
67  GtkLabel *m_ScaleLbl, *m_FitHLbl, *m_FitVLbl;
68 };
69 
70 } // namespace gcugtk
71 
72 #endif // GCU_GTK_PRINT_SETUP_DLG_H