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