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.
11 * Copyright: 1996, 1997 Alejandro Aguilar Sierra
13 * Version: 0.8beta, Mathed & Lyx project.
15 * You are free to use and modify this code under the terms of
16 * the GNU General Public Licence version 2 or later.
38 MATH_ALIGN_BOTTOM = 4,
43 static int const MATH_COLSEP = 8;
45 static int const MATH_ROWSEP = 8;
48 /// Standard Math Sizes (Math mode styles)
61 /** The restrictions of a standard LaTeX math paragraph
62 allows to get a small number of text codes (<30) */
63 enum MathedTextCodes {
66 /// Open and Close group
76 /// Super and sub scripts
80 /// Editable Math Inset
82 /// Editable Text Inset
86 /// Internal code for constants
88 /// Internal code for variables
104 /// Math mode TeX characters ",;:{}"
106 /// Special characters "{}&#_%"
108 /// Internal code for operators
110 /// Internal code for symbols
119 /// This must be < 32
124 std::ostream & operator<<(std::ostream &, MathedTextCodes mtc);
127 /// Types of lyx-math insets
128 enum MathedInsetTypes {
131 /// A simple paragraph
133 /// A simple numbered paragraph
135 /// A multiline paragraph
137 /// A multiline numbered paragraph
192 enum MathedBinaryTypes {
200 LMB_BOP = (LMB_RELATION | LMB_OPERATOR)
204 /// Paragraph permissions
207 /// If false can use a non-standard size
209 /// If true can insert newlines
211 /// If true can use tabs
213 /// If true can insert new columns
214 LMPF_ALLOW_NEW_COL = 8,
215 /// Smaller than current size (frac)
217 /// Script size (subscript, stackrel)