]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/character.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[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 #include "LColor.h"
18
19 #include <utility>
20 #include <vector>
21
22 /** Functions of use to the character GUI controller and view */
23 namespace frnt {
24
25 ///
26 enum FONT_STATE {
27         ///
28         IGNORE,
29         ///
30         EMPH_TOGGLE,
31         ///
32         UNDERBAR_TOGGLE,
33         ///
34         NOUN_TOGGLE,
35         ///
36         INHERIT
37 };
38
39 ///
40 typedef std::pair<string, LyXFont::FONT_FAMILY> FamilyPair;
41 ///
42 typedef std::pair<string, LyXFont::FONT_SERIES> SeriesPair;
43 ///
44 typedef std::pair<string, LyXFont::FONT_SHAPE>  ShapePair;
45 ///
46 typedef std::pair<string, LyXFont::FONT_SIZE>   SizePair;
47 ///
48 typedef std::pair<string, FONT_STATE> BarPair;
49 ///
50 typedef std::pair<string, LColor::color> ColorPair;
51
52 ///
53 std::vector<FamilyPair>   const getFamilyData();
54 ///
55 std::vector<SeriesPair>   const getSeriesData();
56 ///
57 std::vector<ShapePair>    const getShapeData();
58 ///
59 std::vector<SizePair>     const getSizeData();
60 ///
61 std::vector<BarPair>      const getBarData();
62 ///
63 std::vector<ColorPair>    const getColorData();
64
65 } // namespace frnt
66
67 #endif // CHARACTERHELPERS