-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMml.h
More file actions
47 lines (40 loc) · 1.28 KB
/
Copy pathMml.h
File metadata and controls
47 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef MML_H
#define MML_H
#include <QString>
typedef QMap<QString, QString> MmlAttributeMap;
struct Mml
{
enum NodeType
{
NoNode = 0, MiNode, MnNode, MfracNode, MrowNode, MsqrtNode,
MrootNode, MsupNode, MsubNode, MsubsupNode, MoNode,
MstyleNode, TextNode, MphantomNode, MfencedNode,
MtableNode, MtrNode, MtdNode, MoverNode, MunderNode,
MunderoverNode, MerrorNode, MtextNode, MpaddedNode,
MspaceNode, MalignMarkNode, UnknownNode
};
enum MathVariant
{
NormalMV = 0x0000,
BoldMV = 0x0001,
ItalicMV = 0x0002,
DoubleStruckMV = 0x0004,
ScriptMV = 0x0008,
FrakturMV = 0x0010,
SansSerifMV = 0x0020,
MonospaceMV = 0x0040
};
enum FormType { PrefixForm, InfixForm, PostfixForm };
enum ColAlign { ColAlignLeft, ColAlignCenter, ColAlignRight };
enum RowAlign { RowAlignTop, RowAlignCenter, RowAlignBottom,
RowAlignAxis, RowAlignBaseline
};
enum FrameType { FrameNone, FrameSolid, FrameDashed };
struct FrameSpacing
{
FrameSpacing( double hor = 0.0, double ver = 0.0 )
: m_hor( hor ), m_ver( ver ) {}
double m_hor, m_ver;
};
};
#endif // MML_H