4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "GViewBase.h"
17 #include "lyxlength.h"
28 : public GViewCB<ControlBox, GViewGladeB>
33 // This dialog is instant-apply
34 virtual void apply() {}
36 virtual void update();
38 virtual void doBuild();
40 // Put strings into combo
41 void PopulateComboBox(Gtk::ComboBox * combo,
42 std::vector<std::string> const & strings);
44 // add or remove special lengths in widthunits combo
45 void setSpecial(bool ibox);
46 // only show valid inner box options
47 void updateInnerBoxCombo();
50 void onTypeComboChanged();
51 void onInnerBoxComboChanged();
52 void onAlignChanged();
53 void onHeightChanged();
54 void onWidthChanged();
56 // Some event handlers are disabled when this is true
59 // The 'type' field keys and display strings
60 std::vector<std::string> ids_;
61 std::vector<std::string> gui_names_;
63 // The special units for width and height
64 std::vector<std::string> ids_spec_;
65 std::vector<std::string> gui_names_spec_;
68 Gtk::ComboBox * typecombo_;
69 Gtk::ComboBox * innerboxcombo_;
70 Glib::RefPtr<Gtk::ListStore> innerboxstore_;
71 Gtk::ComboBox * widthunitscombo_;
72 Glib::RefPtr<Gtk::ListStore> widthunitsstore_;
73 Gtk::ComboBox * heightunitscombo_;
74 Gtk::ComboBox * boxvertcombo_;
75 Gtk::ComboBox * contentvertcombo_;
76 Gtk::ComboBox * contenthorzcombo_;
77 Gtk::SpinButton * widthspin_;
78 Gtk::SpinButton * heightspin_;
80 // Treemodel objects for use in combobox liststores
81 Gtk::TreeModelColumn<Glib::ustring> stringcol_;
82 Gtk::TreeModel::ColumnRecord cols_;
85 } // namespace frontend