]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/character.h
Removed // -*- C++ -*- from all .C files!
[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 <a.leeming@ic.ac.uk>
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 /** Functions of use to the character GUI controller and view */
26 namespace character {
27         ///
28         enum FONT_STATE {
29                 ///
30                 IGNORE,
31                 ///
32                 EMPH_TOGGLE,
33                 ///
34                 UNDERBAR_TOGGLE,
35                 ///
36                 NOUN_TOGGLE,
37                 ///
38                 LATEX_TOGGLE,
39                 ///
40                 INHERIT
41         };
42
43         ///
44         typedef std::pair<string, LyXFont::FONT_FAMILY> FamilyPair;
45         ///
46         typedef std::pair<string, LyXFont::FONT_SERIES> SeriesPair;
47         ///
48         typedef std::pair<string, LyXFont::FONT_SHAPE>  ShapePair;
49         ///
50         typedef std::pair<string, LyXFont::FONT_SIZE>   SizePair;
51         ///
52         typedef std::pair<string, FONT_STATE> BarPair;
53         ///
54         typedef std::pair<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         std::vector<string> const getLanguageData();
70
71 } // namespace character
72
73 #endif // CHARACTERHELPERS