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