]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GDocument.h
some tabular fixes for the problems reported by Helge
[lyx.git] / src / frontends / gtk / GDocument.h
1 // -*- C++ -*-
2 /**
3  * \file GDocument.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \auther John Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GDOCUMENT_H
13 #define GDOCUMENT_H
14
15 #include "GViewBase.h"
16 #include "vspace.h"
17
18 #include <gtkmm.h>
19
20 #include <map>
21
22 namespace lyx {
23 namespace frontend {
24
25 class ControlDocument;
26
27 /** This class provides a gtk implementation of the document dialog.
28  */
29 class GDocument
30         : public GViewCB<ControlDocument, GViewGladeB> {
31 public:
32         GDocument(Dialog &);
33 private:
34         /// Build the dialog
35         virtual void doBuild();
36         /// Apply from dialog
37         virtual void apply();
38         /// Update the dialog
39         virtual void update();
40
41         void saveAsDefaults();
42         void resetToDefaults();
43
44         // *** Start "Document" Page ***
45         Gtk::ComboBoxText classcombo_;
46         Gtk::Entry * extraoptionsentry_;
47         Gtk::ComboBoxText psdrivercombo_;
48         Gtk::ComboBoxText fontcombo_;
49         Gtk::ComboBoxText fontsizecombo_;
50         Gtk::Adjustment * linespacingadj_;
51         Gtk::RadioButton * indentradio_;
52         Gtk::RadioButton * vspaceradio_;
53         Gtk::ComboBoxText vspacesizecombo_;
54         std::map<int, std::string> fontsizemap_;
55         std::map<int, VSpace::vspace_kind> vspacesizemap_;
56         Gtk::ComboBoxText vspaceunitcombo_;
57         Gtk::SpinButton * vspacelengthspin_;
58         Gtk::Adjustment * vspacelengthadj_;
59         void updateParagraphSeparationSensitivity();
60         // *** End "Document" Page ***
61
62 };
63
64 } // namespace frontend
65 } // namespace lyx
66
67 #endif