Diff for /Amaya/amaya/HTMLbook.c between versions 1.83 and 1.84

version 1.83, 2001/03/16 16:40:25 version 1.84, 2001/03/27 12:09:03
Line 377  static void         CheckPrintingDocumen Line 377  static void         CheckPrintingDocumen
     }      }
 }  }
   
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
    PrintDocument prints the document using predefined parameters.     PrintDocument prints the document using predefined parameters.
    ----------------------------------------------------------------------*/       ----------------------------------------------------------------------*/  
 static void         PrintDocument (Document doc, View view)  static void         PrintDocument (Document doc, View view)
 {  {
   AttributeType      attrType;    AttributeType      attrType;
     ElementType        elType;
   Attribute          attr;    Attribute          attr;
   Element            el;    Element            el, docEl;
   STRING             files, dir;    STRING             files, dir;
   char             viewsToPrint[MAX_PATH];    char               viewsToPrint[MAX_PATH];
   ThotBool           status, textFile;    ThotBool           status, textFile;
   
   textFile = (DocumentTypes[doc] == docText ||    textFile = (DocumentTypes[doc] == docText ||
Line 468  static void         PrintDocument (Docum Line 468  static void         PrintDocument (Docum
     {      {
       /* post or remove the PrintURL attribute */        /* post or remove the PrintURL attribute */
       attrType.AttrSSchema = TtaGetDocumentSSchema (doc);        attrType.AttrSSchema = TtaGetDocumentSSchema (doc);
         elType.ElSSchema = attrType.AttrSSchema;
       if (textFile)        if (textFile)
         attrType.AttrTypeNum = TextFile_ATTR_PrintURL;          {
             elType. ElTypeNum = TextFile_EL_TextFile;
             attrType.AttrTypeNum = TextFile_ATTR_PrintURL;
           }
       else        else
         attrType.AttrTypeNum = HTML_ATTR_PrintURL;          {
       el =  TtaGetMainRoot (doc);            elType. ElTypeNum = HTML_EL_HTML;
             attrType.AttrTypeNum = HTML_ATTR_PrintURL;
           }
         docEl = TtaGetMainRoot (doc);
         el = TtaSearchTypedElement (elType, SearchForward, docEl);
       attr = TtaGetAttribute (el, attrType);        attr = TtaGetAttribute (el, attrType);
       if (!attr && PrintURL)        if (!attr && PrintURL)
         {          {
Line 871  static Element MoveDocumentBody (Element Line 879  static Element MoveDocumentBody (Element
       /* locate the target element within the source document */        /* locate the target element within the source document */
       root = SearchNAMEattribute (sourceDoc, target, NULL);        root = SearchNAMEattribute (sourceDoc, target, NULL);
       elType = TtaGetElementType (root);        elType = TtaGetElementType (root);
       isID = (elType.ElTypeNum != HTML_EL_Anchor && elType.ElTypeNum != HTML_EL_MAP);        isID = (elType.ElTypeNum != HTML_EL_Anchor &&
                 elType.ElTypeNum != HTML_EL_MAP);
     }      }
   else    else
     {      {

Removed from v.1.83  
changed lines
  Added in v.1.84


Webmaster