version 1.69, 2008/04/03 14:56:28
|
version 1.70, 2008/04/04 12:43:15
|
Line 456 void InstantiateTemplate_callback (int n
|
Line 456 void InstantiateTemplate_callback (int n
|
#endif /* TEMPLATES */ |
#endif /* TEMPLATES */ |
} |
} |
|
|
///*---------------------------------------------------------------------- |
|
// ----------------------------------------------------------------------*/ |
|
//void InstantiateTemplate (Document doc, char *templatename, char *docname, |
|
// DocumentType docType, ThotBool loaded) |
|
//{ |
|
//#ifdef TEMPLATES |
|
// if (!loaded) |
|
// { |
|
// // Create the callback context |
|
// InstantiateCtxt *ctx = (InstantiateCtxt *)TtaGetMemory (sizeof (InstantiateCtxt)); |
|
// ctx->templatePath = TtaStrdup (templatename); |
|
// ctx->instancePath = TtaStrdup (docname); |
|
// ctx->schemaName = GetSchemaFromDocType(docType); |
|
// ctx->doc = doc; |
|
// ctx->docType = docType; |
|
// |
|
// GetAmayaDoc (templatename, NULL, doc, doc, CE_MAKEBOOK, FALSE, |
|
// (void (*)(int, int, char*, char*, char*, |
|
// const AHTHeaders*, void*)) InstantiateTemplate_callback, |
|
// (void *) ctx); |
|
// } |
|
// else |
|
// { |
|
// DoInstanceTemplate (templatename); |
|
// CreateInstance (templatename, docname, doc); |
|
// } |
|
//#endif /* TEMPLATES */ |
|
//} |
|
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
InstantiateAttribute |
InstantiateAttribute |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |