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

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 */
        !             8:    {"XMLPI", SPACE, SVG_EL_XMLPI, L_OtherValue, FALSE},
        !             9:    {"XMLPI_line", SPACE, SVG_EL_XMLPI_line, L_OtherValue, FALSE},
        !            10:    {"XMLcomment", SPACE, SVG_EL_XMLcomment, L_OtherValue, FALSE},
        !            11:    {"XMLcomment_line", SPACE, SVG_EL_XMLcomment_line, L_OtherValue, FALSE},
        !            12:    {"a", SPACE, SVG_EL_a, L_OtherValue, FALSE},
        !            13:    {"c", SPACE, SVG_EL_TEXT_UNIT, L_OtherValue, TRUE},
        !            14:    {"circle", SPACE, SVG_EL_circle, L_OtherValue, FALSE},
        !            15:    {"defs", SPACE, SVG_EL_defs, L_OtherValue, FALSE},
        !            16:    {"desc", SPACE, SVG_EL_desc, L_OtherValue, FALSE},
        !            17:    {"ellipse", SPACE, SVG_EL_ellipse, L_OtherValue, FALSE},
        !            18:    {"foreignObject", SPACE, SVG_EL_foreignObject, L_OtherValue, FALSE},
        !            19:    {"g", SPACE, SVG_EL_g, L_OtherValue, FALSE},
        !            20:    {"image", SPACE, SVG_EL_image, L_OtherValue, FALSE},
        !            21:    {"line", SPACE, SVG_EL_line_, L_OtherValue, FALSE},
        !            22:    {"metadata", SPACE, SVG_EL_metadata, L_OtherValue, FALSE},
        !            23:    {"path", SPACE, SVG_EL_path, L_OtherValue, FALSE},
        !            24:    {"polygon", SPACE, SVG_EL_polygon, L_OtherValue, FALSE},
        !            25:    {"polyline", SPACE, SVG_EL_polyline, L_OtherValue, FALSE},
        !            26:    {"rect", SPACE, SVG_EL_rect, L_OtherValue, FALSE},
        !            27:    {"script", SPACE, SVG_EL_script, L_OtherValue, FALSE},
        !            28:    {"style", SPACE, SVG_EL_style__, L_OtherValue, FALSE},
        !            29:    {"svg", SPACE, SVG_EL_SVG, L_OtherValue, FALSE},
        !            30:    {"symbol", SPACE, SVG_EL_symbol_, L_OtherValue, FALSE},
        !            31:    {"text", SPACE, SVG_EL_text_, L_OtherValue, FALSE},
        !            32:    {"title", SPACE, SVG_EL_title, L_OtherValue, FALSE},
        !            33:    {"tspan", SPACE, SVG_EL_tspan, L_OtherValue, FALSE},
        !            34:    {"use", SPACE, SVG_EL_use_, L_OtherValue, FALSE},
        !            35:    {"", SPACE, 0, L_OtherValue, FALSE}         /* Last entry. Mandatory */
        !            36: };
        !            37: 
        !            38: static AttributeMapping SVGAttributeMappingTable[] =
        !            39: {
        !            40:    /* The first entry MUST be unknown_attr */
        !            41:    /* The rest of this table MUST be in alphabetical order */
        !            42:    {"unknown_attr", "", 'A', SVG_ATTR_Invalid_attribute, L_OtherValue},
        !            43: 
        !            44:    {"class", "", 'A', SVG_ATTR_class, L_OtherValue},
        !            45:    {"cx", "", 'A', SVG_ATTR_cx, L_OtherValue},
        !            46:    {"cy", "", 'A', SVG_ATTR_cy, L_OtherValue},
        !            47:    {"d", "", 'A', SVG_ATTR_d, L_OtherValue},
        !            48:    {"dx", "", 'A', SVG_ATTR_dx, L_OtherValue},
        !            49:    {"dy", "", 'A', SVG_ATTR_dy, L_OtherValue},
        !            50:    {"externalResourcesRequired", "", 'A', SVG_ATTR_externalResourcesRequired, L_OtherValue},
        !            51:    {"fill", "", 'A', SVG_ATTR_fill, L_OtherValue},
        !            52:    {"height", "", 'A', SVG_ATTR_height_, L_OtherValue},
        !            53:    {"id", "", 'A', SVG_ATTR_id, L_OtherValue},
        !            54:    {"media", "", 'A', SVG_ATTR_media, L_OtherValue},
        !            55:    {"pathLength", "", 'A', SVG_ATTR_pathLength, L_OtherValue},
        !            56:    {"points", "", 'A', SVG_ATTR_points, L_OtherValue},
        !            57:    {"preserveAspectRatio", "", 'A', SVG_ATTR_preserveAspectRatio, L_OtherValue},
        !            58:    {"r", "", 'A', SVG_ATTR_r, L_OtherValue},
        !            59:    {"rx", "", 'A', SVG_ATTR_rx, L_OtherValue},
        !            60:    {"ry", "", 'A', SVG_ATTR_ry, L_OtherValue},
        !            61:    {"stroke", "", 'A', SVG_ATTR_stroke, L_OtherValue},
        !            62:    {"stroke-width", "", 'A', SVG_ATTR_stroke_width, L_OtherValue},
        !            63:    {"style", "", 'A', SVG_ATTR_style_, L_OtherValue},
        !            64:    {"target", "", 'A', SVG_ATTR_target_, L_OtherValue},
        !            65:    {"title", "", 'A', SVG_ATTR_title_, L_OtherValue},
        !            66:    {"transform", "", 'A', SVG_ATTR_transform, L_OtherValue},
        !            67:    {"type", "", 'A', SVG_ATTR_type, L_OtherValue},
        !            68:    {"viewBox", "", 'A', SVG_ATTR_viewBox, L_OtherValue},
        !            69:    {"width", "", 'A', SVG_ATTR_width_, L_OtherValue},
        !            70:    {"x", "", 'A', SVG_ATTR_x, L_OtherValue},
        !            71:    {"x1", "", 'A', SVG_ATTR_x1, L_OtherValue},
        !            72:    {"x2", "", 'A', SVG_ATTR_x2, L_OtherValue},
        !            73:    {"xlink:href", "", 'A', SVG_ATTR_xlink_href, L_OtherValue},
        !            74:    {"xml:space", "", 'A', SVG_ATTR_xml_space, L_OtherValue},
        !            75:    {"y", "", 'A', SVG_ATTR_y, L_OtherValue},
        !            76:    {"y1", "", 'A', SVG_ATTR_y1, L_OtherValue},
        !            77:    {"y2", "", 'A', SVG_ATTR_y2, L_OtherValue},
        !            78: 
        !            79:    {"zzghost", "", 'A', SVG_ATTR_Ghost_restruct, L_OtherValue},
        !            80:    {"", "", EOS, 0, L_OtherValue}        /* Last entry. Mandatory */
        !            81: };
        !            82: #else /* _SVG */
        !            83: /* there is no mapping table of SVG elements */
        !            84: 
        !            85: static ElemMapping *SVGElemMappingTable = NULL;
        !            86: static AttributeMapping* SVGAttributeMappingTable = NULL;
        !            87: #endif /* _SVG */

Webmaster