Diff for /Amaya/amaya/HTMLbook.c between versions 1.112 and 1.113

version 1.112, 2004/09/03 09:00:49 version 1.113, 2004/09/03 09:49:44
Line 449  static void PrintDocument (Document doc, Line 449  static void PrintDocument (Document doc,
     TtaSetPrintSchema ("MathMLP");      TtaSetPrintSchema ("MathMLP");
   else if (DocumentTypes[doc] == docAnnot)    else if (DocumentTypes[doc] == docAnnot)
     TtaSetPrintSchema ("AnnotP");      TtaSetPrintSchema ("AnnotP");
   else if (DocumentTypes[doc] == docHTML && NumberLinks)    else if (DocumentTypes[doc] == docHTML)
     /* display numbered links */  
     {      {
       /* associate an attribute InternalLink with all anchors refering        if (NumberLinks)
          a target in the same document.  This allows P schemas to work          /* display numbered links */
          properly */  
       SetInternalLinks (DocPrint);  
       if (PageSize == PP_A4)  
         {          {
           if (Orientation == PP_Landscape)            /* associate an attribute InternalLink with all anchors refering
             TtaSetPrintSchema ("HTMLPLL");               a target in the same document.  This allows P schemas to work
                properly */
             SetInternalLinks (DocPrint);
             if (PageSize == PP_A4)
               {
                 if (Orientation == PP_Landscape)
                   TtaSetPrintSchema ("HTMLPLL");
                 else
                   TtaSetPrintSchema ("HTMLPLP");
               }
           else            else
             TtaSetPrintSchema ("HTMLPLP");              {
                 if (Orientation == PP_Landscape)
                   TtaSetPrintSchema ("HTMLUSLL");
                 else
                   TtaSetPrintSchema ("HTMLPLPUS");
               }
             strcat (viewsToPrint, "Links_view ");
         }          }
       else        else if (PageSize == PP_A4)
         {          {
           if (Orientation == PP_Landscape)            if (Orientation == PP_Landscape)
             TtaSetPrintSchema ("HTMLUSLL");              TtaSetPrintSchema ("HTMLPL");
           else            else
             TtaSetPrintSchema ("HTMLPLPUS");              TtaSetPrintSchema ("HTMLPP");
         }          }
       strcat (viewsToPrint, "Links_view ");  
     }  
   else if (PageSize == PP_A4)  
     {  
       if (Orientation == PP_Landscape)  
         TtaSetPrintSchema ("HTMLPL");  
       else        else
         TtaSetPrintSchema ("HTMLPP");          {
             if (Orientation == PP_Landscape)
               TtaSetPrintSchema ("HTMLUSL");
             else
               TtaSetPrintSchema ("HTMLPPUS");
           }    
     }      }
   else  
     {  
       if (Orientation == PP_Landscape)  
         TtaSetPrintSchema ("HTMLUSL");  
       else  
         TtaSetPrintSchema ("HTMLPPUS");  
     }      
     
   status = TtaIsDocumentModified (doc);    status = TtaIsDocumentModified (doc);
   
   if (textFile || DocumentTypes[doc] == docImage ||    if (textFile || DocumentTypes[doc] == docImage ||
Line 518  static void PrintDocument (Document doc, Line 520  static void PrintDocument (Document doc,
     }      }
       
   /* get the path dir where css files have to be stored */    /* get the path dir where css files have to be stored */
   if ((DocumentTypes[doc] == docHTML || DocumentTypes[doc] == docSVG) &&    if ((DocumentTypes[doc] == docHTML || DocumentTypes[doc] == docSVG ||
          DocumentTypes[doc] == docXml) &&
       !IgnoreCSS)        !IgnoreCSS)
     {      {
       TtaGetPrintNames (&files, &dir);        TtaGetPrintNames (&files, &dir);

Removed from v.1.112  
changed lines
  Added in v.1.113


Webmaster