]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/character.h
fix crash due to invalidated iterator
[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 lyx {
27 namespace frontend {
28
29 ///
30 enum FONT_STATE {
31         ///
32         IGNORE,
33         ///
34         EMPH_TOGGLE,
35         ///
36         UNDERBAR_TOGGLE,
37         ///
38         NOUN_TOGGLE,
39         ///
40         INHERIT
41 };
42
43 ///
44 typedef std::pair<std::string, LyXFont::FONT_FAMILY> FamilyPair;
45 ///
46 typedef std::pair<std::string, LyXFont::FONT_SERIES> SeriesPair;
47 ///
48 typedef std::pair<std::string, LyXFont::FONT_SHAPE>  ShapePair;
49 ///
50 typedef std::pair<std::string, LyXFont::FONT_SIZE>   SizePair;
51 ///
52 typedef std::pair<std::string, FONT_STATE> BarPair;
53 ///
54 typedef std::pair<std::string, LColor_color> ColorPair;
55
56 ///
57 std::vector<FamilyPair>   const getFamilyData();
58 ///
59 std::vector<SeriesPair>   const getSeriesData();
60 ///
61 std::vector<ShapePair>    const getShapeData();
62 ///
63 std::vector<SizePair>     const getSizeData();
64 ///
65 std::vector<BarPair>      const getBarData();
66 ///
67 std::vector<ColorPair>    const getColorData();
68
69 } // namespace frontend
70 } // namespace lyx
71
72 #endif // CHARACTERHELPERS