Diff for /Amaya/amaya/HTMLbook.c between versions 1.98 and 1.99

version 1.98, 2003/01/21 16:18:28 version 1.99, 2003/01/30 16:30:00
Line 825  void SetupAndPrint (Document doc, View v Line 825  void SetupAndPrint (Document doc, View v
   Transform the HREF and SRC attribute to make them independent from their    Transform the HREF and SRC attribute to make them independent from their
   former base.    former base.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 static void UpdateURLsInSubtree (NotifyElement *event, Element el)  void UpdateURLsInSubtree (NotifyElement *event, Element el)
 {  {
   Element             nextEl, child;    Element             nextEl, child;
   ElementType         elType;    ElementType         elType;
Line 833  static void UpdateURLsInSubtree (NotifyE Line 833  static void UpdateURLsInSubtree (NotifyE
   
   nextEl = TtaGetFirstChild (el);    nextEl = TtaGetFirstChild (el);
   HTMLschema = TtaGetSSchema ("HTML", event->document);    HTMLschema = TtaGetSSchema ("HTML", event->document);
   elType.ElSSchema = HTMLschema;    if (HTMLschema)
   while (nextEl != NULL)  
     {      {
       event->element = nextEl;        elType.ElSSchema = HTMLschema;
       ElementPasted (event);        while (nextEl != NULL)
   
       /* manage included links and anchors */  
       elType.ElTypeNum = HTML_EL_Anchor;  
       child = TtaSearchTypedElement (elType, SearchInTree, nextEl);  
       while (child)  
         {  
           event->element = child;  
           ElementPasted (event);  
           child = TtaSearchTypedElementInTree (elType, SearchForward, nextEl, child);  
         }  
   
       /* manage included links and anchors */  
       elType.ElTypeNum = HTML_EL_PICTURE_UNIT;  
       child = TtaSearchTypedElement (elType, SearchInTree, nextEl);  
       while (child)  
         {          {
           event->element = child;            event->element = nextEl;
           ElementPasted (event);            ElementPasted (event);
           child = TtaSearchTypedElementInTree (elType, SearchForward, nextEl, child);            
             /* manage included links and anchors */
             elType.ElTypeNum = HTML_EL_Anchor;
             child = TtaSearchTypedElement (elType, SearchInTree, nextEl);
             while (child)
               {
                 event->element = child;
                 ElementPasted (event);
                 child = TtaSearchTypedElementInTree (elType, SearchForward, nextEl, child);
               }
             
             /* manage included links and anchors */
             elType.ElTypeNum = HTML_EL_PICTURE_UNIT;
             child = TtaSearchTypedElement (elType, SearchInTree, nextEl);
             while (child)
               {
                 event->element = child;
                 ElementPasted (event);
                 child = TtaSearchTypedElementInTree (elType, SearchForward, nextEl, child);
               }
             TtaNextSibling (&nextEl);
         }          }
       TtaNextSibling (&nextEl);  
     }      }
 }  }
   

Removed from v.1.98  
changed lines
  Added in v.1.99


Webmaster