1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
/* Specialities of GridText as subclass of HText
*/
#ifndef LYGRIDTEXT_H
#define LYGRIDTEXT_H
#include "HText.h" /* Superclass */
#ifndef HTFORMS_H
#include "HTForms.h"
#endif /* HTFORMS_H */
#define LY_UNDERLINE_START_CHAR '\003'
#define LY_UNDERLINE_END_CHAR '\004'
#define LY_BOLD_START_CHAR '\005'
#define LY_BOLD_END_CHAR '\006'
#define LY_SOFT_HYPHEN '\007'
#define IsSpecialAttrChar(a) ((a > '\002') && (a < '\010'))
extern int HTCurSelectGroupType;
extern char * HTCurSelectGroupSize;
extern HText * HTMainText; /* Equivalent of main window */
extern HTParentAnchor * HTMainAnchor; /* Anchor for HTMainText */
#ifdef SHORT_NAMES
#define HText_childNumber HTGTChNu
#define HText_canScrollUp HTGTCaUp
#define HText_canScrollDown HTGTCaDo
#define HText_scrollUp HTGTScUp
#define HText_scrollDown HTGTScDo
#define HText_scrollTop HTGTScTo
#define HText_scrollBottom HTGTScBo
#define HText_sourceAnchors HTGTSoAn
#define HText_setStale HTGTStal
#define HText_refresh HTGTRefr
#endif /* SHORT_NAMES */
extern int WWW_TraceFlag;
extern int HTCacheSize;
extern BOOLEAN mustshow;
#if defined(VMS) && defined(VAXC) && !defined(__DECC)
extern int HTVirtualMemorySize;
#endif /* VMS && VAXC && !__DECC */
extern HTChildAnchor * HText_childNumber PARAMS((int n));
extern void HText_FormDescNumber PARAMS((int n, char **desc));
/* Is there any file left?
*/
extern BOOL HText_canScrollUp PARAMS((HText * text));
extern BOOL HText_canScrollDown NOPARAMS;
/* Move display within window
*/
extern void HText_scrollUp PARAMS((HText * text)); /* One page */
extern void HText_scrollDown PARAMS((HText * text)); /* One page */
extern void HText_scrollTop PARAMS((HText * text));
extern void HText_scrollBottom PARAMS((HText * text));
extern void HText_pageDisplay PARAMS((int line_num, char *target));
extern BOOL HText_pageHasPrevTarget NOPARAMS;
extern int HText_LinksInLines PARAMS((HText *text, int line_num, int Lines));
extern void HText_setLastChar PARAMS((HText *text, char ch));
extern char HText_getLastChar PARAMS((HText *text));
extern void HText_setIgnoreExcess PARAMS((HText *text, BOOL ignore));
extern int HText_sourceAnchors PARAMS((HText * text));
extern void HText_setStale PARAMS((HText * text));
extern void HText_refresh PARAMS((HText * text));
extern char * HText_getTitle NOPARAMS;
extern char * HText_getSugFname NOPARAMS;
extern char * HText_getLastModified NOPARAMS;
extern char * HText_getDate NOPARAMS;
extern char * HText_getServer NOPARAMS;
extern char * HText_getOwner NOPARAMS;
extern char * HText_getContentBase NOPARAMS;
extern char * HText_getContentLocation NOPARAMS;
#ifdef USEHASH
extern char * HText_getStyle NOPARAMS;
#endif
extern void HText_setMainTextOwner PARAMS((CONST char * owner));
extern char * HText_getRevTitle NOPARAMS;
extern void print_wwwfile_to_fd PARAMS((FILE * fp, int is_reply));
extern BOOL HText_select PARAMS((HText *text));
extern BOOL HText_POSTReplyLoaded PARAMS((document *doc));
extern BOOL HTFindPoundSelector PARAMS((char *selector));
extern int HTGetLinkInfo PARAMS((
int number,
int want_go,
int * go_line,
int * linknum,
char ** hightext,
char ** lname));
extern BOOL HText_getFirstTargetInLine PARAMS((
HText * text,
int line_num,
BOOL utf_flag,
int * offset,
int * tLen,
char ** data,
char * target));
extern int HTisDocumentSource NOPARAMS;
extern void HTuncache_current_document NOPARAMS;
extern int HText_getTopOfScreen NOPARAMS;
extern int HText_getLines PARAMS((HText * text));
extern int HText_getNumOfLines NOPARAMS;
extern int do_www_search PARAMS((document *doc));
extern char * HTLoadedDocumentURL NOPARAMS;
extern char * HTLoadedDocumentPost_data NOPARAMS;
extern char * HTLoadedDocumentTitle NOPARAMS;
extern BOOLEAN HTLoadedDocumentIsHEAD NOPARAMS;
extern BOOLEAN HTLoadedDocumentIsSafe NOPARAMS;
extern char * HTLoadedDocumentCharset NOPARAMS;
extern BOOL HTLoadedDocumentEightbit NOPARAMS;
extern void HText_setNodeAnchorBookmark PARAMS((CONST char *bookmark));
extern char * HTLoadedDocumentBookmark NOPARAMS;
extern int HText_LastLineSize PARAMS((HText *me, BOOL IgnoreSpaces));
extern int HText_PreviousLineSize PARAMS((HText *me, BOOL IgnoreSpaces));
extern void HText_NegateLineOne PARAMS((HText *text));
extern void HText_RemovePreviousLine PARAMS((HText *text));
extern int HText_getCurrentColumn PARAMS((HText *text));
extern int HText_getMaximumColumn PARAMS((HText *text));
extern void HText_setTabID PARAMS((HText *text, CONST char *name));
extern int HText_getTabIDColumn PARAMS((HText *text, CONST char *name));
extern int HText_HiddenLinkCount PARAMS((HText *text));
extern char * HText_HiddenLinkAt PARAMS((HText *text, int number));
/* forms stuff */
extern void HText_beginForm PARAMS((
char * action,
char * method,
char * enctype,
char * title));
extern void HText_endForm PARAMS((HText *text));
extern void HText_beginSelect PARAMS((char *name, BOOLEAN multiple, char *len));
extern int HText_getOptionNum PARAMS((HText *text));
extern char * HText_setLastOptionValue PARAMS((
HText * text,
char * value,
char * submit_value,
int order,
BOOLEAN checked));
extern int HText_beginInput PARAMS((
HText * text,
BOOL underline,
InputFieldData *I));
extern void HText_SubmitForm PARAMS((
FormInfo * submit_item,
document * doc,
char * link_name,
char * link_value));
extern void HText_DisableCurrentForm NOPARAMS;
extern void HText_ResetForm PARAMS((FormInfo *form));
extern void HText_activateRadioButton PARAMS((FormInfo *form));
extern HTList * search_queries; /* Previous isindex and whereis queries */
extern void HTSearchQueries_free NOPARAMS;
extern void HTAddSearchQuery PARAMS((char *query));
extern void user_message PARAMS((char * message, char * argument));
#define _user_message(msg, arg) mustshow = TRUE, user_message(msg, arg)
extern void www_user_search PARAMS((int start_line, document *doc, char *target));
extern void print_crawl_to_fd PARAMS((
FILE * fp,
char * thelink,
char * thetitle));
extern char * stub_HTAnchor_address PARAMS((HTAnchor *me));
extern void HText_setToolbar PARAMS((HText *text));
extern BOOL HText_hasToolbar PARAMS((HText *text));
extern void HText_setNoCache PARAMS((HText *text));
extern BOOL HText_hasNoCacheSet PARAMS((HText *text));
extern BOOL HText_hasUTF8OutputSet PARAMS((HText *text));
extern void HText_setKcode PARAMS((HText *text, CONST char *charset));
extern void HText_setBreakPoint PARAMS((HText *text));
extern BOOL HText_AreDifferent PARAMS((
HTParentAnchor * anchor,
CONST char * full_address));
#endif /* LYGRIDTEXT_H */
|