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

version 1.84, 2001/03/27 12:09:03 version 1.85, 2001/03/28 16:28:55
Line 9 Line 9
  * Initialization functions and button functions of Amaya application.   * Initialization functions and button functions of Amaya application.
  *   *
  * Authors: V. Quint, I. Vatton   * Authors: V. Quint, I. Vatton
  *          R. Guetari (W3C/INRIA) - Unicode and Windows version.   *          R. Guetari (W3C/INRIA) - Windows version.
  */   */
   
   
Line 25  typedef struct _SubDoc Line 25  typedef struct _SubDoc
   {    {
      struct _SubDoc  *SDnext;       struct _SubDoc  *SDnext;
      Element          SDel;       Element          SDel;
      STRING           SDname;       char            *SDname;
   }SubDoc;    }SubDoc;
   
 /* the structure used for the GetIncludedDocuments_callback function */  /* the structure used for the GetIncludedDocuments_callback function */
Line 33  typedef struct _IncludeCtxt Line 33  typedef struct _IncludeCtxt
 {  {
   Element               div; /* enclosing element for the search */    Element               div; /* enclosing element for the search */
   Element               link; /* current processed link */    Element               link; /* current processed link */
   STRING                url; /* called url */    char                 *url; /* called url */
   STRING                name; /* the fragment name */    char                 *name; /* the fragment name */
   struct _IncludeCtxt  *ctxt; /* the previous context */    struct _IncludeCtxt  *ctxt; /* the previous context */
 } IncludeCtxt;  } IncludeCtxt;
   
Line 45  ThotBool  WithToC; Line 45  ThotBool  WithToC;
 ThotBool         IgnoreCSS;  ThotBool         IgnoreCSS;
   
 static struct _SubDoc  *SubDocs;  static struct _SubDoc  *SubDocs;
 static char           PSfile[MAX_PATH];  static char             PSfile[MAX_PATH];
 static char           PPrinter[MAX_PATH];  static char             PPrinter[MAX_PATH];
 static STRING           DocPrintURL;  static char            *DocPrintURL;
 static Document         DocPrint;  static Document         DocPrint;
 static int              PaperPrint;  static int              PaperPrint;
 static int              ManualFeed = PP_OFF;  static int              ManualFeed = PP_OFF;
Line 71  static ThotBool GetIncludedDocuments (); Line 71  static ThotBool GetIncludedDocuments ();
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
   RegisterSubDoc adds a new entry in SubDoc table.    RegisterSubDoc adds a new entry in SubDoc table.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 static void         RegisterSubDoc (Element el, STRING url)  static void         RegisterSubDoc (Element el, char *url)
 {  {
   struct _SubDoc  *entry, *last;    struct _SubDoc  *entry, *last;
   
Line 100  static void         RegisterSubDoc (Elem Line 100  static void         RegisterSubDoc (Elem
   within the SubDoc table.    within the SubDoc table.
   Return the DIV element that correspond to the sub-document or NULL.    Return the DIV element that correspond to the sub-document or NULL.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 static Element      SearchSubDoc (STRING url)  static Element      SearchSubDoc (char *url)
 {  {
   Element          el;    Element          el;
   struct _SubDoc  *entry;    struct _SubDoc  *entry;
Line 158  void             SetInternalLinks (Docum Line 158  void             SetInternalLinks (Docum
   Attribute             HrefAttr, IntLinkAttr;    Attribute             HrefAttr, IntLinkAttr;
   Attribute             attr, ExtLinkAttr;    Attribute             attr, ExtLinkAttr;
   AttributeType         attrType;    AttributeType         attrType;
   STRING                text, ptr, url;     char                 *text, *ptr, *url; 
   char                  number[10];    char                  number[10];
   char                  value[MAX_LENGTH];    char                  value[MAX_LENGTH];
   int                   length, i, volume;    int                   length, i, volume;
Line 386  static void         PrintDocument (Docum Line 386  static void         PrintDocument (Docum
   ElementType        elType;    ElementType        elType;
   Attribute          attr;    Attribute          attr;
   Element            el, docEl;    Element            el, docEl;
   STRING             files, dir;    char              *files, *dir;
   char               viewsToPrint[MAX_PATH];    char               viewsToPrint[MAX_PATH];
   ThotBool           status, textFile;    ThotBool           status, textFile;
   
Line 524  void                PrintAs (Document do Line 524  void                PrintAs (Document do
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
    CallbackImage manage returns of Picture form.                        CallbackImage manage returns of Picture form.                   
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void CallbackPrint (int ref, int typedata, STRING data)  void CallbackPrint (int ref, int typedata, char *data)
 {  {
   int                 val;    int                 val;
   
Line 863  static void         UpdateURLsInSubtree Line 863  static void         UpdateURLsInSubtree
   Return the root element that delimits the new inserted part (a div).    Return the root element that delimits the new inserted part (a div).
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 static Element MoveDocumentBody (Element el, Document destDoc,  static Element MoveDocumentBody (Element el, Document destDoc,
                                  Document sourceDoc, STRING target,                                   Document sourceDoc, char *target,
                                  STRING url, ThotBool deleteTree)                                   char *url, ThotBool deleteTree)
 {  {
   Element          root, ancestor, elem, firstInserted, div;    Element          root, ancestor, elem, firstInserted, div;
   Element          lastInserted, srce, copy, old, parent, sibling;    Element          lastInserted, srce, copy, old, parent, sibling;
Line 1010  static void CloseMakeBook (Document docu Line 1010  static void CloseMakeBook (Document docu
   GetIncludedDocuments_callback finishes the GetIncludedDocuments procedure    GetIncludedDocuments_callback finishes the GetIncludedDocuments procedure
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 void   GetIncludedDocuments_callback (int newdoc, int status,   void   GetIncludedDocuments_callback (int newdoc, int status, 
                                       STRING urlName,                                        char *urlName,
                                       STRING outputfile,                                         char *outputfile, 
                                       AHTHeaders *http_headers,                                        AHTHeaders *http_headers,
                                       void * context)                                        void * context)
 {  {
   Element               link, div;    Element               link, div;
   IncludeCtxt          *ctx, *prev;    IncludeCtxt          *ctx, *prev;
   STRING                url, ptr;    char                 *url, *ptr;
   ThotBool              found = FALSE;    ThotBool              found = FALSE;
   
   /* restore GetIncludedDocuments's context */    /* restore GetIncludedDocuments's context */
Line 1083  static ThotBool  GetIncludedDocuments (E Line 1083  static ThotBool  GetIncludedDocuments (E
   AttributeType         attrType;    AttributeType         attrType;
   Document              newdoc;    Document              newdoc;
   IncludeCtxt          *ctx = NULL;    IncludeCtxt          *ctx = NULL;
   STRING                text, ptr, url = NULL;    char                 *text, *ptr, *url = NULL;
   int                   length;    int                   length;
   ThotBool              found = FALSE;    ThotBool              found = FALSE;
   

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


Webmaster