version 1.33, 2005/07/20 14:31:12
|
version 1.34, 2005/07/21 10:57:01
|
Line 40 static char *script_URL;
|
Line 40 static char *script_URL;
|
|
|
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
NewTemplate: Create the new document from template's dialog |
NewTemplate: Create the "new document from template's" dialog |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
void NewTemplate (Document doc, View view) |
void NewTemplate (Document doc, View view) |
{ |
{ |
Line 52 void NewTemplate (Document doc, View vie
|
Line 52 void NewTemplate (Document doc, View vie
|
amaya_home = TtaGetEnvString ("THOTDIR"); |
amaya_home = TtaGetEnvString ("THOTDIR"); |
|
|
// Amaya's templates directory (only french yet) |
// Amaya's templates directory (only french yet) |
sprintf ((char *)templateDir, "%s%ctemplates%ctemplates%cfr%c", amaya_home,DIR_SEP,DIR_SEP,DIR_SEP,DIR_SEP); |
sprintf ((char *)templateDir, "%s%ctemplates%cfr%c", amaya_home,DIR_SEP,DIR_SEP,DIR_SEP); |
|
|
char s [MAX_LENGTH]; |
char s [MAX_LENGTH]; |
|
|
Line 326 int CreateInstanceOfTemplate (Document d
|
Line 326 int CreateInstanceOfTemplate (Document d
|
char templateFile[MAX_LENGTH]; |
char templateFile[MAX_LENGTH]; |
int newdoc, len; |
int newdoc, len; |
ThotBool stopped_flag; |
ThotBool stopped_flag; |
Document templatedoc; |
|
|
|
W3Loading = doc; |
W3Loading = doc; |
BackupDocument = doc; |
BackupDocument = doc; |