version 1.38, 2001/03/23 14:50:17
|
version 1.39, 2001/04/10 14:28:22
|
Line 201 void ParseCharset (Element e
|
Line 201 void ParseCharset (Element e
|
Attribute attr; |
Attribute attr; |
SSchema docSSchema; |
SSchema docSSchema; |
CHARSET charset; |
CHARSET charset; |
char *text, *text2, *ptrText, *str; |
char *text, *text2, *ptrText, *str; |
char charsetname[MAX_LENGTH]; |
char charsetname[MAX_LENGTH]; |
int length; |
int length; |
int pos, index = 0; |
int pos, index = 0; |
|
|
Line 267 void ParseCharset (Element e
|
Line 267 void ParseCharset (Element e
|
A XTHML entity has been created by the XML parser. |
A XTHML entity has been created by the XML parser. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
void XhtmlEntityCreated (int entityValue, |
void XhtmlEntityCreated (int entityValue, |
STRING entityName, |
char *entityName, |
ThotBool entityFound, |
ThotBool entityFound, |
ParserData *context) |
ParserData *context) |
|
|
Line 279 void XhtmlEntityCreated (int
|
Line 279 void XhtmlEntityCreated (int
|
Language lang; |
Language lang; |
int len; |
int len; |
#define MAX_ENTITY_LENGTH 80 |
#define MAX_ENTITY_LENGTH 80 |
char buffer[MAX_ENTITY_LENGTH]; |
char buffer[MAX_ENTITY_LENGTH]; |
char bufName[MAX_ENTITY_LENGTH]; |
char bufName[MAX_ENTITY_LENGTH]; |
char msgBuffer[MAX_ENTITY_LENGTH + 50]; |
char msgBuffer[MAX_ENTITY_LENGTH + 50]; |
|
|
if (entityValue <= 255 && entityFound) |
if (entityValue <= 255 && entityFound) |
{ |
{ |
Line 355 void XhtmlElementComplete (
|
Line 355 void XhtmlElementComplete (
|
Attribute attr; |
Attribute attr; |
AttributeType attrType; |
AttributeType attrType; |
Language lang; |
Language lang; |
STRING text; |
char *text; |
char lastChar[2]; |
char lastChar[2]; |
STRING name1; |
char *name1; |
int length; |
int length; |
SSchema docSSchema; |
SSchema docSSchema; |
|
|
Line 712 void XhtmlElementComplete (
|
Line 712 void XhtmlElementComplete (
|
PutInContent |
PutInContent |
Put the string ChrString in the leaf of current element. |
Put the string ChrString in the leaf of current element. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
Element PutInContent (STRING ChrString, ParserData *context) |
Element PutInContent (char *ChrString, ParserData *context) |
|
|
{ |
{ |
Element el, child; |
Element el, child; |
Line 758 void CreateHTMLAttribute (Elem
|
Line 758 void CreateHTMLAttribute (Elem
|
{ |
{ |
int attrKind; |
int attrKind; |
int length; |
int length; |
char* buffer; |
char *buffer; |
Attribute attr, oldAttr; |
Attribute attr, oldAttr; |
|
|
if (attrType.AttrTypeNum != 0) |
if (attrType.AttrTypeNum != 0) |
Line 816 void HTMLTypeAttrValue (ch
|
Line 816 void HTMLTypeAttrValue (ch
|
Element newChild; |
Element newChild; |
AttributeType attrType; |
AttributeType attrType; |
Attribute attr; |
Attribute attr; |
char msgBuffer[MaxMsgLength]; |
char msgBuffer[MaxMsgLength]; |
int value; |
int value; |
int numberOfLinesRead; |
int numberOfLinesRead; |
|
|
Line 877 void XhtmlTypeAttrValue (ch
|
Line 877 void XhtmlTypeAttrValue (ch
|
Element newChild; |
Element newChild; |
AttributeType attrType; |
AttributeType attrType; |
Attribute attr; |
Attribute attr; |
char msgBuffer[MaxMsgLength]; |
char msgBuffer[MaxMsgLength]; |
int value; |
int value; |
int attrKind; |
int attrKind; |
ThotBool level; |
ThotBool level; |
Line 928 void XhtmlTypeAttrValue (ch
|
Line 928 void XhtmlTypeAttrValue (ch
|
Create the corresponding attribute IntWidthPercent or IntWidthPxl. |
Create the corresponding attribute IntWidthPercent or IntWidthPxl. |
oldWidth is -1 or the old image width. |
oldWidth is -1 or the old image width. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
void CreateAttrWidthPercentPxl (STRING buffer, Element el, |
void CreateAttrWidthPercentPxl (char *buffer, Element el, |
Document doc, int oldWidth) |
Document doc, int oldWidth) |
|
|
{ |
{ |
AttributeType attrTypePxl, attrTypePercent; |
AttributeType attrTypePxl, attrTypePercent; |
Attribute attrOld, attrNew; |
Attribute attrOld, attrNew; |
int length, val; |
int length, val; |
char msgBuffer[MaxMsgLength]; |
char msgBuffer[MaxMsgLength]; |
ElementType elType; |
ElementType elType; |
int w, h; |
int w, h; |
ThotBool isImage; |
ThotBool isImage; |
Line 1016 void CreateAttrWidthPercent
|
Line 1016 void CreateAttrWidthPercent
|
an HTML attribute "size" has been created for a Font element. |
an HTML attribute "size" has been created for a Font element. |
Create the corresponding internal attribute. |
Create the corresponding internal attribute. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
void CreateAttrIntSize (STRING buffer, |
void CreateAttrIntSize (char *buffer, |
Element el, |
Element el, |
Document doc) |
Document doc) |
|
|
Line 1087 void EndOfHTMLAttributeVal
|
Line 1087 void EndOfHTMLAttributeVal
|
AttributeType attrType, attrType1; |
AttributeType attrType, attrType1; |
Attribute attr; |
Attribute attr; |
ElementType elType; |
ElementType elType; |
Element child; |
Element child, root; |
Language lang; |
Language lang; |
char translation; |
char translation; |
char shape; |
char shape; |
STRING buffer; |
char *buffer; |
STRING attrName; |
char *attrName; |
int val; |
int val; |
int length; |
int length; |
int attrKind; |
int attrKind; |
ThotBool done = FALSE; |
ThotBool done = FALSE; |
ThotBool level; |
ThotBool level; |
char msgBuffer[MaxMsgLength]; |
char msgBuffer[MaxMsgLength]; |
|
|
/* treatments of some particular HTML attributes */ |
/* treatments of some particular HTML attributes */ |
if (!strcmp (lastMappedAttr->XMLattribute, "style")) |
if (!strcmp (lastMappedAttr->XMLattribute, "style")) |
Line 1233 void EndOfHTMLAttributeVal
|
Line 1233 void EndOfHTMLAttributeVal
|
else |
else |
SetLanguagInHTMLStack (lang); |
SetLanguagInHTMLStack (lang); |
} |
} |
if (!TtaGetParent (lastAttrElement)) |
root = TtaGetRootElement (context->doc); |
|
if (lastAttrElement == root) |
/* it's a LANG attribute on the root element */ |
/* it's a LANG attribute on the root element */ |
/* set the RealLang attribute */ |
/* set the RealLang attribute */ |
{ |
{ |
Line 1373 void EndOfHTMLAttributeVal
|
Line 1374 void EndOfHTMLAttributeVal
|
Search in the Attribute Value Mapping Table the entry for the attribute |
Search in the Attribute Value Mapping Table the entry for the attribute |
ThotAtt and its value AttrVal. Returns the corresponding Thot value. |
ThotAtt and its value AttrVal. Returns the corresponding Thot value. |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
void MapHTMLAttributeValue (char *AttrVal, |
void MapHTMLAttributeValue (char *AttrVal, |
AttributeType attrType, |
AttributeType attrType, |
int *value) |
int *value) |
|
|