home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lynx2.8.1dev.10.tar.gz / lynx2.8.1dev.10.tar / lynx2-8 / src / LYStructs.h < prev    next >
C/C++ Source or Header  |  1998-03-25  |  3KB  |  113 lines

  1.  
  2. #ifndef LYSTRUCTS_H
  3. #define LYSTRUCTS_H
  4.  
  5. #ifndef USERDEFS_H
  6. #include <userdefs.h>
  7. #endif /* USERDEFS_H */
  8.  
  9. #ifndef HTANCHOR_H
  10. #include <HTAnchor.h>
  11. #endif /* HTANCHOR_H */
  12.  
  13. typedef struct link {
  14.     char *lname;
  15.     char *target;
  16.     char *hightext;
  17.     char *hightext2;
  18.     int hightext2_offset;
  19.     BOOL inUnderline;    /* TRUE when this link is in underlined context. */
  20.     int lx;
  21.     int ly;
  22.     int type;        /* Type of link, Forms, WWW, etc. */
  23.     int anchor_number;    /* The anchor number within the HText structure.  */
  24.     int anchor_line_num;/* The anchor line number in the HText structure. */
  25.     struct _FormInfo *form;    /* Pointer to form info. */
  26. } linkstruct;
  27. extern linkstruct links[MAXLINKS];
  28. extern int nlinks;
  29.  
  30. typedef struct _document {
  31.    char * title;
  32.    char * address;
  33.    char * post_data;
  34.    char * post_content_type;
  35.    BOOL   safe;
  36.    BOOL   isHEAD;
  37.    char * bookmark;
  38.    int    link;
  39.    int    line;
  40.    BOOL   internal_link;    /* whether doc was reached via an internal
  41.                  (fragment) link. - kw */
  42. #ifdef USE_HASH
  43.    char * style;
  44. #endif
  45. } document;
  46.  
  47. #ifndef HTFORMS_H
  48. #include <HTForms.h>
  49. #endif /* HTFORMS_H */
  50.  
  51. typedef struct _histstruct {
  52.     char * title;
  53.     char * address;
  54.     char * post_data;
  55.     char * post_content_type;
  56.     BOOL   safe;
  57.     char * bookmark;
  58.     BOOL   isHEAD;
  59.     int    link;
  60.     int    page;
  61.     BOOL   internal_link;    /* whether doc was reached via an internal
  62.                  (fragment) link. - kw */
  63.     int    intern_seq_start;    /* indicates which element on the history
  64.                    is the start of this sequence of
  65.                    "internal links", otherwise -1 */
  66. } histstruct;
  67.  
  68. typedef struct _VisitedLink {
  69.     char * title;
  70.     char * address;
  71. } VisitedLink;
  72.  
  73. extern histstruct history[MAXHIST];
  74. extern int nhist;
  75.  
  76. typedef struct _lynx_html_item_type {
  77.     struct _lynx_html_item_type *next;  /* the next item in the linked list */
  78.     char *name;             /* a description of the item */
  79.     char *command;            /* the command to execute */
  80.     int  always_enabled;        /* a constant to tell whether or
  81.                     * not to disable the printer
  82.                     * when the no_print option is on
  83.                     */
  84. } lynx_html_item_type;
  85.  
  86. /* for printer commands */
  87. typedef struct _lynx_printer_item_type {
  88.     struct _lynx_printer_item_type *next; /* next item in the linked list */
  89.     char *name;               /* a description of the item      */
  90.     char *command;              /* the command to execute      */
  91.     int  always_enabled;          /* a constant to tell whether or
  92.                        * not to disable the printer
  93.                        * when the no_print option is on
  94.                        */
  95.     int pagelen;              /* an integer to store the printer's
  96.                        * page length
  97.                        */
  98. } lynx_printer_item_type;
  99. extern lynx_printer_item_type *printers;
  100.  
  101. /* for download commands */
  102. extern lynx_html_item_type *downloaders;
  103.  
  104. /* for upload commands */
  105. extern lynx_html_item_type *uploaders;
  106.  
  107. #ifdef USE_EXTERNALS
  108. /* for external commands */
  109. extern lynx_html_item_type *externals;
  110. #endif
  111.  
  112. #endif /* LYSTRUCTS_H */
  113.