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@.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
26 struct FD_form_character;
29 * This class provides an XForms implementation of the FormCharacter Dialog.
30 * The character dialog allows users to change the character settings
34 : public FormCB<ControlCharacter, FormDB<FD_form_character> > {
37 FormCharacter(ControlCharacter &);
46 /// Nothing to update...
47 virtual void update() {}
49 /** Callback method (used only to activate Apply button when
51 static void ComboInputCB(int, void *, Combox *);
53 /// Type definition from the fdesign produced header file.
54 FD_form_character * build_character();
57 boost::scoped_ptr<Combox> combo_language2_;
59 std::vector<LyXFont::FONT_FAMILY> family_;
61 std::vector<LyXFont::FONT_SERIES> series_;
63 std::vector<LyXFont::FONT_SHAPE> shape_;
65 std::vector<LyXFont::FONT_SIZE> size_;
67 std::vector<ControlCharacter::FONT_STATE> bar_;
69 std::vector<LColor::color> color_;