version 1.71, 2006/09/06 14:31:21
|
version 1.72, 2006/09/15 14:11:01
|
Line 166 static char *createMenuString (const str
|
Line 166 static char *createMenuString (const str
|
ThotBool UseToBeCreated (NotifyElement *event) |
ThotBool UseToBeCreated (NotifyElement *event) |
{ |
{ |
#ifdef TEMPLATES |
#ifdef TEMPLATES |
|
Element el, parent; |
|
Document doc; |
|
|
|
el = event->element; |
|
doc = event->document; |
|
/* is there a limit to the number of elements in the xt:repeat ? */ |
/* @@@@@ */ |
/* @@@@@ */ |
#endif /* TEMPLATES */ |
#endif /* TEMPLATES */ |
return FALSE; /* let Thot perform normal operation */ |
return FALSE; /* let Thot perform normal operation */ |
Line 184 void UseCreated (NotifyElement *event)
|
Line 190 void UseCreated (NotifyElement *event)
|
XTigerTemplate t; |
XTigerTemplate t; |
|
|
doc = event->document; |
doc = event->document; |
|
el = event->element; |
|
if (TtaGetFirstChild (el)) |
|
/* this Use element has already some content. It has already been |
|
instanciated */ |
|
return; |
t = (XTigerTemplate) Get(templates, DocumentMeta[doc]->template_url); |
t = (XTigerTemplate) Get(templates, DocumentMeta[doc]->template_url); |
if (!t) |
if (!t) |
return; // no template ?!?! |
return; // no template ?!?! |
el = event->element; |
|
InstanciateUse (t, el, doc, TRUE); |
InstanciateUse (t, el, doc, TRUE); |
#endif /* TEMPLATES */ |
#endif /* TEMPLATES */ |
} |
} |