version 1.94, 2007/01/10 14:25:16
|
version 1.95, 2007/01/10 15:09:35
|
Line 632 ThotBool RepeatButtonClicked (NotifyElem
|
Line 632 ThotBool RepeatButtonClicked (NotifyElem
|
Element newEl = NULL; |
Element newEl = NULL; |
char* types; |
char* types; |
ThotBool oldStructureChecking; |
ThotBool oldStructureChecking; |
|
View view; |
|
|
|
TtaGetActiveView (&doc, &view); |
|
if (view != 1) |
|
return FALSE; /* let Thot perform normal operation */ |
|
|
TtaCancelSelection(doc); |
TtaCancelSelection(doc); |
|
|
t = (XTigerTemplate) Dictionary_Get (Templates_Dic, DocumentMeta[doc]->template_url); |
t = (XTigerTemplate) Dictionary_Get (Templates_Dic, DocumentMeta[doc]->template_url); |
Line 647 ThotBool RepeatButtonClicked (NotifyElem
|
Line 652 ThotBool RepeatButtonClicked (NotifyElem
|
if(repeatEl) |
if(repeatEl) |
{ |
{ |
firstEl = TtaGetFirstChild(repeatEl); |
firstEl = TtaGetFirstChild(repeatEl); |
types = GetAttributeStringValue(firstEl, Template_ATTR_types); |
types = GetAttributeStringValue(firstEl, Template_ATTR_types, NULL); |
|
|
char* listtypes = Template_ExpandTypes(t, types); |
char* listtypes = Template_ExpandTypes(t, types); |
char* result = QueryStringFromMenu(doc, listtypes); |
char* result = QueryStringFromMenu(doc, listtypes); |
Line 694 ThotBool UseButtonClicked (NotifyElement
|
Line 699 ThotBool UseButtonClicked (NotifyElement
|
Element newEl = NULL; |
Element newEl = NULL; |
char* types; |
char* types; |
ThotBool oldStructureChecking; |
ThotBool oldStructureChecking; |
|
View view; |
|
|
|
TtaGetActiveView (&doc, &view); |
|
if (view != 1) |
|
return FALSE; /* let Thot perform normal operation */ |
|
|
TtaCancelSelection(doc); |
TtaCancelSelection(doc); |
|
|
Line 709 ThotBool UseButtonClicked (NotifyElement
|
Line 719 ThotBool UseButtonClicked (NotifyElement
|
} |
} |
else |
else |
{ |
{ |
types = GetAttributeStringValue(el, Template_ATTR_types); |
types = GetAttributeStringValue(el, Template_ATTR_types, NULL); |
|
|
char* listtypes = Template_ExpandTypes(t, types); |
char* listtypes = Template_ExpandTypes(t, types); |
char* result = QueryStringFromMenu(doc, listtypes); |
char* result = QueryStringFromMenu(doc, listtypes); |
Line 729 ThotBool UseButtonClicked (NotifyElement
|
Line 739 ThotBool UseButtonClicked (NotifyElement
|
} |
} |
TtaFreeMemory(listtypes); |
TtaFreeMemory(listtypes); |
TtaFreeMemory(result); |
TtaFreeMemory(result); |
printf("empty use\n"); |
|
} |
} |
|
|
return TRUE; |
return TRUE; |