NC_ not working here, remove it
[claws.git] / src / plugins / litehtml_viewer / litehtml / string_id.h
blob2c90fc6590fcbd5267b73f70e1c36f8bad7d40b3
1 #ifndef LH_STRING_ID_H
2 #define LH_STRING_ID_H
4 namespace litehtml
7 #define STRING_ID(...)\
8 enum string_id { __VA_ARGS__ };\
9 const auto initial_string_ids = #__VA_ARGS__;
11 STRING_ID(
13 // HTML tags
14 _a_,
15 _abbr_,
16 _acronym_,
17 _address_,
18 _applet_,
19 _area_,
20 _article_,
21 _aside_,
22 _audio_,
23 _b_,
24 _base_,
25 _basefont_,
26 _bdi_,
27 _bdo_,
28 _big_,
29 _blockquote_,
30 _body_,
31 _br_,
32 _button_,
33 _canvas_,
34 _caption_,
35 _center_,
36 _cite_,
37 _code_,
38 _col_,
39 _colgroup_,
40 _data_,
41 _datalist_,
42 _dd_,
43 _del_,
44 _details_,
45 _dfn_,
46 _dialog_,
47 _dir_,
48 _div_,
49 _dl_,
50 _dt_,
51 _em_,
52 _embed_,
53 _fieldset_,
54 _figcaption_,
55 _figure_,
56 _footer_,
57 _form_,
58 _frame_,
59 _frameset_,
60 _h1_,
61 _h2_,
62 _h3_,
63 _h4_,
64 _h5_,
65 _h6_,
66 _head_,
67 _header_,
68 _hr_,
69 _html_,
70 _i_,
71 _iframe_,
72 _img_,
73 _input_,
74 _ins_,
75 _kbd_,
76 _label_,
77 _legend_,
78 _li_,
79 _link_,
80 _main_,
81 _map_,
82 _mark_,
83 _meta_,
84 _meter_,
85 _nav_,
86 _noframes_,
87 _noscript_,
88 _object_,
89 _ol_,
90 _optgroup_,
91 _option_,
92 _output_,
93 _p_,
94 _param_,
95 _picture_,
96 _pre_,
97 _progress_,
98 _q_,
99 _rp_,
100 _rt_,
101 _ruby_,
102 _s_,
103 _samp_,
104 _script_,
105 _section_,
106 _select_,
107 _small_,
108 _source_,
109 _span_,
110 _strike_,
111 _strong_,
112 _style_,
113 _sub_,
114 _summary_,
115 _sup_,
116 _svg_,
117 _table_,
118 _tbody_,
119 _td_,
120 _template_,
121 _textarea_,
122 _tfoot_,
123 _th_,
124 _thead_,
125 _time_,
126 _title_,
127 _tr_,
128 _track_,
129 _tt_,
130 _u_,
131 _ul_,
132 _var_,
133 _video_,
134 _wbr_,
136 // litehtml internal tags
137 __tag_before_, // note: real tag cannot start with '-'
138 __tag_after_,
140 // CSS pseudo-elements
141 _before_,
142 _after_,
144 // CSS pseudo-classes
145 _root_,
146 _only_child_,
147 _only_of_type_,
148 _first_child_,
149 _first_of_type_,
150 _last_child_,
151 _last_of_type_,
152 _nth_child_,
153 _nth_of_type_,
154 _nth_last_child_,
155 _nth_last_of_type_,
156 _not_,
157 _lang_,
159 _active_,
160 _hover_,
162 // CSS property names
163 _background_,
164 _background_color_,
165 _background_image_,
166 _background_image_baseurl_,
167 _background_repeat_,
168 _background_origin_,
169 _background_clip_,
170 _background_attachment_,
171 _background_size_,
172 _background_position_,
173 _background_position_x_,
174 _background_position_y_,
176 _border_,
177 _border_width_,
178 _border_style_,
179 _border_color_,
181 _border_spacing_,
182 __litehtml_border_spacing_x_,
183 __litehtml_border_spacing_y_,
185 _border_left_,
186 _border_right_,
187 _border_top_,
188 _border_bottom_,
190 _border_left_style_,
191 _border_right_style_,
192 _border_top_style_,
193 _border_bottom_style_,
195 _border_left_width_,
196 _border_right_width_,
197 _border_top_width_,
198 _border_bottom_width_,
200 _border_left_color_,
201 _border_right_color_,
202 _border_top_color_,
203 _border_bottom_color_,
205 _border_radius_,
206 _border_radius_x_,
207 _border_radius_y_,
209 _border_bottom_left_radius_,
210 _border_bottom_left_radius_x_,
211 _border_bottom_left_radius_y_,
213 _border_bottom_right_radius_,
214 _border_bottom_right_radius_x_,
215 _border_bottom_right_radius_y_,
217 _border_top_left_radius_,
218 _border_top_left_radius_x_,
219 _border_top_left_radius_y_,
221 _border_top_right_radius_,
222 _border_top_right_radius_x_,
223 _border_top_right_radius_y_,
225 _list_style_,
226 _list_style_type_,
227 _list_style_position_,
228 _list_style_image_,
229 _list_style_image_baseurl_,
231 _margin_,
232 _margin_left_,
233 _margin_right_,
234 _margin_top_,
235 _margin_bottom_,
236 _padding_,
237 _padding_left_,
238 _padding_right_,
239 _padding_top_,
240 _padding_bottom_,
242 _font_,
243 _font_family_,
244 _font_style_,
245 _font_variant_,
246 _font_weight_,
247 _font_size_,
248 _line_height_,
249 _text_decoration_,
251 _white_space_,
252 _text_align_,
253 _vertical_align_,
254 _color_,
255 _width_,
256 _height_,
257 _min_width_,
258 _min_height_,
259 _max_width_,
260 _max_height_,
261 _position_,
262 _overflow_,
263 _display_,
264 _visibility_,
265 _box_sizing_,
266 _z_index_,
267 _float_,
268 _clear_,
269 _text_indent_,
270 _left_,
271 _right_,
272 _top_,
273 _bottom_,
274 _cursor_,
275 _content_,
276 _border_collapse_,
277 _text_transform_,
279 _flex_,
280 _flex_flow_,
281 _flex_direction_,
282 _flex_wrap_,
283 _justify_content_,
284 _align_items_,
285 _align_content_,
286 _align_self_,
287 _flex_grow_,
288 _flex_shrink_,
289 _flex_basis_,
291 _caption_side_,
292 _order_,
294 _counter_reset_,
295 _counter_increment_,
297 #undef STRING_ID
298 extern const string_id empty_id; // _id("")
299 extern const string_id star_id; // _id("*")
301 string_id _id(const string& str);
302 const string& _s(string_id id);
304 } // namespace litehtml
306 #endif // LH_STRING_ID_H