Diff for /Amaya/amaya/templates.c between versions 1.24 and 1.25

version 1.24, 2004/01/19 13:53:06 version 1.25, 2004/03/30 16:18:09
Line 25 Line 25
 #define META_TEMPLATE_NAME "AMAYA_TEMPLATE"  #define META_TEMPLATE_NAME "AMAYA_TEMPLATE"
 /* URL of the script providing templates (for reload) */  /* URL of the script providing templates (for reload) */
 static char   *script_URL;  static char   *script_URL;
   
 #include "init_f.h"  #include "init_f.h"
   
   
Line 34  static char   *script_URL; Line 33  static char   *script_URL;
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void NewTemplate (Document doc, View view)  void NewTemplate (Document doc, View view)
 {  {
   char      *url;    char       *url;
   
   url = TtaGetEnvString ("TEMPLATE_URL");    url = TtaGetEnvString ("TEMPLATE_URL");
   if (url)    if (url && TtaCheckDirectory (url))
     GetAmayaDoc (url, NULL, 0, 0, CE_ABSOLUTE, FALSE, NULL, NULL);      {
         /*TtaNewScrollPopup (BaseDialog + xxx, TtaGetViewFrame (doc, 1),
                            NULL, nbitems, FormBuf, NULL, multipleOptions, 'L');
         InitOpenDocForm (doc, view, "New.html",
         "xxx", docHTML);*/
         /*GetAmayaDoc (url, NULL, 0, 0, CE_ABSOLUTE, FALSE, NULL, NULL);*/
       }
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
    OpenTemplateDocument: Process the meta of a template document,     OpenTemplateDocument: Process the meta of a template document,
      changes the URL, try to save it and warn the user if it cannot be       changes the URL, try to save it and warn the user if it cannot be

Removed from v.1.24  
changed lines
  Added in v.1.25


Webmaster