Annotation of Amaya/amaya/SVGnames.h, revision 1.9

1.1       vatton      1: 
                      2: #ifdef _SVG
                      3: /* mapping table of SVG elements */
                      4: #include "SVG.h"
                      5: static ElemMapping    SVGElemMappingTable[] =
                      6: {
                      7:    /* This table MUST be in alphabetical order */
1.7       cvs         8:    {"DOCTYPE", SPACE, SVG_EL_DOCTYPE, L_OtherValue, FALSE},
1.8       cvs         9:    {"DOCTYPE_line", SPACE, SVG_EL_DOCTYPE_line, L_OtherValue, FALSE},
1.1       vatton     10:    {"XMLPI", SPACE, SVG_EL_XMLPI, L_OtherValue, FALSE},
                     11:    {"XMLPI_line", SPACE, SVG_EL_XMLPI_line, L_OtherValue, FALSE},
                     12:    {"XMLcomment", SPACE, SVG_EL_XMLcomment, L_OtherValue, FALSE},
                     13:    {"XMLcomment_line", SPACE, SVG_EL_XMLcomment_line, L_OtherValue, FALSE},
                     14:    {"a", SPACE, SVG_EL_a, L_OtherValue, FALSE},
                     15:    {"c", SPACE, SVG_EL_TEXT_UNIT, L_OtherValue, TRUE},
                     16:    {"circle", SPACE, SVG_EL_circle, L_OtherValue, FALSE},
                     17:    {"defs", SPACE, SVG_EL_defs, L_OtherValue, FALSE},
                     18:    {"desc", SPACE, SVG_EL_desc, L_OtherValue, FALSE},
                     19:    {"ellipse", SPACE, SVG_EL_ellipse, L_OtherValue, FALSE},
                     20:    {"foreignObject", SPACE, SVG_EL_foreignObject, L_OtherValue, FALSE},
                     21:    {"g", SPACE, SVG_EL_g, L_OtherValue, FALSE},
                     22:    {"image", SPACE, SVG_EL_image, L_OtherValue, FALSE},
                     23:    {"line", SPACE, SVG_EL_line_, L_OtherValue, FALSE},
                     24:    {"metadata", SPACE, SVG_EL_metadata, L_OtherValue, FALSE},
                     25:    {"path", SPACE, SVG_EL_path, L_OtherValue, FALSE},
                     26:    {"polygon", SPACE, SVG_EL_polygon, L_OtherValue, FALSE},
                     27:    {"polyline", SPACE, SVG_EL_polyline, L_OtherValue, FALSE},
                     28:    {"rect", SPACE, SVG_EL_rect, L_OtherValue, FALSE},
1.9     ! vatton     29:    {"script", SPACE, SVG_EL_script_, L_OtherValue, FALSE},
1.1       vatton     30:    {"style", SPACE, SVG_EL_style__, L_OtherValue, FALSE},
                     31:    {"svg", SPACE, SVG_EL_SVG, L_OtherValue, FALSE},
1.3       cvs        32:    {"switch", SPACE, SVG_EL_switch, L_OtherValue, FALSE},
1.1       vatton     33:    {"symbol", SPACE, SVG_EL_symbol_, L_OtherValue, FALSE},
                     34:    {"text", SPACE, SVG_EL_text_, L_OtherValue, FALSE},
                     35:    {"title", SPACE, SVG_EL_title, L_OtherValue, FALSE},
                     36:    {"tspan", SPACE, SVG_EL_tspan, L_OtherValue, FALSE},
                     37:    {"use", SPACE, SVG_EL_use_, L_OtherValue, FALSE},
                     38:    {"", SPACE, 0, L_OtherValue, FALSE}         /* Last entry. Mandatory */
                     39: };
                     40: 
                     41: static AttributeMapping SVGAttributeMappingTable[] =
                     42: {
                     43:    /* The first entry MUST be unknown_attr */
                     44:    /* The rest of this table MUST be in alphabetical order */
1.2       cvs        45:    {"unknown_attr", "", 'A', SVG_ATTR_Unknown_attribute, L_OtherValue},
1.1       vatton     46: 
                     47:    {"class", "", 'A', SVG_ATTR_class, L_OtherValue},
                     48:    {"cx", "", 'A', SVG_ATTR_cx, L_OtherValue},
                     49:    {"cy", "", 'A', SVG_ATTR_cy, L_OtherValue},
                     50:    {"d", "", 'A', SVG_ATTR_d, L_OtherValue},
                     51:    {"dx", "", 'A', SVG_ATTR_dx, L_OtherValue},
                     52:    {"dy", "", 'A', SVG_ATTR_dy, L_OtherValue},
                     53:    {"externalResourcesRequired", "", 'A', SVG_ATTR_externalResourcesRequired, L_OtherValue},
                     54:    {"fill", "", 'A', SVG_ATTR_fill, L_OtherValue},
1.4       cvs        55:    {"font-family", "", 'A', SVG_ATTR_font_family, L_OtherValue},
                     56:    {"font-size", "", 'A', SVG_ATTR_font_size, L_OtherValue},
                     57:    {"font-style", "", 'A', SVG_ATTR_font_style, L_OtherValue},
                     58:    {"font-variant", "", 'A', SVG_ATTR_font_variant, L_OtherValue},
                     59:    {"font-weight", "", 'A', SVG_ATTR_font_weight, L_OtherValue},
1.1       vatton     60:    {"height", "", 'A', SVG_ATTR_height_, L_OtherValue},
                     61:    {"id", "", 'A', SVG_ATTR_id, L_OtherValue},
1.6       cvs        62:    {"lang", "", 'A', SVG_ATTR_Language, L_OtherValue},
1.1       vatton     63:    {"media", "", 'A', SVG_ATTR_media, L_OtherValue},
                     64:    {"pathLength", "", 'A', SVG_ATTR_pathLength, L_OtherValue},
                     65:    {"points", "", 'A', SVG_ATTR_points, L_OtherValue},
                     66:    {"preserveAspectRatio", "", 'A', SVG_ATTR_preserveAspectRatio, L_OtherValue},
                     67:    {"r", "", 'A', SVG_ATTR_r, L_OtherValue},
1.3       cvs        68:    {"requiredExtensions", "", 'A', SVG_ATTR_requiredExtensions, L_OtherValue},
                     69:    {"requiredFeatures", "", 'A', SVG_ATTR_requiredFeatures, L_OtherValue},
1.1       vatton     70:    {"rx", "", 'A', SVG_ATTR_rx, L_OtherValue},
                     71:    {"ry", "", 'A', SVG_ATTR_ry, L_OtherValue},
                     72:    {"stroke", "", 'A', SVG_ATTR_stroke, L_OtherValue},
                     73:    {"stroke-width", "", 'A', SVG_ATTR_stroke_width, L_OtherValue},
                     74:    {"style", "", 'A', SVG_ATTR_style_, L_OtherValue},
1.3       cvs        75:    {"systemLanguage", "", 'A', SVG_ATTR_systemLanguage, L_OtherValue},
1.1       vatton     76:    {"target", "", 'A', SVG_ATTR_target_, L_OtherValue},
1.5       cvs        77:    {"text-decoration", "", 'A', SVG_ATTR_text_decoration, L_OtherValue},
1.1       vatton     78:    {"title", "", 'A', SVG_ATTR_title_, L_OtherValue},
                     79:    {"transform", "", 'A', SVG_ATTR_transform, L_OtherValue},
                     80:    {"type", "", 'A', SVG_ATTR_type, L_OtherValue},
                     81:    {"viewBox", "", 'A', SVG_ATTR_viewBox, L_OtherValue},
                     82:    {"width", "", 'A', SVG_ATTR_width_, L_OtherValue},
                     83:    {"x", "", 'A', SVG_ATTR_x, L_OtherValue},
                     84:    {"x1", "", 'A', SVG_ATTR_x1, L_OtherValue},
                     85:    {"x2", "", 'A', SVG_ATTR_x2, L_OtherValue},
                     86:    {"xlink:href", "", 'A', SVG_ATTR_xlink_href, L_OtherValue},
                     87:    {"xml:space", "", 'A', SVG_ATTR_xml_space, L_OtherValue},
                     88:    {"y", "", 'A', SVG_ATTR_y, L_OtherValue},
                     89:    {"y1", "", 'A', SVG_ATTR_y1, L_OtherValue},
                     90:    {"y2", "", 'A', SVG_ATTR_y2, L_OtherValue},
                     91: 
                     92:    {"zzghost", "", 'A', SVG_ATTR_Ghost_restruct, L_OtherValue},
                     93:    {"", "", EOS, 0, L_OtherValue}        /* Last entry. Mandatory */
                     94: };
                     95: #else /* _SVG */
                     96: /* there is no mapping table of SVG elements */
                     97: 
                     98: static ElemMapping *SVGElemMappingTable = NULL;
                     99: static AttributeMapping* SVGAttributeMappingTable = NULL;
                    100: #endif /* _SVG */

Webmaster