3 * \file FormCharacter.h
4 * See the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
12 #ifndef FORM_CHARACTER_H
13 #define FORM_CHARACTER_H
20 #include "lyxfont.h" // for LyXFont enums
21 #include "ControlCharacter.h" // for ControlCharacter enum
22 #include "LColor.h" // for LColor enum
23 #include "character.h" // for FONT_STATE enum
25 #include <boost/scoped_ptr.hpp>
31 * This class provides an XForms implementation of the Character Dialog.
32 * The character dialog allows users to change the character settings
36 : public FormCB<ControlCharacter, FormDB<FD_character> > {
48 /// Update the dialog.
49 virtual void update();
51 /// Filter the inputs on callback from xforms
52 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
54 /** Callback method (used only to activate Apply button when
56 static void ComboInputCB(int, void *, Combox *);
59 boost::scoped_ptr<Combox> combo_language2_;
61 std::vector<LyXFont::FONT_FAMILY> family_;
63 std::vector<LyXFont::FONT_SERIES> series_;
65 std::vector<LyXFont::FONT_SHAPE> shape_;
67 std::vector<LyXFont::FONT_SIZE> size_;
69 std::vector<frnt::FONT_STATE> bar_;
71 std::vector<LColor::color> color_;
73 std::vector<string> lang_;