version 1.211, 2005/11/18 09:24:30
|
version 1.212, 2006/01/02 11:57:20
|
Line 2031 ThotBool ChildOfMRowOrInferred (Ele
|
Line 2031 ThotBool ChildOfMRowOrInferred (Ele
|
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
CheckFence |
CheckFence |
If el is a MO element of a fence, |
If el is a MO element or a fence, |
if it's a child of a MROW (or equivalent) element and if it contains |
if it's a child of a MROW (or equivalent) element and if it contains |
a single fence character, transform the MO into a MF and the fence |
a single fence character, transform the MO into a MF and the fence |
character into a Thot stretchable symbol. |
character into a Thot stretchable symbol. |
Line 2093 void CheckFence (Element el, Docume
|
Line 2093 void CheckFence (Element el, Docume
|
/* attach a IntVertStretch attribute to the MF element */ |
/* attach a IntVertStretch attribute to the MF element */ |
attrType.AttrTypeNum = MathML_ATTR_IntVertStretch; |
attrType.AttrTypeNum = MathML_ATTR_IntVertStretch; |
attr = TtaGetAttribute (el, attrType); |
attr = TtaGetAttribute (el, attrType); |
if (!attr) |
if (attr) |
|
TtaSetAttributeValue (attr, |
|
MathML_ATTR_IntVertStretch_VAL_yes_, |
|
el, doc); |
|
else |
{ |
{ |
attr = TtaNewAttribute (attrType); |
attr = TtaNewAttribute (attrType); |
|
TtaSetAttributeValue (attr, |
|
MathML_ATTR_IntVertStretch_VAL_yes_, |
|
el, doc); |
TtaAttachAttribute (el, attr, doc); |
TtaAttachAttribute (el, attr, doc); |
} |
} |
TtaSetAttributeValue (attr, |
|
MathML_ATTR_IntVertStretch_VAL_yes_, |
|
el, doc); |
|
} |
} |
/* create a new content for the MF element */ |
/* create a new content for the MF element */ |
elType.ElTypeNum = MathML_EL_SYMBOL_UNIT; |
elType.ElTypeNum = MathML_EL_SYMBOL_UNIT; |
Line 2115 void CheckFence (Element el, Docume
|
Line 2119 void CheckFence (Element el, Docume
|
schema while inserting this child element */ |
schema while inserting this child element */ |
oldStructureChecking = TtaGetStructureChecking (doc); |
oldStructureChecking = TtaGetStructureChecking (doc); |
TtaSetStructureChecking (FALSE, doc); |
TtaSetStructureChecking (FALSE, doc); |
TtaInsertFirstChild (&content, el, doc); |
|
TtaSetGraphicsShape (content, c, doc); |
TtaSetGraphicsShape (content, c, doc); |
|
TtaInsertFirstChild (&content, el, doc); |
/* resume structure checking */ |
/* resume structure checking */ |
TtaSetStructureChecking (oldStructureChecking, doc); |
TtaSetStructureChecking (oldStructureChecking, doc); |
} |
} |