Diff for /Amaya/amaya/templates.c between versions 1.110 and 1.111

version 1.110, 2007/02/01 13:15:25 version 1.111, 2007/02/01 15:15:40
Line 1024  ThotBool OptionButtonClicked (NotifyElem Line 1024  ThotBool OptionButtonClicked (NotifyElem
   return TRUE;    return TRUE;
 }  }
   
   /*----------------------------------------------------------------------
     CheckTemplate checks if the template of the instance is loaded
     ----------------------------------------------------------------------*/
   void CheckTemplate (Document doc)
   {
   #ifdef TEMPLATES
     if (DocumentMeta[doc] && DocumentMeta[doc]->template_url &&
         !Dictionary_Get (Templates_Dic, DocumentMeta[doc]->template_url))
       {
         // the template cannot be loaded
         TtaDisplaySimpleMessage (CONFIRM, AMAYA, AM_READONLY);
         TtaSetDocumentAccessMode (doc, 1);
         TtaSetAccessRight (TtaGetRootElement (doc), ReadOnly, doc);
       }
   #endif /* TEMPLATES */
   }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
   OpeningInstance checks if it is a template instance needs.    OpeningInstance checks if it is a template instance needs.

Removed from v.1.110  
changed lines
  Added in v.1.111


Webmaster