]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCharacter.h
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / FormCharacter.h
1 // -*- C++ -*-
2 /**
3  * \file FormCharacter.h
4  * See the file COPYING.
5  *
6  * \author Edwin Leuven
7  * \author Angus Leeming 
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef FORM_CHARACTER_H
13 #define FORM_CHARACTER_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormBase.h"
20 #include "lyxfont.h"          // for LyXFont enums
21 #include "ControlCharacter.h" // for ControlCharacter enum
22 #include "LColor.h"           // for LColor enum
23 #include "character.h"        // for FONT_STATE enum
24
25 #include <boost/scoped_ptr.hpp>
26
27 class Combox;
28 struct FD_character;
29
30 /**
31  * This class provides an XForms implementation of the Character Dialog.
32  * The character dialog allows users to change the character settings
33  * in their documents.
34  */
35 class FormCharacter
36         : public FormCB<ControlCharacter, FormDB<FD_character> > {
37 public:
38         ///
39         FormCharacter();
40 private:
41
42         /// Apply from dialog
43         virtual void apply();
44
45         /// Build the dialog
46         virtual void build();
47
48         /// Update the dialog.
49         virtual void update();
50
51         /// Filter the inputs on callback from xforms
52         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
53
54         /** Callback method (used only to activate Apply button when
55             combox is changed */
56         static void ComboInputCB(int, void *, Combox *);
57
58         ///
59         boost::scoped_ptr<Combox> combo_language2_;
60         ///
61         std::vector<LyXFont::FONT_FAMILY>  family_;
62         ///
63         std::vector<LyXFont::FONT_SERIES>  series_;
64         ///
65         std::vector<LyXFont::FONT_SHAPE>   shape_;
66         ///
67         std::vector<LyXFont::FONT_SIZE>    size_;
68         ///
69         std::vector<frnt::FONT_STATE>      bar_;
70         ///
71         std::vector<LColor::color>         color_;
72         ///
73         std::vector<string>                lang_;
74 };
75
76 #endif