2 * \file FormCharacter.h
3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
6 * \author Edwin Leuven, leuven@fee.uva.nl
7 * \author Angus Leeming, a.leeming@.ac.uk
10 #ifndef FORM_CHARACTER_H
11 #define FORM_CHARACTER_H
13 #include <boost/smart_ptr.hpp>
20 #include "lyxfont.h" // for LyXFont enums
21 #include "ControlCharacter.h" // for ControlCharacter enum
22 #include "LColor.h" // for LColor enum
25 struct FD_form_character;
28 * This class provides an XForms implementation of the FormCharacter Dialog.
29 * The character dialog allows users to change the character settings
33 : public FormCB<ControlCharacter, FormDB<FD_form_character> > {
36 FormCharacter(ControlCharacter &);
45 /// Nothing to update...
46 virtual void update() {}
48 /** Callback method (used only to activate Apply button when
50 static void ComboInputCB(int, void *, Combox *);
52 /// Fdesign generated method
53 FD_form_character * build_character();
56 boost::scoped_ptr<Combox> combo_language2_;
58 std::vector<LyXFont::FONT_FAMILY> family_;
60 std::vector<LyXFont::FONT_SERIES> series_;
62 std::vector<LyXFont::FONT_SHAPE> shape_;
64 std::vector<LyXFont::FONT_SIZE> size_;
66 std::vector<ControlCharacter::FONT_STATE> bar_;
68 std::vector<LColor::color> color_;