netsurf/utils/corestrings.h

309 lines
13 KiB
C
Raw Normal View History

/*
* Copyright 2012 Michael Drake <tlsa@netsurf-browser.org>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
* NetSurf is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* NetSurf is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/** \file
* Useful interned string pointers (interface).
*/
#ifndef NETSURF_UTILS_CORESTRINGS_H_
#define NETSURF_UTILS_CORESTRINGS_H_
#include <libwapcaplet/libwapcaplet.h>
#include "utils/errors.h"
/** File url prefix. */
#define FILE_SCHEME_PREFIX "file:///"
/** File url prefix length. */
#define FILE_SCHEME_PREFIX_LEN 8
nserror corestrings_init(void);
void corestrings_fini(void);
/* lwc_string strings */
extern lwc_string *corestring_lwc_a;
extern lwc_string *corestring_lwc_about;
extern lwc_string *corestring_lwc_abscenter;
extern lwc_string *corestring_lwc_absmiddle;
extern lwc_string *corestring_lwc_align;
extern lwc_string *corestring_lwc_applet;
extern lwc_string *corestring_lwc_base;
extern lwc_string *corestring_lwc_baseline;
extern lwc_string *corestring_lwc_body;
extern lwc_string *corestring_lwc_bottom;
extern lwc_string *corestring_lwc_button;
extern lwc_string *corestring_lwc_caption;
extern lwc_string *corestring_lwc_center;
extern lwc_string *corestring_lwc_charset;
extern lwc_string *corestring_lwc_checkbox;
extern lwc_string *corestring_lwc_circle;
extern lwc_string *corestring_lwc_col;
extern lwc_string *corestring_lwc_data;
extern lwc_string *corestring_lwc_default;
extern lwc_string *corestring_lwc_div;
extern lwc_string *corestring_lwc_embed;
extern lwc_string *corestring_lwc_file;
2014-01-25 13:53:54 +04:00
extern lwc_string *corestring_lwc_filename;
extern lwc_string *corestring_lwc_font;
2012-07-26 18:57:33 +04:00
extern lwc_string *corestring_lwc_frame;
extern lwc_string *corestring_lwc_frameset;
extern lwc_string *corestring_lwc_h1;
extern lwc_string *corestring_lwc_h2;
extern lwc_string *corestring_lwc_h3;
extern lwc_string *corestring_lwc_h4;
extern lwc_string *corestring_lwc_h5;
extern lwc_string *corestring_lwc_h6;
extern lwc_string *corestring_lwc_head;
extern lwc_string *corestring_lwc_hidden;
extern lwc_string *corestring_lwc_hr;
extern lwc_string *corestring_lwc_html;
extern lwc_string *corestring_lwc_http;
2012-10-08 22:26:35 +04:00
extern lwc_string *corestring_lwc_https;
2014-01-25 03:13:18 +04:00
extern lwc_string *corestring_lwc_icon;
extern lwc_string *corestring_lwc_iframe;
extern lwc_string *corestring_lwc_image;
extern lwc_string *corestring_lwc_img;
extern lwc_string *corestring_lwc_input;
extern lwc_string *corestring_lwc_javascript;
extern lwc_string *corestring_lwc_justify;
extern lwc_string *corestring_lwc_left;
extern lwc_string *corestring_lwc_li;
extern lwc_string *corestring_lwc_link;
2016-01-08 20:16:42 +03:00
extern lwc_string *corestring_lwc_mailto;
2012-07-26 17:49:27 +04:00
extern lwc_string *corestring_lwc_meta;
extern lwc_string *corestring_lwc_middle;
2014-01-25 03:13:18 +04:00
extern lwc_string *corestring_lwc_multipart_form_data; /* multipart/form-data */
2012-07-26 18:57:33 +04:00
extern lwc_string *corestring_lwc_no;
2012-07-26 17:49:27 +04:00
extern lwc_string *corestring_lwc_noscript;
extern lwc_string *corestring_lwc_object;
2012-07-26 18:57:33 +04:00
extern lwc_string *corestring_lwc_optgroup;
extern lwc_string *corestring_lwc_option;
extern lwc_string *corestring_lwc_p;
2012-07-26 18:57:33 +04:00
extern lwc_string *corestring_lwc_param;
extern lwc_string *corestring_lwc_password;
extern lwc_string *corestring_lwc_poly;
extern lwc_string *corestring_lwc_polygon;
extern lwc_string *corestring_lwc_post;
extern lwc_string *corestring_lwc_radio;
extern lwc_string *corestring_lwc_rect;
extern lwc_string *corestring_lwc_rectangle;
2012-07-26 17:49:27 +04:00
extern lwc_string *corestring_lwc_refresh;
extern lwc_string *corestring_lwc_reset;
extern lwc_string *corestring_lwc_resource;
extern lwc_string *corestring_lwc_right;
extern lwc_string *corestring_lwc_search;
extern lwc_string *corestring_lwc_select;
2014-01-25 03:13:18 +04:00
extern lwc_string *corestring_lwc_shortcut_icon; /* shortcut icon */
2012-07-26 18:57:33 +04:00
extern lwc_string *corestring_lwc_src;
2012-07-26 17:49:27 +04:00
extern lwc_string *corestring_lwc_style;
extern lwc_string *corestring_lwc_submit;
extern lwc_string *corestring_lwc_table;
extern lwc_string *corestring_lwc_tbody;
extern lwc_string *corestring_lwc_td;
extern lwc_string *corestring_lwc_text;
extern lwc_string *corestring_lwc_textarea;
extern lwc_string *corestring_lwc_texttop;
2014-01-25 03:13:18 +04:00
extern lwc_string *corestring_lwc_text_css; /* text/css */
extern lwc_string *corestring_lwc_tfoot;
extern lwc_string *corestring_lwc_th;
extern lwc_string *corestring_lwc_thead;
extern lwc_string *corestring_lwc_title;
extern lwc_string *corestring_lwc_top;
extern lwc_string *corestring_lwc_tr;
extern lwc_string *corestring_lwc_ul;
2012-07-26 17:49:27 +04:00
extern lwc_string *corestring_lwc_url;
2012-07-26 18:57:33 +04:00
extern lwc_string *corestring_lwc_yes;
extern lwc_string *corestring_lwc__blank;
extern lwc_string *corestring_lwc__parent;
extern lwc_string *corestring_lwc__self;
extern lwc_string *corestring_lwc__top;
2014-10-31 01:25:31 +03:00
extern lwc_string *corestring_lwc_slash_; /* / */
struct dom_string;
/* dom_string strings */
extern struct dom_string *corestring_dom_a;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_alt;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_abort;
extern struct dom_string *corestring_dom_afterprint;
extern struct dom_string *corestring_dom_align;
extern struct dom_string *corestring_dom_area;
2012-07-27 19:59:49 +04:00
extern struct dom_string *corestring_dom_async;
extern struct dom_string *corestring_dom_background;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_beforeprint;
extern struct dom_string *corestring_dom_beforeunload;
extern struct dom_string *corestring_dom_bgcolor;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_blur;
extern struct dom_string *corestring_dom_border;
extern struct dom_string *corestring_dom_bordercolor;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_cancel;
extern struct dom_string *corestring_dom_canplay;
extern struct dom_string *corestring_dom_canplaythrough;
extern struct dom_string *corestring_dom_cellpadding;
extern struct dom_string *corestring_dom_cellspacing;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_change;
extern struct dom_string *corestring_dom_charset;
2013-01-23 21:00:13 +04:00
extern struct dom_string *corestring_dom_class;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_classid;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_click;
extern struct dom_string *corestring_dom_close;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_codebase;
extern struct dom_string *corestring_dom_color;
extern struct dom_string *corestring_dom_cols;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_colspan;
extern struct dom_string *corestring_dom_content;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_contextmenu;
extern struct dom_string *corestring_dom_coords;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_cuechange;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_data;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_dblclick;
2012-07-27 19:59:49 +04:00
extern struct dom_string *corestring_dom_defer;
extern struct dom_string *corestring_dom_DOMAttrModified;
extern struct dom_string *corestring_dom_DOMNodeInserted;
extern struct dom_string *corestring_dom_DOMNodeInsertedIntoDocument;
extern struct dom_string *corestring_dom_DOMSubtreeModified;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_drag;
extern struct dom_string *corestring_dom_dragend;
extern struct dom_string *corestring_dom_dragenter;
extern struct dom_string *corestring_dom_dragleave;
extern struct dom_string *corestring_dom_dragover;
extern struct dom_string *corestring_dom_dragstart;
extern struct dom_string *corestring_dom_drop;
extern struct dom_string *corestring_dom_durationchange;
extern struct dom_string *corestring_dom_emptied;
extern struct dom_string *corestring_dom_ended;
extern struct dom_string *corestring_dom_error;
extern struct dom_string *corestring_dom_focus;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_frameborder;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_hashchange;
extern struct dom_string *corestring_dom_height;
extern struct dom_string *corestring_dom_href;
extern struct dom_string *corestring_dom_hreflang;
extern struct dom_string *corestring_dom_hspace;
2014-01-25 03:13:18 +04:00
extern struct dom_string *corestring_dom_http_equiv; /* http-equiv */
extern struct dom_string *corestring_dom_id;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_input;
extern struct dom_string *corestring_dom_invalid;
extern struct dom_string *corestring_dom_keydown;
extern struct dom_string *corestring_dom_keypress;
extern struct dom_string *corestring_dom_keyup;
extern struct dom_string *corestring_dom_link;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_load;
extern struct dom_string *corestring_dom_loadeddata;
extern struct dom_string *corestring_dom_loadedmetadata;
extern struct dom_string *corestring_dom_loadstart;
extern struct dom_string *corestring_dom_map;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_marginheight;
extern struct dom_string *corestring_dom_marginwidth;
extern struct dom_string *corestring_dom_media;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_message;
extern struct dom_string *corestring_dom_mousedown;
extern struct dom_string *corestring_dom_mousemove;
extern struct dom_string *corestring_dom_mouseout;
extern struct dom_string *corestring_dom_mouseover;
extern struct dom_string *corestring_dom_mouseup;
extern struct dom_string *corestring_dom_mousewheel;
extern struct dom_string *corestring_dom_name;
extern struct dom_string *corestring_dom_nohref;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_noresize;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_offline;
extern struct dom_string *corestring_dom_online;
extern struct dom_string *corestring_dom_pagehide;
extern struct dom_string *corestring_dom_pageshow;
extern struct dom_string *corestring_dom_pause;
extern struct dom_string *corestring_dom_play;
extern struct dom_string *corestring_dom_playing;
extern struct dom_string *corestring_dom_popstate;
extern struct dom_string *corestring_dom_progress;
extern struct dom_string *corestring_dom_ratechange;
extern struct dom_string *corestring_dom_readystatechange;
extern struct dom_string *corestring_dom_rect;
extern struct dom_string *corestring_dom_rel;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_reset;
extern struct dom_string *corestring_dom_resize;
extern struct dom_string *corestring_dom_rows;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_rowspan;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_scroll;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_scrolling;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_seeked;
extern struct dom_string *corestring_dom_seeking;
extern struct dom_string *corestring_dom_select;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_selected;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_shape;
extern struct dom_string *corestring_dom_show;
extern struct dom_string *corestring_dom_size;
extern struct dom_string *corestring_dom_sizes;
extern struct dom_string *corestring_dom_src;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_stalled;
extern struct dom_string *corestring_dom_storage;
extern struct dom_string *corestring_dom_style;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_submit;
extern struct dom_string *corestring_dom_suspend;
extern struct dom_string *corestring_dom_target;
extern struct dom_string *corestring_dom_text;
2014-01-25 03:13:18 +04:00
extern struct dom_string *corestring_dom_text_javascript; /* text/javascript */
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_timeupdate;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_title;
extern struct dom_string *corestring_dom_type;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_unload;
extern struct dom_string *corestring_dom_valign;
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom_value;
extern struct dom_string *corestring_dom_vlink;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_volumechange;
extern struct dom_string *corestring_dom_vspace;
2012-11-28 21:19:49 +04:00
extern struct dom_string *corestring_dom_waiting;
extern struct dom_string *corestring_dom_width;
/* DOM node types */
extern struct dom_string *corestring_dom_BUTTON;
extern struct dom_string *corestring_dom_INPUT;
extern struct dom_string *corestring_dom_SELECT;
extern struct dom_string *corestring_dom_TEXTAREA;
extern struct dom_string *corestring_dom_BODY;
extern struct dom_string *corestring_dom_HEAD;
/* DOM namespaces */
extern struct dom_string *corestring_dom_html_namespace;
/* DOM input node types */
extern struct dom_string *corestring_dom_button;
/* extern struct dom_string *corestring_dom_submit; */
/* extern struct dom_string *corestring_dom_reset; */
extern struct dom_string *corestring_dom_image;
extern struct dom_string *corestring_dom_radio;
extern struct dom_string *corestring_dom_checkbox;
extern struct dom_string *corestring_dom_file;
/* Event prefix */
extern struct dom_string *corestring_dom_on;
/* These are the event attributes which forward from body to window */
extern struct dom_string *corestring_dom_onblur;
extern struct dom_string *corestring_dom_onerror;
extern struct dom_string *corestring_dom_onfocus;
extern struct dom_string *corestring_dom_onload;
extern struct dom_string *corestring_dom_onresize;
extern struct dom_string *corestring_dom_onscroll;
/* DOM userdata keys */
2014-01-24 22:58:12 +04:00
extern struct dom_string *corestring_dom___ns_key_box_node_data;
extern struct dom_string *corestring_dom___ns_key_libcss_node_data;
extern struct dom_string *corestring_dom___ns_key_file_name_node_data;
2014-01-05 20:14:17 +04:00
extern struct dom_string *corestring_dom___ns_key_image_coords_node_data;
extern struct dom_string *corestring_dom___ns_key_html_content_data;
2014-02-08 19:00:08 +04:00
/* URLs */
extern struct nsurl *corestring_nsurl_about_blank;
2012-11-28 21:19:49 +04:00
#endif