]> git.lyx.org Git - lyx.git/blob - src/mathed/math_defs.h
Reduce Michael's buglist.
[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_BF,
48         //
49         LM_TC_BB,
50         ///
51         LM_TC_SF,
52         ///
53         LM_TC_TT,
54         ///
55         LM_TC_IT,
56         ///
57         LM_TC_TEXTRM,
58         /// Math mode TeX characters ",;:{}"  
59         LM_TC_TEX,
60         /// Internal code when typing greek
61         LM_TC_GREEK,
62         /// Internal code when typing a single greek character
63         LM_TC_GREEK1,
64         /// Internal code for symbols
65         LM_TC_SYMB,
66         /// internal code for symbols that get bigger in displayed math
67         LM_TC_BOLDSYMB,
68         ///
69         LM_TC_CMR,
70         ///
71         LM_TC_CMSY,
72         ///
73         LM_TC_CMM,
74         ///
75         LM_TC_CMEX,
76         ///
77         LM_TC_MSA,
78         ///
79         LM_TC_MSB,
80         ///
81         LM_FONT_END,
82         
83         /// This must be < 32 
84         LM_TC_MAX
85 };
86
87
88 /// Types of lyx-math insets 
89 enum MathInsetTypes  {
90         ///
91         LM_OT_SIMPLE = 0,
92         ///
93         LM_OT_EQUATION,
94         /// 
95         LM_OT_EQNARRAY,
96         ///
97         LM_OT_ALIGN,
98         ///
99         LM_OT_ALIGNAT,
100         ///
101         LM_OT_XALIGNAT,
102         ///
103         LM_OT_XXALIGNAT,
104         ///
105         LM_OT_MULTLINE,
106         ///
107         LM_OT_GATHER,
108         /// An array
109         LM_OT_MATRIX,
110
111         /// A LaTeX macro
112         LM_OT_UNDEF,
113         ///
114         LM_OT_FUNCLIM,
115         ///
116         LM_OT_MACRO,
117         ///
118         LM_OT_MAX
119 };
120
121 #endif