version 1.86, 2000/11/03 17:41:48
|
version 1.87, 2000/11/06 11:12:16
|
Line 1928 Document doc;
|
Line 1928 Document doc;
|
el, doc); |
el, doc); |
} |
} |
/* create a new content for the MF element */ |
/* create a new content for the MF element */ |
if (text[0] == TEXT('|')) |
elType.ElTypeNum = MathML_EL_SYMBOL_UNIT; |
{ |
c = (char) text[0]; |
elType.ElTypeNum = MathML_EL_GRAPHICS_UNIT; |
|
c = 'v'; |
|
} |
|
else |
|
{ |
|
elType.ElTypeNum = MathML_EL_SYMBOL_UNIT; |
|
c = (char) text[0]; |
|
} |
|
content = TtaNewElement (doc, elType); |
content = TtaNewElement (doc, elType); |
TtaInsertFirstChild (&content, el, doc); |
TtaInsertFirstChild (&content, el, doc); |
TtaSetGraphicsShape (content, c, doc); |
TtaSetGraphicsShape (content, c, doc); |
if (elType.ElTypeNum == MathML_EL_GRAPHICS_UNIT) |
|
{ |
|
ctxt = TtaGetSpecificStyleContext (doc); |
|
ctxt->destroy = FALSE; |
|
/* the specific presentation to be created is not |
|
a CSS rule */ |
|
ctxt->cssLevel = 0; |
|
pval.typed_data.unit = STYLE_UNIT_REL; |
|
pval.typed_data.real = TRUE; |
|
pval.typed_data.value = 200; |
|
TtaSetStylePresentation (PRWidth, content, NULL, ctxt, pval); |
|
} |
|
} |
} |
} |
} |
} |
} |