]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCharacter.h
Introduce LFUN_PRINT.
[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 #include "FormDialogView.h"
17 #include "ControlCharacter.h" // for ControlCharacter enum
18
19 struct LColor_color;
20 struct FD_character;
21
22 /**
23  * This class provides an XForms implementation of the Character Dialog.
24  * The character dialog allows users to change the character settings
25  * in their documents.
26  */
27 class FormCharacter
28         : public FormController<ControlCharacter, FormView<FD_character> > {
29 public:
30         ///
31         FormCharacter(Dialog &);
32 private:
33
34         /// Apply from dialog
35         virtual void apply();
36
37         /// Build the dialog
38         virtual void build();
39
40         /// Update the dialog.
41         virtual void update();
42
43         /// Filter the inputs on callback from xforms
44         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
45
46         ///
47         std::vector<LyXFont::FONT_FAMILY>  family_;
48         ///
49         std::vector<LyXFont::FONT_SERIES>  series_;
50         ///
51         std::vector<LyXFont::FONT_SHAPE>   shape_;
52         ///
53         std::vector<LyXFont::FONT_SIZE>    size_;
54         ///
55         std::vector<frnt::FONT_STATE>      bar_;
56         ///
57         std::vector<LColor_color>            color_;
58         ///
59         std::vector<std::string>                lang_;
60 };
61
62 #endif