]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/character.h
Once again the user can use the Font button on the toolbar to get the current
[lyx.git] / src / frontends / controllers / character.h
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file character.h
11  * \author Angus Leeming <a.leeming@ic.ac.uk>
12  */
13
14 #ifndef CHARACTERHELPERS_H
15 #define CHARACTERHELPERS_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "lyxfont.h"
22 #include "LColor.h"
23
24 /** Functions of use to the character GUI controller and view */
25 namespace character {
26         ///
27         enum FONT_STATE {
28                 ///
29                 IGNORE,
30                 ///
31                 EMPH_TOGGLE,
32                 ///
33                 UNDERBAR_TOGGLE,
34                 ///
35                 NOUN_TOGGLE,
36                 ///
37                 LATEX_TOGGLE,
38                 ///
39                 INHERIT
40         };
41
42         ///
43         typedef std::pair<string, LyXFont::FONT_FAMILY> FamilyPair;
44         ///
45         typedef std::pair<string, LyXFont::FONT_SERIES> SeriesPair;
46         ///
47         typedef std::pair<string, LyXFont::FONT_SHAPE>  ShapePair;
48         ///
49         typedef std::pair<string, LyXFont::FONT_SIZE>   SizePair;
50         ///
51         typedef std::pair<string, FONT_STATE> BarPair;
52         ///
53         typedef std::pair<string, LColor::color> ColorPair;
54
55         ///
56         std::vector<FamilyPair> const getFamilyData();
57         ///
58         std::vector<SeriesPair> const getSeriesData();
59         ///
60         std::vector<ShapePair>  const getShapeData();
61         ///
62         std::vector<SizePair>   const getSizeData();
63         ///
64         std::vector<BarPair>    const getBarData();
65         ///
66         std::vector<ColorPair>  const getColorData();
67         ///
68         std::vector<string> const getLanguageData();
69
70 } // namespace character
71
72 #endif // CHARACTERHELPERS