3 * \file FormCharacter.h
4 * Copyright 2001 The LyX Team.
5 * See the file COPYING.
7 * \author Edwin Leuven, leuven@fee.uva.nl
8 * \author Angus Leeming, a.leeming@ic.ac.uk
11 #ifndef FORM_CHARACTER_H
12 #define FORM_CHARACTER_H
14 #include <boost/smart_ptr.hpp>
21 #include "lyxfont.h" // for LyXFont enums
22 #include "ControlCharacter.h" // for ControlCharacter enum
23 #include "LColor.h" // for LColor enum
24 #include "character.h" // for FONT_STATE enum
27 struct FD_form_character;
30 * This class provides an XForms implementation of the Character Dialog.
31 * The character dialog allows users to change the character settings
35 : public FormCB<ControlCharacter, FormDB<FD_form_character> > {
38 FormCharacter(ControlCharacter &);
47 /// Update the dialog.
48 virtual void update();
50 /// Filter the inputs on callback from xforms
51 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
53 /** Callback method (used only to activate Apply button when
55 static void ComboInputCB(int, void *, Combox *);
57 /// Fdesign generated method
58 FD_form_character * build_character();
61 boost::scoped_ptr<Combox> combo_language2_;
63 std::vector<LyXFont::FONT_FAMILY> family_;
65 std::vector<LyXFont::FONT_SERIES> series_;
67 std::vector<LyXFont::FONT_SHAPE> shape_;
69 std::vector<LyXFont::FONT_SIZE> size_;
71 std::vector<frnt::FONT_STATE> bar_;
73 std::vector<LColor::color> color_;
75 std::vector<string> lang_;