]> git.lyx.org Git - lyx.git/blob - src/mathed/math_defs.h
support for fraktur font in mathed
[lyx.git] / src / mathed / math_defs.h
1 // -*- C++ -*-
2 /*
3  *  File:        math_defs.h
4  *  Purpose:     Math editor definitions 
5  *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx> 
6  *  Created:     January 1996
7  *  Description: Math paragraph and objects for a WYSIWYG math editor.
8  *
9  *  Dependencies: Xlib
10  *
11  *  Copyright: 1996, 1997 Alejandro Aguilar Sierra
12  *
13  *   Version: 0.8beta, Math & Lyx project.
14  *
15  *   You are free to use and modify this code under the terms of
16  *   the GNU General Public Licence version 2 or later.
17  * 
18  */
19
20 #ifndef MATH_DEFS
21 #define MATH_DEFS
22
23 #ifdef __GNUG__
24 #pragma interface
25 #endif
26
27
28 /** The restrictions of a standard LaTeX math paragraph
29   allows to get a small number of text codes (<30) */
30 enum MathTextCodes  {
31         /// This must be >= 0
32         LM_TC_MIN = 0,
33         /// Math Inset
34         LM_TC_INSET,
35
36         ///
37         LM_FONT_BEGIN,
38         /// Internal code for variables
39         LM_TC_VAR,
40         ///
41         LM_TC_CONST,
42         ///
43         LM_TC_RM,
44         ///
45         LM_TC_CAL,
46         ///
47         LM_TC_EUFRAK,
48         ///
49         LM_TC_BF,
50         //
51         LM_TC_BB,
52         ///
53         LM_TC_SF,
54         ///
55         LM_TC_TT,
56         ///
57         LM_TC_IT,
58         ///
59         LM_TC_TEXTRM,
60         /// Math mode TeX characters ",;:{}"  
61         LM_TC_TEX,
62         /// Internal code when typing greek
63         LM_TC_GREEK,
64         /// Internal code when typing a single greek character
65         LM_TC_GREEK1,
66         /// Internal code for symbols
67         LM_TC_SYMB,
68         /// internal code for symbols that get bigger in displayed math
69         LM_TC_BOLDSYMB,
70         ///
71         LM_TC_CMR,
72         ///
73         LM_TC_CMSY,
74         ///
75         LM_TC_CMM,
76         ///
77         LM_TC_CMEX,
78         ///
79         LM_TC_MSA,
80         ///
81         LM_TC_MSB,
82         ///
83         LM_FONT_END,
84         
85         /// This must be < 32 
86         LM_TC_MAX
87 };
88
89
90 /// Types of lyx-math insets 
91 enum MathInsetTypes  {
92         ///
93         LM_OT_SIMPLE = 0,
94         ///
95         LM_OT_EQUATION,
96         /// 
97         LM_OT_EQNARRAY,
98         ///
99         LM_OT_ALIGN,
100         ///
101         LM_OT_ALIGNAT,
102         ///
103         LM_OT_XALIGNAT,
104         ///
105         LM_OT_XXALIGNAT,
106         ///
107         LM_OT_MULTLINE,
108         ///
109         LM_OT_GATHER,
110         /// An array
111         LM_OT_MATRIX,
112
113         /// A LaTeX macro
114         LM_OT_UNDEF,
115         ///
116         LM_OT_FUNCLIM,
117         ///
118         LM_OT_MACRO,
119         ///
120         LM_OT_MAX
121 };
122
123 #endif