6
#endif /* HTANCHOR_H */
16
short hl_len; /* number of strings in this struct */
24
int l_hightext2_offset;
25
BOOL inUnderline; /* TRUE when this link is in underlined context. */
28
int type; /* Type of link, Forms, WWW, etc. */
29
int anchor_number; /* The anchor number within the HText structure. */
30
int anchor_line_num;/* The anchor line number in the HText structure. */
32
struct _FormInfo *l_form; /* Pointer to form info. */
34
extern LinkInfo links[MAXLINKS];
38
/* FIXME: see DocAddress */
42
char * post_content_type;
49
BOOL internal_link; /* whether doc was reached via an internal
50
(fragment) link. - kw */
51
#ifdef USE_COLOR_STYLE
58
#endif /* HTFORMS_H */
62
int intern_seq_start; /* indicates which element on the history
63
is the start of this sequence of
64
"internal links", otherwise -1 */
67
#define HDOC(n) history[n].hdoc
69
extern int Visited_Links_As;
71
#define VISITED_LINKS_AS_FIRST_V 0
72
#define VISITED_LINKS_AS_TREE 1
73
#define VISITED_LINKS_AS_LATEST 2
74
#define VISITED_LINKS_REVERSE 4
76
typedef struct _VisitedLink {
80
struct _VisitedLink *next_tree;
81
struct _VisitedLink *prev_latest;
82
struct _VisitedLink *next_latest;
83
struct _VisitedLink *prev_first;
86
extern HistInfo history[MAXHIST];
89
/******************************************************************************/
91
typedef struct _lynx_list_item_type {
92
struct _lynx_list_item_type *next; /* the next item in the linked list */
93
char *name; /* a description of the item */
94
char *command; /* the command to execute */
95
int always_enabled; /* a constant to tell whether or
96
* not to disable the printer
97
* when the no_print option is on
100
BOOL override_primary_action; /* whether primary action will be
101
* overridden by this - e.g. this allows
102
* invoking user's MUA when mailto: link
103
* is activated using normal "activate"
104
* command. This field is only examined
105
* by code that handles EXTERNAL command.
108
int pagelen; /* an integer to store the printer's
111
} lynx_list_item_type;
113
extern lynx_list_item_type *printers;
115
/* for download commands */
116
extern lynx_list_item_type *downloaders;
118
/* for upload commands */
119
extern lynx_list_item_type *uploaders;
122
/* for external commands */
123
extern lynx_list_item_type *externals;
126
/******************************************************************************/
135
typedef int (*ParseFunc) PARAMS((char *));
137
#define ParseUnionMembers \
138
lynx_list_item_type** add_value; \
139
BOOLEAN * set_value; \
142
ParseFunc fun_value; \
150
#define ParseUnionPtr Config_Type *
151
#define ParseUnionOf(tbl) tbl
152
#define ParseData ParseUnionMembers
153
#define UNION_ADD(v) &v, 0, 0, 0, 0, 0
154
#define UNION_SET(v) 0, &v, 0, 0, 0, 0
155
#define UNION_INT(v) 0, 0, &v, 0, 0, 0
156
#define UNION_STR(v) 0, 0, 0, &v, 0, 0
157
#define UNION_ENV(v) 0, 0, 0, v, 0, 0
158
#define UNION_FUN(v) 0, 0, 0, 0, v, 0
159
#define UNION_DEF(v) 0, 0, 0, 0, 0, v
161
#define ParseUnionPtr ParseUnion *
162
#define ParseUnionOf(tbl) (ParseUnionPtr)(&(tbl->value))
163
#define ParseData long value
164
#define UNION_ADD(v) (long)&(v)
165
#define UNION_SET(v) (long)&(v)
166
#define UNION_INT(v) (long)&(v)
167
#define UNION_STR(v) (long)&(v)
168
#define UNION_ENV(v) (long) (v)
169
#define UNION_FUN(v) (long) (v)
170
#define UNION_DEF(v) (long) (v)
173
#endif /* LYSTRUCTS_H */