version 1.10, 2000/01/24 10:53:24
|
version 1.11, 2000/02/16 17:04:01
|
Line 29
|
Line 29
|
# define META_TEMPLATE_NAME "AMAYA_TEMPLATE" |
# define META_TEMPLATE_NAME "AMAYA_TEMPLATE" |
#endif /* defined(_I18N_) || defined(__JIS__) */ |
#endif /* defined(_I18N_) || defined(__JIS__) */ |
/* URL of the script providing templates (for reload) */ |
/* URL of the script providing templates (for reload) */ |
static STRING script_URL; |
static CHAR_T* script_URL; |
|
|
#include "init_f.h" |
#include "init_f.h" |
|
|
Line 118 Document doc;
|
Line 118 Document doc;
|
if (ok) |
if (ok) |
{ |
{ |
if (script_URL == NULL) |
if (script_URL == NULL) |
script_URL = TtaStrdup (DocumentURLs[doc]); |
script_URL = TtaWCSdup (DocumentURLs[doc]); |
TtaFreeMemory (DocumentURLs[doc]); |
TtaFreeMemory (DocumentURLs[doc]); |
DocumentURLs[doc] = TtaStrdup (buffer); |
DocumentURLs[doc] = TtaWCSdup (buffer); |
DocumentMeta[doc]->method = CE_TEMPLATE; |
DocumentMeta[doc]->method = CE_TEMPLATE; |
TtaSetTextZone (doc, 1, 1, DocumentURLs[doc]); |
TtaSetTextZone (doc, 1, 1, DocumentURLs[doc]); |
TtaSetDocumentUnmodified (doc); |
TtaSetDocumentUnmodified (doc); |
Line 146 Document doc;
|
Line 146 Document doc;
|
} |
} |
else |
else |
{ |
{ |
TtaSetDocumentDirectory (doc, ""); |
TtaSetDocumentDirectory (doc, TEXT("")); |
TtaSetDocumentName (doc, buffer); |
TtaSetDocumentName (doc, buffer); |
} |
} |
SetWindowTitle (doc, doc, 0); |
SetWindowTitle (doc, doc, 0); |
Line 159 Document doc;
|
Line 159 Document doc;
|
to reload a template |
to reload a template |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
#ifdef __STDC__ |
#ifdef __STDC__ |
void ReloadTemplateParams (STRING *docURL, ClickEvent *method) |
void ReloadTemplateParams (CHAR_T* docURL, ClickEvent *method) |
#else /* __STDC__ */ |
#else /* __STDC__ */ |
void ReloadTemplateParams (docURL, method) |
void ReloadTemplateParams (docURL, method) |
STRING *docURL; |
CHAR_T* docURL; |
ClickEvent *method; |
ClickEvent *method; |
#endif /* __STDC__ */ |
#endif /* __STDC__ */ |
{ |
{ |
*method = CE_FORM_GET; |
*method = CE_FORM_GET; |
TtaFreeMemory (*docURL); |
TtaFreeMemory (*docURL); |
*docURL = TtaStrdup (script_URL); |
*docURL = TtaWCSdup (script_URL); |
} |
} |