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