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
19 #include "lyxfont.h" // for LyXFont enums
20 #include "ControlCharacter.h" // for ControlCharacter enum
21 #include "LColor.h" // for LColor enum
22 #include "character.h" // for FONT_STATE enum
24 #include <boost/scoped_ptr.hpp>
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_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 *);
58 boost::scoped_ptr<Combox> combo_language2_;
60 std::vector<LyXFont::FONT_FAMILY> family_;
62 std::vector<LyXFont::FONT_SERIES> series_;
64 std::vector<LyXFont::FONT_SHAPE> shape_;
66 std::vector<LyXFont::FONT_SIZE> size_;
68 std::vector<frnt::FONT_STATE> bar_;
70 std::vector<LColor::color> color_;
72 std::vector<string> lang_;