3 * \file FormCharacter.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS
13 #ifndef FORM_CHARACTER_H
14 #define FORM_CHARACTER_H
17 #include "FormDialogView.h"
18 #include "lyxfont.h" // for LyXFont enums
19 #include "ControlCharacter.h" // for ControlCharacter enum
20 #include "LColor.h" // for LColor enum
21 #include "character.h" // for FONT_STATE enum
23 #include <boost/scoped_ptr.hpp>
29 * This class provides an XForms implementation of the Character Dialog.
30 * The character dialog allows users to change the character settings
34 : public FormController<ControlCharacter, FormView<FD_character> > {
37 FormCharacter(Dialog &);
46 /// Update the dialog.
47 virtual void update();
49 /// Filter the inputs on callback from xforms
50 virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
52 /** Callback method (used only to activate Apply button when
54 static void ComboInputCB(int, void *, Combox *);
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<frnt::FONT_STATE> bar_;
69 std::vector<LColor::color> color_;
71 std::vector<string> lang_;