version 1.77, 2008/06/03 08:45:10
|
version 1.78, 2008/06/09 13:42:34
|
Line 823 Element InstantiateUse (XTigerTemplate t
|
Line 823 Element InstantiateUse (XTigerTemplate t
|
/* get the value of the "types" attribute */ |
/* get the value of the "types" attribute */ |
cont = NULL; |
cont = NULL; |
elType = TtaGetElementType (el); |
elType = TtaGetElementType (el); |
AddPromptIndicator (el, doc); |
|
types = GetAttributeStringValueFromNum (el, Template_ATTR_types, &size); |
types = GetAttributeStringValueFromNum (el, Template_ATTR_types, &size); |
if (!types || types[0] == EOS) |
if (!types || types[0] == EOS) |
{ |
{ |
TtaFreeMemory (types); |
TtaFreeMemory (types); |
return NULL; |
return NULL; |
} |
} |
|
|
|
if (!strcmp (types, "string")) |
|
AddPromptIndicator (el, doc); |
|
|
giveItems (types, size, &items, &nbitems); |
giveItems (types, size, &items, &nbitems); |
// No structure checking |
// No structure checking |
oldStructureChecking = TtaGetStructureChecking (doc); |
oldStructureChecking = TtaGetStructureChecking (doc); |
Line 1088 static void ParseTemplate (XTigerTemplat
|
Line 1091 static void ParseTemplate (XTigerTemplat
|
supposed to contain a valid instance. This should be |
supposed to contain a valid instance. This should be |
checked, though */ |
checked, though */ |
// add the initial indicator |
// add the initial indicator |
AddPromptIndicator (el, doc); |
name = GetAttributeStringValueFromNum (el, Template_ATTR_types, NULL); |
|
if (name && !strcmp (name, "string")) |
|
AddPromptIndicator (el, doc); |
|
TtaFreeMemory (name); |
if (!TtaGetFirstChild (el)) |
if (!TtaGetFirstChild (el)) |
InstantiateUse (t, el, doc, FALSE); |
InstantiateUse (t, el, doc, FALSE); |
break; |
break; |