version 1.113, 2007/02/02 11:07:19
|
version 1.114, 2007/02/02 12:07:47
|
Line 167 static int LoadTemplateRepositoryList (P
|
Line 167 static int LoadTemplateRepositoryList (P
|
{ |
{ |
/* The config file dont exist, create it. */ |
/* The config file dont exist, create it. */ |
file = TtaWriteOpen ((char *)path); |
file = TtaWriteOpen ((char *)path); |
fprintf (file, "%s%ctemplate.xtd\n", homePath, DIR_SEP); |
fprintf (file, "http://wam.inrialpes.fr/software/amaya/cv.xtd\n", homePath, DIR_SEP); |
TtaWriteClose (file); |
TtaWriteClose (file); |
/* Retry to open it.*/ |
/* Retry to open it.*/ |
file = TtaReadOpen ((char *)path); |
file = TtaReadOpen ((char *)path); |
Line 815 ThotBool RepeatButtonClicked (NotifyElem
|
Line 815 ThotBool RepeatButtonClicked (NotifyElem
|
oldStructureChecking = TtaGetStructureChecking (doc); |
oldStructureChecking = TtaGetStructureChecking (doc); |
TtaSetStructureChecking (FALSE, doc); |
TtaSetStructureChecking (FALSE, doc); |
TtaOpenUndoSequence(doc, NULL, NULL, 0, 0); |
TtaOpenUndoSequence(doc, NULL, NULL, 0, 0); |
|
|
/* Insert. */ |
/* Insert. */ |
if (el==repeatEl) |
if (el==repeatEl) |
newEl = Template_InsertRepeatChildAfter(doc, repeatEl, decl, NULL); |
newEl = Template_InsertRepeatChildAfter(doc, repeatEl, decl, NULL); |
Line 824 ThotBool RepeatButtonClicked (NotifyElem
|
Line 823 ThotBool RepeatButtonClicked (NotifyElem
|
|
|
/* Finish insertion.*/ |
/* Finish insertion.*/ |
TtaCloseUndoSequence(doc); |
TtaCloseUndoSequence(doc); |
|
TtaSetDocumentModified (doc); |
TtaSetStructureChecking (oldStructureChecking, doc); |
TtaSetStructureChecking (oldStructureChecking, doc); |
|
|
firstEl = GetFirstEditableElement(newEl); |
firstEl = GetFirstEditableElement(newEl); |
Line 924 ThotBool UseButtonClicked (NotifyElement
|
Line 924 ThotBool UseButtonClicked (NotifyElement
|
|
|
/* Finish insertion. */ |
/* Finish insertion. */ |
TtaCloseUndoSequence(doc); |
TtaCloseUndoSequence(doc); |
|
TtaSetDocumentModified (doc); |
TtaSetStructureChecking (oldStructureChecking, doc); |
TtaSetStructureChecking (oldStructureChecking, doc); |
|
|
firstEl = GetFirstEditableElement(newEl); |
firstEl = GetFirstEditableElement(newEl); |