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,
46 int const MATH_COLSEP = 8;
48 int const MATH_ROWSEP = 8;
53 /// Standard Math Sizes (Math mode styles)
66 /** The restrictions of a standard LaTeX math paragraph
67 allows to get a small number of text codes (<30) */
68 enum MathedTextCodes {
71 /// Open and Close group
81 /// Super and sub scripts
85 /// Editable Math Inset
87 /// Editable Text Inset
91 /// Internal code for constants
93 /// Internal code for variables
109 /// Math mode TeX characters ",;:{}"
111 /// Special characters "{}&#_%"
113 /// Internal code for operators
115 /// Internal code for symbols
124 /// This must be < 32
128 /// Defined in math_macro.C
129 std::ostream & operator<<(std::ostream &, MathedTextCodes mtc);
132 /// Types of lyx-math insets
133 enum MathedInsetTypes {
136 /// A simple paragraph
138 /// A simple numbered paragraph
140 /// A multiline paragraph
142 /// A multiline numbered paragraph
197 enum MathedBinaryTypes {
205 LMB_BOP = (LMB_RELATION | LMB_OPERATOR)
209 /// Paragraph permissions
212 /// If false can use a non-standard size
214 /// If true can insert newlines
216 /// If true can use tabs
218 /// If true can insert new columns
219 LMPF_ALLOW_NEW_COL = 8,
220 /// Smaller than current size (frac)
222 /// Script size (subscript, stackrel)