]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/character.h
5 new lfuns, move all apply code out of ControlDocument and into the core.
[lyx.git] / src / frontends / controllers / character.h
1 // -*- C++ -*-
2 /**
3  * \file character.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CHARACTERHELPERS_H
13 #define CHARACTERHELPERS_H
14
15
16 #include "lyxfont.h"
17
18 #include <utility>
19 #include <vector>
20
21
22 class LColor_color;
23
24
25 /** Functions of use to the character GUI controller and view */
26 namespace frnt {
27
28 ///
29 enum FONT_STATE {
30         ///
31         IGNORE,
32         ///
33         EMPH_TOGGLE,
34         ///
35         UNDERBAR_TOGGLE,
36         ///
37         NOUN_TOGGLE,
38         ///
39         INHERIT
40 };
41
42 ///
43 typedef std::pair<std::string, LyXFont::FONT_FAMILY> FamilyPair;
44 ///
45 typedef std::pair<std::string, LyXFont::FONT_SERIES> SeriesPair;
46 ///
47 typedef std::pair<std::string, LyXFont::FONT_SHAPE>  ShapePair;
48 ///
49 typedef std::pair<std::string, LyXFont::FONT_SIZE>   SizePair;
50 ///
51 typedef std::pair<std::string, FONT_STATE> BarPair;
52 ///
53 typedef std::pair<std::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 } // namespace frnt
69
70 #endif // CHARACTERHELPERS