NetSurf
utils
corestringlist.h
Go to the documentation of this file.
1
/*
2
* Copyright 2012 Vincent Sanders <vince@netsurf-browser.org>
3
*
4
* This file is part of NetSurf, http://www.netsurf-browser.org/
5
*
6
* NetSurf is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* NetSurf is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/**
20
* \file
21
* Core string lists
22
*
23
* three macros must be defined to use this header
24
* CORESTRING_LWC_VALUE - wapcaplet strings with a value not derived from name
25
* CORESTRING_DOM_VALUE - dom strings with a value not derived from name
26
* CORESTRING_NSURL - nsurl from given url
27
*
28
* two helper macros are defined that allow simple mapping strings
29
* CORESTRING_LWC_STRING - libwapcaplet strings with a simple name value mapping
30
* CORESTRING_DOM_STRING - dom strings with a simple name value mapping
31
*
32
* \note This header is specificaly intented to be included multiple
33
* times with different macro definitions so there is no guard.
34
*/
35
36
#if !defined(CORESTRING_LWC_VALUE) | !defined(CORESTRING_DOM_VALUE) | !defined(CORESTRING_NSURL)
37
#error "missing macro definition. This header must not be directly included"
38
#endif
39
40
#undef CORESTRING_LWC_STRING
41
#define CORESTRING_LWC_STRING(NAME) CORESTRING_LWC_VALUE(NAME, #NAME)
42
43
#undef CORESTRING_DOM_STRING
44
#define CORESTRING_DOM_STRING(NAME) CORESTRING_DOM_VALUE(NAME, #NAME);
45
46
/* lwc_string strings */
47
CORESTRING_LWC_STRING
(a);
48
CORESTRING_LWC_STRING
(about);
49
CORESTRING_LWC_STRING
(abscenter);
50
CORESTRING_LWC_STRING
(absmiddle);
51
CORESTRING_LWC_STRING
(align);
52
CORESTRING_LWC_STRING
(applet);
53
CORESTRING_LWC_STRING
(
base
);
54
CORESTRING_LWC_STRING
(baseline);
55
CORESTRING_LWC_STRING
(body);
56
CORESTRING_LWC_STRING
(bottom);
57
CORESTRING_LWC_STRING
(button);
58
CORESTRING_LWC_STRING
(caption);
59
CORESTRING_LWC_STRING
(charset);
60
CORESTRING_LWC_STRING
(center);
61
CORESTRING_LWC_STRING
(checkbox);
62
CORESTRING_LWC_STRING
(circle);
63
CORESTRING_LWC_STRING
(col);
64
CORESTRING_LWC_STRING
(data);
65
CORESTRING_LWC_STRING
(
default
);
66
CORESTRING_LWC_STRING
(div);
67
CORESTRING_LWC_STRING
(embed);
68
CORESTRING_LWC_STRING
(file);
69
CORESTRING_LWC_STRING
(filename);
70
CORESTRING_LWC_STRING
(font);
71
CORESTRING_LWC_STRING
(frame);
72
CORESTRING_LWC_STRING
(frameset);
73
CORESTRING_LWC_STRING
(ftp);
74
CORESTRING_LWC_STRING
(h1);
75
CORESTRING_LWC_STRING
(h2);
76
CORESTRING_LWC_STRING
(h3);
77
CORESTRING_LWC_STRING
(h4);
78
CORESTRING_LWC_STRING
(h5);
79
CORESTRING_LWC_STRING
(h6);
80
CORESTRING_LWC_STRING
(head);
81
CORESTRING_LWC_STRING
(hidden);
82
CORESTRING_LWC_STRING
(hr);
83
CORESTRING_LWC_STRING
(html);
84
CORESTRING_LWC_STRING
(http);
85
CORESTRING_LWC_STRING
(https);
86
CORESTRING_LWC_STRING
(icon);
87
CORESTRING_LWC_STRING
(iframe);
88
CORESTRING_LWC_STRING
(image);
89
CORESTRING_LWC_STRING
(img);
90
CORESTRING_LWC_STRING
(includesubdomains);
91
CORESTRING_LWC_STRING
(input);
92
CORESTRING_LWC_STRING
(javascript);
93
CORESTRING_LWC_STRING
(justify);
94
CORESTRING_LWC_STRING
(left);
95
CORESTRING_LWC_STRING
(li);
96
CORESTRING_LWC_STRING
(link);
97
CORESTRING_LWC_STRING
(mailto);
98
CORESTRING_LWC_STRING
(meta);
99
CORESTRING_LWC_STRING
(middle);
100
CORESTRING_LWC_STRING
(no);
101
CORESTRING_LWC_STRING
(noscript);
102
CORESTRING_LWC_STRING
(
object
);
103
CORESTRING_LWC_STRING
(optgroup);
104
CORESTRING_LWC_STRING
(option);
105
CORESTRING_LWC_STRING
(p);
106
CORESTRING_LWC_STRING
(param);
107
CORESTRING_LWC_STRING
(password);
108
CORESTRING_LWC_STRING
(poly);
109
CORESTRING_LWC_STRING
(
polygon
);
110
CORESTRING_LWC_STRING
(post);
111
CORESTRING_LWC_STRING
(radio);
112
CORESTRING_LWC_STRING
(
rect
);
113
CORESTRING_LWC_STRING
(
rectangle
);
114
CORESTRING_LWC_STRING
(refresh);
115
CORESTRING_LWC_STRING
(reset);
116
CORESTRING_LWC_STRING
(resource);
117
CORESTRING_LWC_STRING
(right);
118
CORESTRING_LWC_STRING
(search);
119
CORESTRING_LWC_STRING
(select);
120
CORESTRING_LWC_STRING
(src);
121
CORESTRING_LWC_STRING
(style);
122
CORESTRING_LWC_STRING
(submit);
123
CORESTRING_LWC_STRING
(table);
124
CORESTRING_LWC_STRING
(tbody);
125
CORESTRING_LWC_STRING
(td);
126
CORESTRING_LWC_STRING
(
text
);
127
CORESTRING_LWC_STRING
(
textarea
);
128
CORESTRING_LWC_STRING
(texttop);
129
CORESTRING_LWC_STRING
(tfoot);
130
CORESTRING_LWC_STRING
(th);
131
CORESTRING_LWC_STRING
(thead);
132
CORESTRING_LWC_STRING
(title);
133
CORESTRING_LWC_STRING
(top);
134
CORESTRING_LWC_STRING
(tr);
135
CORESTRING_LWC_STRING
(ul);
136
CORESTRING_LWC_STRING
(url);
137
CORESTRING_LWC_STRING
(yes);
138
CORESTRING_LWC_STRING
(_blank);
139
CORESTRING_LWC_STRING
(_parent);
140
CORESTRING_LWC_STRING
(_self);
141
CORESTRING_LWC_STRING
(_top);
142
CORESTRING_LWC_STRING
(443);
143
144
/* unusual lwc strings */
145
CORESTRING_LWC_VALUE
(shortcut_icon,
"shortcut icon"
);
146
CORESTRING_LWC_VALUE
(slash_,
"/"
);
147
CORESTRING_LWC_VALUE
(max_age,
"max-age"
);
148
CORESTRING_LWC_VALUE
(no_cache,
"no-cache"
);
149
CORESTRING_LWC_VALUE
(no_store,
"no-store"
);
150
CORESTRING_LWC_VALUE
(query_auth,
"query/auth"
);
151
CORESTRING_LWC_VALUE
(query_ssl,
"query/ssl"
);
152
CORESTRING_LWC_VALUE
(query_timeout,
"query/timeout"
);
153
CORESTRING_LWC_VALUE
(query_fetcherror,
"query/fetcherror"
);
154
CORESTRING_LWC_VALUE
(x_ns_css,
"x-ns-css"
);
155
156
/* mime types */
157
CORESTRING_LWC_VALUE
(multipart_form_data,
"multipart/form-data"
);
158
CORESTRING_LWC_VALUE
(text_css,
"text/css"
);
159
CORESTRING_LWC_VALUE
(unknown_unknown,
"unknown/unknown"
);
160
CORESTRING_LWC_VALUE
(application_unknown,
"application/unknown"
);
161
CORESTRING_LWC_VALUE
(any,
"*/*"
);
162
CORESTRING_LWC_VALUE
(text_xml,
"text/xml"
);
163
CORESTRING_LWC_VALUE
(application_xml,
"application/xml"
);
164
CORESTRING_LWC_VALUE
(text_html,
"text/html"
);
165
CORESTRING_LWC_VALUE
(text_plain,
"text/plain"
);
166
CORESTRING_LWC_VALUE
(application_octet_stream,
"application/octet-stream"
);
167
CORESTRING_LWC_VALUE
(image_gif,
"image/gif"
);
168
CORESTRING_LWC_VALUE
(image_png,
"image/png"
);
169
CORESTRING_LWC_VALUE
(image_jpeg,
"image/jpeg"
);
170
CORESTRING_LWC_VALUE
(image_jxl,
"image/jxl"
);
171
CORESTRING_LWC_VALUE
(image_bmp,
"image/bmp"
);
172
CORESTRING_LWC_VALUE
(image_vnd_microsoft_icon,
"image/vnd.microsoft.icon"
);
173
CORESTRING_LWC_VALUE
(image_webp,
"image/webp"
);
174
CORESTRING_LWC_VALUE
(application_rss_xml,
"application/rss+xml"
);
175
CORESTRING_LWC_VALUE
(application_atom_xml,
"application/atom+xml"
);
176
CORESTRING_LWC_VALUE
(audio_wave,
"audio/wave"
);
177
CORESTRING_LWC_VALUE
(application_ogg,
"application/ogg"
);
178
CORESTRING_LWC_VALUE
(video_webm,
"video/webm"
);
179
CORESTRING_LWC_VALUE
(application_x_rar_compressed,
"application/x-rar-compressed"
);
180
CORESTRING_LWC_VALUE
(application_zip,
"application/zip"
);
181
CORESTRING_LWC_VALUE
(application_x_gzip,
"application/x-gzip"
);
182
CORESTRING_LWC_VALUE
(application_postscript,
"application/postscript"
);
183
CORESTRING_LWC_VALUE
(application_pdf,
"application/pdf"
);
184
CORESTRING_LWC_VALUE
(video_mp4,
"video/mp4"
);
185
CORESTRING_LWC_VALUE
(image_svg,
"image/svg+xml"
);
186
187
188
/* DOM strings */
189
CORESTRING_DOM_STRING
(a);
190
CORESTRING_DOM_STRING
(abort);
191
CORESTRING_DOM_STRING
(afterprint);
192
CORESTRING_DOM_STRING
(align);
193
CORESTRING_DOM_STRING
(alt);
194
CORESTRING_DOM_STRING
(area);
195
CORESTRING_DOM_STRING
(ArrowDown);
196
CORESTRING_DOM_STRING
(ArrowLeft);
197
CORESTRING_DOM_STRING
(ArrowRight);
198
CORESTRING_DOM_STRING
(ArrowUp);
199
CORESTRING_DOM_STRING
(async);
200
CORESTRING_DOM_STRING
(background);
201
CORESTRING_DOM_STRING
(beforeprint);
202
CORESTRING_DOM_STRING
(beforeunload);
203
CORESTRING_DOM_STRING
(bgcolor);
204
CORESTRING_DOM_STRING
(blur);
205
CORESTRING_DOM_STRING
(
border
);
206
CORESTRING_DOM_STRING
(bordercolor);
207
CORESTRING_DOM_STRING
(cancel);
208
CORESTRING_DOM_STRING
(canplay);
209
CORESTRING_DOM_STRING
(canplaythrough);
210
CORESTRING_DOM_STRING
(cellpadding);
211
CORESTRING_DOM_STRING
(cellspacing);
212
CORESTRING_DOM_STRING
(change);
213
CORESTRING_DOM_STRING
(charset);
214
CORESTRING_DOM_STRING
(
class
);
215
CORESTRING_DOM_STRING
(classid);
216
CORESTRING_DOM_STRING
(click);
217
CORESTRING_DOM_STRING
(close);
218
CORESTRING_DOM_STRING
(codebase);
219
CORESTRING_DOM_STRING
(color);
220
CORESTRING_DOM_STRING
(cols);
221
CORESTRING_DOM_STRING
(colspan);
222
CORESTRING_DOM_STRING
(
content
);
223
CORESTRING_DOM_STRING
(contextmenu);
224
CORESTRING_DOM_STRING
(coords);
225
CORESTRING_DOM_STRING
(cuechange);
226
CORESTRING_DOM_STRING
(data);
227
CORESTRING_DOM_STRING
(dblclick);
228
CORESTRING_DOM_STRING
(defer);
229
CORESTRING_DOM_STRING
(DOMAttrModified);
230
CORESTRING_DOM_STRING
(DOMNodeInserted);
231
CORESTRING_DOM_STRING
(DOMNodeInsertedIntoDocument);
232
CORESTRING_DOM_STRING
(DOMSubtreeModified);
233
CORESTRING_DOM_STRING
(drag);
234
CORESTRING_DOM_STRING
(dragend);
235
CORESTRING_DOM_STRING
(dragenter);
236
CORESTRING_DOM_STRING
(dragleave);
237
CORESTRING_DOM_STRING
(dragover);
238
CORESTRING_DOM_STRING
(dragstart);
239
CORESTRING_DOM_STRING
(drop);
240
CORESTRING_DOM_STRING
(durationchange);
241
CORESTRING_DOM_STRING
(emptied);
242
CORESTRING_DOM_STRING
(End);
243
CORESTRING_DOM_STRING
(ended);
244
CORESTRING_DOM_STRING
(error);
245
CORESTRING_DOM_STRING
(Escape);
246
CORESTRING_DOM_STRING
(focus);
247
CORESTRING_DOM_STRING
(frameborder);
248
CORESTRING_DOM_STRING
(hashchange);
249
CORESTRING_DOM_STRING
(
height
);
250
CORESTRING_DOM_STRING
(Home);
251
CORESTRING_DOM_STRING
(href);
252
CORESTRING_DOM_STRING
(hreflang);
253
CORESTRING_DOM_STRING
(hspace);
254
/* http-equiv: see below */
255
CORESTRING_DOM_STRING
(
id
);
256
CORESTRING_DOM_STRING
(input);
257
CORESTRING_DOM_STRING
(invalid);
258
CORESTRING_DOM_STRING
(keydown);
259
CORESTRING_DOM_STRING
(keypress);
260
CORESTRING_DOM_STRING
(keyup);
261
CORESTRING_DOM_STRING
(link);
262
CORESTRING_DOM_STRING
(languagechange);
263
CORESTRING_DOM_STRING
(load);
264
CORESTRING_DOM_STRING
(loadeddata);
265
CORESTRING_DOM_STRING
(loadedmetadata);
266
CORESTRING_DOM_STRING
(loadstart);
267
CORESTRING_DOM_STRING
(map);
268
CORESTRING_DOM_STRING
(marginheight);
269
CORESTRING_DOM_STRING
(marginwidth);
270
CORESTRING_DOM_STRING
(media);
271
CORESTRING_DOM_STRING
(message);
272
CORESTRING_DOM_STRING
(mousedown);
273
CORESTRING_DOM_STRING
(mousemove);
274
CORESTRING_DOM_STRING
(mouseout);
275
CORESTRING_DOM_STRING
(mouseover);
276
CORESTRING_DOM_STRING
(mouseup);
277
CORESTRING_DOM_STRING
(mousewheel);
278
CORESTRING_DOM_STRING
(name);
279
CORESTRING_DOM_STRING
(nohref);
280
CORESTRING_DOM_STRING
(noresize);
281
CORESTRING_DOM_STRING
(nowrap);
282
CORESTRING_DOM_STRING
(offline);
283
CORESTRING_DOM_STRING
(online);
284
CORESTRING_DOM_STRING
(PageDown);
285
CORESTRING_DOM_STRING
(pagehide);
286
CORESTRING_DOM_STRING
(pageshow);
287
CORESTRING_DOM_STRING
(PageUp);
288
CORESTRING_DOM_STRING
(pause);
289
CORESTRING_DOM_STRING
(play);
290
CORESTRING_DOM_STRING
(playing);
291
CORESTRING_DOM_STRING
(popstate);
292
CORESTRING_DOM_STRING
(progress);
293
CORESTRING_DOM_STRING
(ratechange);
294
CORESTRING_DOM_STRING
(readystatechange);
295
CORESTRING_DOM_STRING
(
rect
);
296
CORESTRING_DOM_STRING
(rel);
297
CORESTRING_DOM_STRING
(reset);
298
CORESTRING_DOM_STRING
(resize);
299
CORESTRING_DOM_STRING
(reversed);
300
CORESTRING_DOM_STRING
(rows);
301
CORESTRING_DOM_STRING
(rowspan);
302
CORESTRING_DOM_STRING
(scroll);
303
CORESTRING_DOM_STRING
(scrolling);
304
CORESTRING_DOM_STRING
(seeked);
305
CORESTRING_DOM_STRING
(seeking);
306
CORESTRING_DOM_STRING
(select);
307
CORESTRING_DOM_STRING
(selected);
308
CORESTRING_DOM_STRING
(shape);
309
CORESTRING_DOM_STRING
(show);
310
CORESTRING_DOM_STRING
(size);
311
CORESTRING_DOM_STRING
(sizes);
312
CORESTRING_DOM_STRING
(src);
313
CORESTRING_DOM_STRING
(stalled);
314
CORESTRING_DOM_STRING
(start);
315
CORESTRING_DOM_STRING
(storage);
316
CORESTRING_DOM_STRING
(style);
317
CORESTRING_DOM_STRING
(submit);
318
CORESTRING_DOM_STRING
(suspend);
319
CORESTRING_DOM_STRING
(target);
320
CORESTRING_DOM_STRING
(
text
);
321
CORESTRING_DOM_STRING
(timeupdate);
322
CORESTRING_DOM_STRING
(title);
323
CORESTRING_DOM_STRING
(
type
);
324
CORESTRING_DOM_STRING
(unload);
325
CORESTRING_DOM_STRING
(valign);
326
CORESTRING_DOM_STRING
(value);
327
CORESTRING_DOM_STRING
(vlink);
328
CORESTRING_DOM_STRING
(volumechange);
329
CORESTRING_DOM_STRING
(vspace);
330
CORESTRING_DOM_STRING
(waiting);
331
CORESTRING_DOM_STRING
(
width
);
332
/* DOM node names, not really CSS */
333
CORESTRING_DOM_STRING
(BUTTON);
334
CORESTRING_DOM_STRING
(HTML);
335
CORESTRING_DOM_STRING
(INPUT);
336
CORESTRING_DOM_STRING
(SELECT);
337
CORESTRING_DOM_STRING
(TEXTAREA);
338
CORESTRING_DOM_STRING
(TITLE);
339
CORESTRING_DOM_STRING
(BODY);
340
CORESTRING_DOM_STRING
(HEAD);
341
CORESTRING_DOM_STRING
(SCRIPT);
342
/* DOM input types, not really CSS */
343
CORESTRING_DOM_STRING
(button);
344
CORESTRING_DOM_STRING
(image);
345
CORESTRING_DOM_STRING
(radio);
346
CORESTRING_DOM_STRING
(checkbox);
347
CORESTRING_DOM_STRING
(file);
348
/* DOM event prefix */
349
CORESTRING_DOM_STRING
(on);
350
/* DOM events forwarded from body to window */
351
CORESTRING_DOM_STRING
(onblur);
352
CORESTRING_DOM_STRING
(onerror);
353
CORESTRING_DOM_STRING
(onfocus);
354
CORESTRING_DOM_STRING
(onload);
355
CORESTRING_DOM_STRING
(onresize);
356
CORESTRING_DOM_STRING
(onscroll);
357
/* Corestrings used by DOM event registration */
358
CORESTRING_DOM_STRING
(autocomplete);
359
CORESTRING_DOM_STRING
(autocompleteerror);
360
CORESTRING_DOM_STRING
(dragexit);
361
CORESTRING_DOM_STRING
(mouseenter);
362
CORESTRING_DOM_STRING
(mouseleave);
363
CORESTRING_DOM_STRING
(wheel);
364
CORESTRING_DOM_STRING
(sort);
365
CORESTRING_DOM_STRING
(toggle);
366
/* DOM userdata keys, not really CSS */
367
CORESTRING_DOM_STRING
(__ns_key_box_node_data);
368
CORESTRING_DOM_STRING
(__ns_key_libcss_node_data);
369
CORESTRING_DOM_STRING
(__ns_key_file_name_node_data);
370
CORESTRING_DOM_STRING
(__ns_key_image_coords_node_data);
371
CORESTRING_DOM_STRING
(__ns_key_html_content_data);
372
CORESTRING_DOM_STRING
(__ns_key_canvas_node_data);
373
374
/* unusual DOM strings */
375
CORESTRING_DOM_VALUE
(text_javascript,
"text/javascript"
);
376
CORESTRING_DOM_VALUE
(http_equiv,
"http-equiv"
);
377
CORESTRING_DOM_VALUE
(html_namespace,
"http://www.w3.org/1999/xhtml"
);
378
379
CORESTRING_NSURL
(about_blank,
"about:blank"
);
380
CORESTRING_NSURL
(about_query_ssl,
"about:query/ssl"
);
381
CORESTRING_NSURL
(about_query_auth,
"about:query/auth"
);
382
CORESTRING_NSURL
(about_query_timeout,
"about:query/timeout"
);
383
CORESTRING_NSURL
(about_query_fetcherror,
"about:query/fetcherror"
);
384
385
#undef CORESTRING_LWC_STRING
386
#undef CORESTRING_DOM_STRING
CORESTRING_NSURL
CORESTRING_NSURL(about_blank, "about:blank")
CORESTRING_DOM_VALUE
CORESTRING_DOM_VALUE(text_javascript, "text/javascript")
CORESTRING_DOM_STRING
#define CORESTRING_DOM_STRING(NAME)
Definition:
corestringlist.h:44
CORESTRING_LWC_VALUE
CORESTRING_LWC_VALUE(shortcut_icon, "shortcut icon")
CORESTRING_LWC_STRING
#define CORESTRING_LWC_STRING(NAME)
Definition:
corestringlist.h:41
type
const char * type
Definition:
filetype.cpp:44
base
@ base
Definition:
punycode.c:19
width
int width
Definition:
gui.c:160
height
int height
Definition:
gui.c:161
border
Container for border values during table border calculations.
Definition:
table.c:42
content
Content which corresponds to a single URL.
Definition:
content_protected.h:180
rect
Rectangle coordinates.
Definition:
types.h:40
textarea
Definition:
textarea.c:91
text
static nserror text(const struct redraw_context *ctx, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length)
Text plotting.
Definition:
plot.c:978
rectangle
static nserror rectangle(const struct redraw_context *ctx, const plot_style_t *style, const struct rect *rect)
Plots a rectangle.
Definition:
plot.c:648
polygon
static nserror polygon(const struct redraw_context *ctx, const plot_style_t *style, const int *p, unsigned int n)
Plot a polygon.
Definition:
plot.c:733
Generated on Wed Dec 18 2024 10:31:35 for NetSurf by
1.9.4