#ifndef LYSTRUCTS_H #define LYSTRUCTS_H #ifndef USERDEFS_H #include "userdefs.h" #endif /* USERDEFS_H */ #ifndef HTANCHOR_H #include "HTAnchor.h" #endif /* HTANCHOR_H */ typedef struct link { char *lname; char *target; char *hightext; char *hightext2; int hightext2_offset; BOOL inUnderline; /* TRUE when this link is in underlined context. */ int lx; int ly; int type; /* Type of link, Forms, WWW, etc. */ int anchor_number; /* The anchor number within the HText structure. */ int anchor_line_num;/* The anchor line number in the HText structure. */ struct _FormInfo *form; /* Pointer to form info. */ } linkstruct; extern linkstruct links[MAXLINKS]; extern int nlinks; typedef struct _document { char * title; char * address; char * post_data; char * post_content_type; BOOL safe; BOOL isHEAD; char * bookmark; int link; int line; BOOL internal_link; /* whether doc was reached via an internal (fragment) link. - kw */ #ifdef USE_HASH char * style; #endif } document; #ifndef HTFORMS_H #include "HTForms.h" #endif /* HTFORMS_H */ typedef struct _histstruct { char * title; char * address; char * post_data; char * post_content_type; BOOL safe; char * bookmark; BOOL isHEAD; int link; int page; BOOL internal_link; /* whether doc was reached via an internal (fragment) link. - kw */ int intern_seq_start; /* indicates which element on the history is the start of this sequence of "internal links", otherwise -1 */ } histstruct; typedef struct _VisitedLink { char * title; char * address; } VisitedLink; extern histstruct history[MAXHIST]; extern int nhist; typedef struct _lynx_html_item_type { struct _lynx_html_item_type *next; /* the next item in the linked list */ char *name; /* a description of the item */ char *command; /* the command to execute */ int always_enabled; /* a constant to tell whether or * not to disable the printer * when the no_print option is on */ } lynx_html_item_type; /* for printer commands */ typedef struct _lynx_printer_item_type { struct _lynx_printer_item_type *next; /* next item in the linked list */ char *name; /* a description of the item */ char *command; /* the command to execute */ int always_enabled; /* a constant to tell whether or * not to disable the printer * when the no_print option is on */ int pagelen; /* an integer to store the printer's * page length */ } lynx_printer_item_type; extern lynx_printer_item_type *printers; /* for download commands */ extern lynx_html_item_type *downloaders; /* for upload commands */ extern lynx_html_item_type *uploaders; #ifdef USE_EXTERNALS /* for external commands */ extern lynx_html_item_type *externals; #endif #endif /* LYSTRUCTS_H */