Initial commit of the HEAD branch of the ELinks CVS repository, as of
[elinks/images.git] / src / document / css / value.h
blobb467752272c61926dbdd9ca8e3bca322ada32186
1 /* $Id: value.h,v 1.14 2004/06/30 05:51:10 jonas Exp $ */
3 #ifndef EL__DOCUMENT_CSS_VALUE_H
4 #define EL__DOCUMENT_CSS_VALUE_H
6 #include "document/css/property.h"
7 #include "document/css/scanner.h"
9 /* This is interface for the value parser. It is intended to be used only
10 * internally inside of the CSS engine. */
12 /* This function takes a value of a specified type from the given scanner and
13 * converts it to a reasonable {struct css_property}-ready form. */
14 /* It returns positive integer upon success, zero upon parse error, and moves
15 * the string pointer to the byte after the value end. */
16 int css_parse_value(struct css_property_info *propinfo,
17 union css_property_value *value,
18 struct scanner *scanner);
21 /* Here come the css_property_value_parsers provided. */
23 /* Takes no parser_data. */
24 int css_parse_background_value(struct css_property_info *propinfo,
25 union css_property_value *value,
26 struct scanner *scanner);
28 /* Takes no parser_data. */
29 int css_parse_color_value(struct css_property_info *propinfo,
30 union css_property_value *value,
31 struct scanner *scanner);
33 /* Takes no parser_data. */
34 int css_parse_text_decoration_value(struct css_property_info *propinfo,
35 union css_property_value *value,
36 struct scanner *scanner);
38 /* Takes no parser_data. */
39 int css_parse_font_style_value(struct css_property_info *propinfo,
40 union css_property_value *value,
41 struct scanner *scanner);
43 /* Takes no parser_data. */
44 int css_parse_font_weight_value(struct css_property_info *propinfo,
45 union css_property_value *value,
46 struct scanner *scanner);
48 /* Takes no parser_data. */
49 int css_parse_text_align_value(struct css_property_info *propinfo,
50 union css_property_value *value,
51 struct scanner *scanner);
53 /* Takes no parser_data. */
54 int css_parse_white_space_value(struct css_property_info *propinfo,
55 union css_property_value *value,
56 struct scanner *scanner);
57 #endif